| 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 753 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 764 {"webViewRequest", IDR_WEB_VIEW_REQUEST_CUSTOM_BINDINGS_JS}, | 764 {"webViewRequest", IDR_WEB_VIEW_REQUEST_CUSTOM_BINDINGS_JS}, |
| 765 {"binding", IDR_BINDING_JS}, | 765 {"binding", IDR_BINDING_JS}, |
| 766 | 766 |
| 767 // Custom types sources. | 767 // Custom types sources. |
| 768 {"StorageArea", IDR_STORAGE_AREA_JS}, | 768 {"StorageArea", IDR_STORAGE_AREA_JS}, |
| 769 | 769 |
| 770 // Platform app sources that are not API-specific.. | 770 // Platform app sources that are not API-specific.. |
| 771 {"platformApp", IDR_PLATFORM_APP_JS}, | 771 {"platformApp", IDR_PLATFORM_APP_JS}, |
| 772 | 772 |
| 773 #if defined(ENABLE_MEDIA_ROUTER) | 773 #if defined(ENABLE_MEDIA_ROUTER) |
| 774 {"chrome/browser/media/router/mojo/media_controller.mojom", | 774 {"media/mojo/interfaces/media_controller.mojom", |
| 775 IDR_MEDIA_CONTROLLER_MOJOM_JS}, | 775 IDR_MEDIA_CONTROLLER_MOJOM_JS}, |
| 776 {"chrome/browser/media/router/mojo/media_router.mojom", | 776 {"media/mojo/interfaces/media_router.mojom", IDR_MEDIA_ROUTER_MOJOM_JS}, |
| 777 IDR_MEDIA_ROUTER_MOJOM_JS}, | 777 {"media/mojo/interfaces/media_status.mojom", IDR_MEDIA_STATUS_MOJOM_JS}, |
| 778 {"chrome/browser/media/router/mojo/media_status.mojom", | |
| 779 IDR_MEDIA_STATUS_MOJOM_JS}, | |
| 780 {"media_router_bindings", IDR_MEDIA_ROUTER_BINDINGS_JS}, | 778 {"media_router_bindings", IDR_MEDIA_ROUTER_BINDINGS_JS}, |
| 781 {"mojo/common/time.mojom", IDR_MOJO_TIME_MOJOM_JS}, | 779 {"mojo/common/time.mojom", IDR_MOJO_TIME_MOJOM_JS}, |
| 782 {"net/interfaces/ip_address.mojom", IDR_MOJO_IP_ADDRESS_MOJOM_JS}, | 780 {"net/interfaces/ip_address.mojom", IDR_MOJO_IP_ADDRESS_MOJOM_JS}, |
| 783 {"url/mojo/origin.mojom", IDR_ORIGIN_MOJOM_JS}, | 781 {"url/mojo/origin.mojom", IDR_ORIGIN_MOJOM_JS}, |
| 784 {"url/mojo/url.mojom", IDR_MOJO_URL_MOJOM_JS}, | 782 {"url/mojo/url.mojom", IDR_MOJO_URL_MOJOM_JS}, |
| 785 #endif // defined(ENABLE_MEDIA_ROUTER) | 783 #endif // defined(ENABLE_MEDIA_ROUTER) |
| 786 }; | 784 }; |
| 787 | 785 |
| 788 if (base::FeatureList::IsEnabled(::features::kGuestViewCrossProcessFrames)) { | 786 if (base::FeatureList::IsEnabled(::features::kGuestViewCrossProcessFrames)) { |
| 789 resources.emplace_back("guestViewIframe", IDR_GUEST_VIEW_IFRAME_JS); | 787 resources.emplace_back("guestViewIframe", IDR_GUEST_VIEW_IFRAME_JS); |
| (...skipping 653 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1443 // The "guestViewDeny" module must always be loaded last. It registers | 1441 // The "guestViewDeny" module must always be loaded last. It registers |
| 1444 // error-providing custom elements for the GuestView types that are not | 1442 // error-providing custom elements for the GuestView types that are not |
| 1445 // available, and thus all of those types must have been checked and loaded | 1443 // available, and thus all of those types must have been checked and loaded |
| 1446 // (or not loaded) beforehand. | 1444 // (or not loaded) beforehand. |
| 1447 if (context_type == Feature::BLESSED_EXTENSION_CONTEXT) { | 1445 if (context_type == Feature::BLESSED_EXTENSION_CONTEXT) { |
| 1448 module_system->Require("guestViewDeny"); | 1446 module_system->Require("guestViewDeny"); |
| 1449 } | 1447 } |
| 1450 } | 1448 } |
| 1451 | 1449 |
| 1452 } // namespace extensions | 1450 } // namespace extensions |
| OLD | NEW |