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

Unified Diff: chrome/renderer/resources/extensions/webrtc_cast_udp_transport_custom_bindings.js

Issue 90083002: Cast Extensions API: Major namespace and object renaming (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix unit_tests Created 7 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 side-by-side diff with in-line comments
Download patch
Index: chrome/renderer/resources/extensions/webrtc_cast_udp_transport_custom_bindings.js
diff --git a/chrome/renderer/resources/extensions/webrtc_cast_udp_transport_custom_bindings.js b/chrome/renderer/resources/extensions/webrtc_cast_udp_transport_custom_bindings.js
deleted file mode 100644
index faf405359e50b0fecda0cb41c2660dfd5b8ab4c5..0000000000000000000000000000000000000000
--- a/chrome/renderer/resources/extensions/webrtc_cast_udp_transport_custom_bindings.js
+++ /dev/null
@@ -1,22 +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.castUdpTransport');
-var webrtc = requireNative('webrtc_natives');
-
-binding.registerCustomHook(function(bindingsAPI, extensionId) {
- var apiFunctions = bindingsAPI.apiFunctions;
-
- apiFunctions.setHandleRequest('destroy', function(transportId) {
- webrtc.DestroyCastUdpTransport(transportId);
- });
- apiFunctions.setHandleRequest('start',
- function(transportId, remoteParams) {
- webrtc.StartCastUdpTransport(transportId, remoteParams);
- });
-});
-
-exports.binding = binding.generate();

Powered by Google App Engine
This is Rietveld 408576698