Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(372)

Unified Diff: components/ui_devtools/protocol_platform.h

Issue 2374513002: Add ui devtools server (Closed)
Patch Set: Add inspector_protocol to DEPS Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/ui_devtools/protocol.json ('k') | components/ui_devtools/string_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/ui_devtools/protocol_platform.h
diff --git a/components/ui_devtools/protocol_platform.h b/components/ui_devtools/protocol_platform.h
new file mode 100644
index 0000000000000000000000000000000000000000..ee16273ef4641b85007a7f78b5bc16fc56418328
--- /dev/null
+++ b/components/ui_devtools/protocol_platform.h
@@ -0,0 +1,21 @@
+// Copyright 2016 The Chromium 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 COMPONENTS_UI_DEVTOOLS_PROTOCOL_PLATFORM_H_
+#define COMPONENTS_UI_DEVTOOLS_PROTOCOL_PLATFORM_H_
+
+#include "base/memory/ptr_util.h"
+
+namespace ui {
+namespace devtools {
+
+template <typename T>
+std::unique_ptr<T> wrapUnique(T* ptr) {
+ return base::WrapUnique<T>(ptr);
+}
+
+} // namespace devtools
+} // namespace ui
+
+#endif // COMPONENTS_UI_DEVTOOLS_PROTOCOL_PLATFORM_H_
« no previous file with comments | « components/ui_devtools/protocol.json ('k') | components/ui_devtools/string_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698