| 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 772 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 783 {"webViewRequest", IDR_WEB_VIEW_REQUEST_CUSTOM_BINDINGS_JS}, | 783 {"webViewRequest", IDR_WEB_VIEW_REQUEST_CUSTOM_BINDINGS_JS}, |
| 784 {"binding", IDR_BINDING_JS}, | 784 {"binding", IDR_BINDING_JS}, |
| 785 | 785 |
| 786 // Custom types sources. | 786 // Custom types sources. |
| 787 {"StorageArea", IDR_STORAGE_AREA_JS}, | 787 {"StorageArea", IDR_STORAGE_AREA_JS}, |
| 788 | 788 |
| 789 // Platform app sources that are not API-specific.. | 789 // Platform app sources that are not API-specific.. |
| 790 {"platformApp", IDR_PLATFORM_APP_JS}, | 790 {"platformApp", IDR_PLATFORM_APP_JS}, |
| 791 | 791 |
| 792 #if defined(ENABLE_MEDIA_ROUTER) | 792 #if defined(ENABLE_MEDIA_ROUTER) |
| 793 {"chrome/browser/media/router/mojo/media_controller.mojom", | 793 {"components/media_router/mojo/media_controller.mojom", |
| 794 IDR_MEDIA_CONTROLLER_MOJOM_JS}, | 794 IDR_MEDIA_CONTROLLER_MOJOM_JS}, |
| 795 {"chrome/browser/media/router/mojo/media_router.mojom", | 795 {"components/media_router/mojo/media_router.mojom", |
| 796 IDR_MEDIA_ROUTER_MOJOM_JS}, | 796 IDR_MEDIA_ROUTER_MOJOM_JS}, |
| 797 {"chrome/browser/media/router/mojo/media_status.mojom", | 797 {"components/media_router/mojo/media_status.mojom", |
| 798 IDR_MEDIA_STATUS_MOJOM_JS}, | 798 IDR_MEDIA_STATUS_MOJOM_JS}, |
| 799 {"media_router_bindings", IDR_MEDIA_ROUTER_BINDINGS_JS}, | 799 {"media_router_bindings", IDR_MEDIA_ROUTER_BINDINGS_JS}, |
| 800 {"mojo/common/time.mojom", IDR_MOJO_TIME_MOJOM_JS}, | 800 {"mojo/common/time.mojom", IDR_MOJO_TIME_MOJOM_JS}, |
| 801 {"net/interfaces/ip_address.mojom", IDR_MOJO_IP_ADDRESS_MOJOM_JS}, | 801 {"net/interfaces/ip_address.mojom", IDR_MOJO_IP_ADDRESS_MOJOM_JS}, |
| 802 {"url/mojo/origin.mojom", IDR_ORIGIN_MOJOM_JS}, | 802 {"url/mojo/origin.mojom", IDR_ORIGIN_MOJOM_JS}, |
| 803 {"url/mojo/url.mojom", IDR_MOJO_URL_MOJOM_JS}, | 803 {"url/mojo/url.mojom", IDR_MOJO_URL_MOJOM_JS}, |
| 804 #endif // defined(ENABLE_MEDIA_ROUTER) | 804 #endif // defined(ENABLE_MEDIA_ROUTER) |
| 805 }; | 805 }; |
| 806 | 806 |
| 807 if (base::FeatureList::IsEnabled(::features::kGuestViewCrossProcessFrames)) { | 807 if (base::FeatureList::IsEnabled(::features::kGuestViewCrossProcessFrames)) { |
| (...skipping 660 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1468 // The "guestViewDeny" module must always be loaded last. It registers | 1468 // The "guestViewDeny" module must always be loaded last. It registers |
| 1469 // error-providing custom elements for the GuestView types that are not | 1469 // error-providing custom elements for the GuestView types that are not |
| 1470 // available, and thus all of those types must have been checked and loaded | 1470 // available, and thus all of those types must have been checked and loaded |
| 1471 // (or not loaded) beforehand. | 1471 // (or not loaded) beforehand. |
| 1472 if (context_type == Feature::BLESSED_EXTENSION_CONTEXT) { | 1472 if (context_type == Feature::BLESSED_EXTENSION_CONTEXT) { |
| 1473 module_system->Require("guestViewDeny"); | 1473 module_system->Require("guestViewDeny"); |
| 1474 } | 1474 } |
| 1475 } | 1475 } |
| 1476 | 1476 |
| 1477 } // namespace extensions | 1477 } // namespace extensions |
| OLD | NEW |