OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #include "extensions/renderer/dispatcher.h" | 5 #include "extensions/renderer/dispatcher.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <memory> | 9 #include <memory> |
10 #include <utility> | 10 #include <utility> |
(...skipping 788 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
799 resources.push_back(std::make_pair("platformApp", IDR_PLATFORM_APP_JS)); | 799 resources.push_back(std::make_pair("platformApp", IDR_PLATFORM_APP_JS)); |
800 | 800 |
801 #if defined(ENABLE_MEDIA_ROUTER) | 801 #if defined(ENABLE_MEDIA_ROUTER) |
802 resources.push_back( | 802 resources.push_back( |
803 std::make_pair("chrome/browser/media/router/mojo/media_router.mojom", | 803 std::make_pair("chrome/browser/media/router/mojo/media_router.mojom", |
804 IDR_MEDIA_ROUTER_MOJOM_JS)); | 804 IDR_MEDIA_ROUTER_MOJOM_JS)); |
805 resources.push_back( | 805 resources.push_back( |
806 std::make_pair("mojo/common/time.mojom", IDR_MOJO_TIME_MOJOM_JS)); | 806 std::make_pair("mojo/common/time.mojom", IDR_MOJO_TIME_MOJOM_JS)); |
807 resources.push_back( | 807 resources.push_back( |
808 std::make_pair("media_router_bindings", IDR_MEDIA_ROUTER_BINDINGS_JS)); | 808 std::make_pair("media_router_bindings", IDR_MEDIA_ROUTER_BINDINGS_JS)); |
| 809 resources.push_back( |
| 810 std::make_pair("url/mojo/url.mojom", IDR_MOJO_URL_MOJOM_JS)); |
809 #endif // defined(ENABLE_MEDIA_ROUTER) | 811 #endif // defined(ENABLE_MEDIA_ROUTER) |
810 | 812 |
811 return resources; | 813 return resources; |
812 } | 814 } |
813 | 815 |
814 // NOTE: please use the naming convention "foo_natives" for these. | 816 // NOTE: please use the naming convention "foo_natives" for these. |
815 // static | 817 // static |
816 void Dispatcher::RegisterNativeHandlers(ModuleSystem* module_system, | 818 void Dispatcher::RegisterNativeHandlers(ModuleSystem* module_system, |
817 ScriptContext* context, | 819 ScriptContext* context, |
818 Dispatcher* dispatcher, | 820 Dispatcher* dispatcher, |
(...skipping 644 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1463 // The "guestViewDeny" module must always be loaded last. It registers | 1465 // The "guestViewDeny" module must always be loaded last. It registers |
1464 // error-providing custom elements for the GuestView types that are not | 1466 // error-providing custom elements for the GuestView types that are not |
1465 // available, and thus all of those types must have been checked and loaded | 1467 // available, and thus all of those types must have been checked and loaded |
1466 // (or not loaded) beforehand. | 1468 // (or not loaded) beforehand. |
1467 if (context_type == Feature::BLESSED_EXTENSION_CONTEXT) { | 1469 if (context_type == Feature::BLESSED_EXTENSION_CONTEXT) { |
1468 module_system->Require("guestViewDeny"); | 1470 module_system->Require("guestViewDeny"); |
1469 } | 1471 } |
1470 } | 1472 } |
1471 | 1473 |
1472 } // namespace extensions | 1474 } // namespace extensions |
OLD | NEW |