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

Unified Diff: components/devtools_bridge/client/web_client.h

Issue 736363002: Stub for web-base client for DevTools bridge and tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed presubmits Created 6 years, 1 month 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/devtools_bridge/client/DEPS ('k') | components/devtools_bridge/client/web_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/devtools_bridge/client/web_client.h
diff --git a/components/devtools_bridge/client/web_client.h b/components/devtools_bridge/client/web_client.h
new file mode 100644
index 0000000000000000000000000000000000000000..d980e8710954d76abd3a540d67b41a5a9c0f8a1b
--- /dev/null
+++ b/components/devtools_bridge/client/web_client.h
@@ -0,0 +1,46 @@
+// Copyright 2014 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_DEVTOOLS_BRIDGE_CLIENT_WEB_CLIENT_H_
+#define COMPONENTS_DEVTOOLS_BRIDGE_CLIENT_WEB_CLIENT_H_
+
+#include "base/memory/scoped_ptr.h"
+
+namespace content {
+class BrowserContext;
+}
+
+namespace devtools_bridge {
+
+/**
+ * Client for DevTools Bridge for desktop Chrome. Uses WebContents to host
+ * JavaScript implementation (therefore lives on the UI thread and must be
+ * destroyed before |context|). WebContents works as a sandbox for WebRTC
+ * related code.
+ */
+class WebClient {
+ public:
+ class Delegate {
+ public:
+
+ // TODO(serya): implement
+ };
+
+ virtual ~WebClient() {}
+
+ static scoped_ptr<WebClient> CreateInstance(
+ content::BrowserContext* context, Delegate* delegate);
+
+ // TODO(serya): Implement.
+
+ protected:
+ WebClient() {}
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(WebClient);
+};
+
+} // namespace devtools_bridge
+
+#endif // COMPONENTS_DEVTOOLS_BRIDGE_CLIENT_WEB_CLIENT_H_
« no previous file with comments | « components/devtools_bridge/client/DEPS ('k') | components/devtools_bridge/client/web_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698