| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 var mediaRouter; | 5 var mediaRouter; |
| 6 | 6 |
| 7 define('media_router_bindings', [ | 7 define('media_router_bindings', [ |
| 8 'mojo/public/js/bindings', | 8 'mojo/public/js/bindings', |
| 9 'mojo/public/js/core', | 9 'mojo/public/js/core', |
| 10 'content/public/renderer/frame_service_registry', | 10 'content/public/renderer/frame_service_registry', |
| 11 'chrome/browser/media/router/media_router.mojom', | 11 'chrome/browser/media/router/mojo/media_router.mojom', |
| 12 'extensions/common/mojo/keep_alive.mojom', | 12 'extensions/common/mojo/keep_alive.mojom', |
| 13 'mojo/public/js/connection', | 13 'mojo/public/js/connection', |
| 14 'mojo/public/js/router', | 14 'mojo/public/js/router', |
| 15 ], function(bindings, | 15 ], function(bindings, |
| 16 core, | 16 core, |
| 17 serviceProvider, | 17 serviceProvider, |
| 18 mediaRouterMojom, | 18 mediaRouterMojom, |
| 19 keepAliveMojom, | 19 keepAliveMojom, |
| 20 connector, | 20 connector, |
| 21 routerModule) { | 21 routerModule) { |
| (...skipping 732 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 754 }; | 754 }; |
| 755 | 755 |
| 756 mediaRouter = new MediaRouter(connector.bindHandleToProxy( | 756 mediaRouter = new MediaRouter(connector.bindHandleToProxy( |
| 757 serviceProvider.connectToService( | 757 serviceProvider.connectToService( |
| 758 mediaRouterMojom.MediaRouter.name), | 758 mediaRouterMojom.MediaRouter.name), |
| 759 mediaRouterMojom.MediaRouter)); | 759 mediaRouterMojom.MediaRouter)); |
| 760 | 760 |
| 761 return mediaRouter; | 761 return mediaRouter; |
| 762 }); | 762 }); |
| 763 | 763 |
| OLD | NEW |