Index: chrome/renderer/resources/extensions/webrtc_cast_send_transport_custom_bindings.js |
diff --git a/chrome/renderer/resources/extensions/webrtc_cast_send_transport_custom_bindings.js b/chrome/renderer/resources/extensions/webrtc_cast_send_transport_custom_bindings.js |
deleted file mode 100644 |
index b23e21abdaf2b3641d56d0f1627822f16b564295..0000000000000000000000000000000000000000 |
--- a/chrome/renderer/resources/extensions/webrtc_cast_send_transport_custom_bindings.js |
+++ /dev/null |
@@ -1,31 +0,0 @@ |
-// Copyright 2013 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. |
- |
-// Custom binding for the webrtc custom transport API. |
- |
-var binding = require('binding').Binding.create('webrtc.castSendTransport'); |
-var webrtc = requireNative('webrtc_natives'); |
- |
-binding.registerCustomHook(function(bindingsAPI, extensionId) { |
- var apiFunctions = bindingsAPI.apiFunctions; |
- |
- apiFunctions.setHandleRequest('destroy', |
- function(transportId) { |
- webrtc.DestroyCastSendTransport(transportId); |
- }); |
- apiFunctions.setHandleRequest('getCaps', |
- function(transportId) { |
- return webrtc.GetCapsCastSendTransport(transportId); |
- }); |
- apiFunctions.setHandleRequest('start', |
- function(transportId, params) { |
- webrtc.StartCastSendTransport(transportId, params); |
- }); |
- apiFunctions.setHandleRequest('stop', |
- function(transportId) { |
- webrtc.StopCastSendTransport(transportId); |
- }); |
-}); |
- |
-exports.binding = binding.generate(); |