summaryrefslogtreecommitdiffstats
path: root/chrome/browser/devtools/device/webrtc/js/webrtc_device_provider.js
blob: a9e67fe3858c30973320a525de8373772e7d232a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// 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.

/**
 * @constructor
 */
function WebRTCDeviceProvider() {
}

WebRTCDeviceProvider.prototype.handleCommandFailure = function() {
  // TODO(serya): Remove debugging code and implement.
  console.error('Command failed');
};

WebRTCDeviceProvider.prototype.handleCommandSuccess = function(result) {
  // TODO(serya): Remove debugging code and implement.
  console.log('Command succeded', result);
};

WebRTCDeviceProvider.prototype.startSessionIfNeeded = function(deviceId) {
  // TODO(serya): Remove debugging code and implement.
  this.lastDeviceId = deviceId;
};

addEventListener('DOMContentLoaded', function() {
  window.WebRTCDeviceProvider.instance = new WebRTCDeviceProvider();
}, false);