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

Unified Diff: components/devtools_bridge/client/js/gcd_client.js

Issue 746663002: Stub for WebRTCDeviceProvider (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@webclient
Patch Set: 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: components/devtools_bridge/client/js/gcd_client.js
diff --git a/components/devtools_bridge/client/js/gcd_client.js b/components/devtools_bridge/client/js/gcd_client.js
new file mode 100644
index 0000000000000000000000000000000000000000..da0cb2ba3eb098c5d4ee058ad5f922b6ab25c5e6
--- /dev/null
+++ b/components/devtools_bridge/client/js/gcd_client.js
@@ -0,0 +1,15 @@
+// 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.
+
+function GCDClient() {
+ this.lastLequestId_ = 0;
+}
+
+GCDClient.prototype.sendCommand = function(command) {
+ console.log("Sending command");
mnaganov (inactive) 2014/11/21 21:19:38 Please prefer using single quotes.
SeRya 2014/11/24 11:10:06 Done.
+ if (chrome.send)
+ chrome.send('sendCommand', [this.lastLequestId_++, command]);
+ else
+ console.log("Sending command", command)
+}

Powered by Google App Engine
This is Rietveld 408576698