OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 /** | |
6 * This class responsible for communication with DevTools Bridge Server | |
7 * over GCD in request/response manner. | |
8 * | |
9 * @Constructor | |
10 */ | |
11 function GCDClient() { | |
12 this.lastLequestId_ = 0; | |
13 } | |
14 | |
15 GCDClient.prototype.sendCommand = function(command) { | |
16 if (chrome.send) | |
17 chrome.send('sendCommand', [this.lastLequestId_++, command]); | |
18 else | |
19 console.log('Sending command', command) | |
mnaganov (inactive)
2014/11/24 11:47:20
Do you need this? In the next file, there is no "e
| |
20 } | |
OLD | NEW |