summaryrefslogtreecommitdiff
path: root/deps/v8/src/inspector/protocol-platform.h
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/src/inspector/protocol-platform.h')
-rw-r--r--deps/v8/src/inspector/protocol-platform.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/deps/v8/src/inspector/protocol-platform.h b/deps/v8/src/inspector/protocol-platform.h
new file mode 100644
index 0000000000..c7723932b4
--- /dev/null
+++ b/deps/v8/src/inspector/protocol-platform.h
@@ -0,0 +1,21 @@
+// Copyright 2016 the V8 project authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef V8_INSPECTOR_PROTOCOLPLATFORM_H_
+#define V8_INSPECTOR_PROTOCOLPLATFORM_H_
+
+#include <memory>
+
+#include "src/base/logging.h"
+
+namespace v8_inspector {
+
+template <typename T>
+std::unique_ptr<T> wrapUnique(T* ptr) {
+ return std::unique_ptr<T>(ptr);
+}
+
+} // namespace v8_inspector
+
+#endif // V8_INSPECTOR_PROTOCOLPLATFORM_H_