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) |
+} |