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

Side by Side 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 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 unified diff | Download patch
OLDNEW
(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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698