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

Unified Diff: chrome/browser/devtools/device/cloud/devtools_bridge_client.h

Issue 746663002: Stub for WebRTCDeviceProvider (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@webclient
Patch Set: Switching to chrome:// schema, moving to chrome/browser/devtools/device/cloud/ 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
Index: chrome/browser/devtools/device/cloud/devtools_bridge_client.h
diff --git a/chrome/browser/devtools/device/cloud/devtools_bridge_client.h b/chrome/browser/devtools/device/cloud/devtools_bridge_client.h
new file mode 100644
index 0000000000000000000000000000000000000000..99842307e9e85aa8ee91a22b38f25dc4913c339c
--- /dev/null
+++ b/chrome/browser/devtools/device/cloud/devtools_bridge_client.h
@@ -0,0 +1,40 @@
+// 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 CHROME_BROWSER_DEVTOOLS_DEVICE_CLOUD_DEVTOOLS_BRIDGE_CLIENT_H_
+#define CHROME_BROWSER_DEVTOOLS_DEVICE_CLOUD_DEVTOOLS_BRIDGE_CLIENT_H_
+
+#include <string>
+
+#include "base/memory/scoped_ptr.h"
+
+namespace content {
+class BrowserContext;
+class WebUIDataSource;
+}
+
+class DevToolsBridgeClient {
pfeldman 2014/11/26 11:56:42 DevToolsBridge name is too generic. What exactly i
SeRya 2014/11/26 13:09:13 This class intended to run sessions with remote De
+ public:
+ class Delegate {
+ public:
+ virtual void SendCommand(const std::string& command) = 0;
+ };
+
+ virtual ~DevToolsBridgeClient() {}
+
+ static scoped_ptr<DevToolsBridgeClient> CreateInstance(
+ content::BrowserContext* context, Delegate* delegate);
+
+ static void AddResources(content::WebUIDataSource* data_source);
+
+ virtual void StartSession(const std::string& device_id) = 0;
pfeldman 2014/11/26 11:56:42 What is session and where do i get device_id?
SeRya 2014/11/26 13:09:13 It's GCD device ID. It's opaque to the client. Cli
+
+ protected:
+ DevToolsBridgeClient() {}
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(DevToolsBridgeClient);
+};
+
+#endif // CHROME_BROWSER_DEVTOOLS_DEVICE_CLOUD_DEVTOOLS_BRIDGE_CLIENT_H_

Powered by Google App Engine
This is Rietveld 408576698