Index: chrome/renderer/resources/extensions/cast_streaming_rtp_stream_custom_bindings.js |
diff --git a/chrome/renderer/resources/extensions/webrtc_cast_send_transport_custom_bindings.js b/chrome/renderer/resources/extensions/cast_streaming_rtp_stream_custom_bindings.js |
similarity index 61% |
rename from chrome/renderer/resources/extensions/webrtc_cast_send_transport_custom_bindings.js |
rename to chrome/renderer/resources/extensions/cast_streaming_rtp_stream_custom_bindings.js |
index b23e21abdaf2b3641d56d0f1627822f16b564295..8feb8ddbb662ec4127a5cf0981bd064fa55e2105 100644 |
--- a/chrome/renderer/resources/extensions/webrtc_cast_send_transport_custom_bindings.js |
+++ b/chrome/renderer/resources/extensions/cast_streaming_rtp_stream_custom_bindings.js |
@@ -2,29 +2,29 @@ |
// 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. |
+// Custom binding for the Cast Streaming RtpStream API. |
-var binding = require('binding').Binding.create('webrtc.castSendTransport'); |
-var webrtc = requireNative('webrtc_natives'); |
+var binding = require('binding').Binding.create('cast.streaming.rtpStream'); |
+var natives = requireNative('cast_streaming_natives'); |
binding.registerCustomHook(function(bindingsAPI, extensionId) { |
var apiFunctions = bindingsAPI.apiFunctions; |
apiFunctions.setHandleRequest('destroy', |
function(transportId) { |
- webrtc.DestroyCastSendTransport(transportId); |
+ natives.DestroyCastRtpStream(transportId); |
}); |
apiFunctions.setHandleRequest('getCaps', |
function(transportId) { |
- return webrtc.GetCapsCastSendTransport(transportId); |
+ return natives.GetCapsCastRtpStream(transportId); |
}); |
apiFunctions.setHandleRequest('start', |
function(transportId, params) { |
- webrtc.StartCastSendTransport(transportId, params); |
+ natives.StartCastRtpStream(transportId, params); |
}); |
apiFunctions.setHandleRequest('stop', |
function(transportId) { |
- webrtc.StopCastSendTransport(transportId); |
+ natives.StopCastRtpStream(transportId); |
}); |
}); |