| Index: chrome/renderer/resources/extensions/cast_streaming_session_custom_bindings.js
|
| diff --git a/chrome/renderer/resources/extensions/cast_streaming_session_custom_bindings.js b/chrome/renderer/resources/extensions/cast_streaming_session_custom_bindings.js
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..845504291f69ed03344772f327fe05159399cef7
|
| --- /dev/null
|
| +++ b/chrome/renderer/resources/extensions/cast_streaming_session_custom_bindings.js
|
| @@ -0,0 +1,18 @@
|
| +// 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 Cast streaming API.
|
| +
|
| +var binding = require('binding').Binding.create('cast.streaming.session');
|
| +var natives = requireNative('webrtc_natives');
|
| +
|
| +binding.registerCustomHook(function(bindingsAPI, extensionId) {
|
| + var apiFunctions = bindingsAPI.apiFunctions;
|
| + apiFunctions.setHandleRequest('create',
|
| + function(audioTrack, videoTrack, callback) {
|
| + natives.CreateSession(audioTrack, videoTrack, callback);
|
| + });
|
| +});
|
| +
|
| +exports.binding = binding.generate();
|
|
|