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 722 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
733 // Note: webView not webview so that this doesn't interfere with the | 733 // Note: webView not webview so that this doesn't interfere with the |
734 // chrome.webview API bindings. | 734 // chrome.webview API bindings. |
735 {"webView", IDR_WEB_VIEW_JS}, | 735 {"webView", IDR_WEB_VIEW_JS}, |
736 {"webViewActionRequests", IDR_WEB_VIEW_ACTION_REQUESTS_JS}, | 736 {"webViewActionRequests", IDR_WEB_VIEW_ACTION_REQUESTS_JS}, |
737 {"webViewApiMethods", IDR_WEB_VIEW_API_METHODS_JS}, | 737 {"webViewApiMethods", IDR_WEB_VIEW_API_METHODS_JS}, |
738 {"webViewAttributes", IDR_WEB_VIEW_ATTRIBUTES_JS}, | 738 {"webViewAttributes", IDR_WEB_VIEW_ATTRIBUTES_JS}, |
739 {"webViewConstants", IDR_WEB_VIEW_CONSTANTS_JS}, | 739 {"webViewConstants", IDR_WEB_VIEW_CONSTANTS_JS}, |
740 {"webViewEvents", IDR_WEB_VIEW_EVENTS_JS}, | 740 {"webViewEvents", IDR_WEB_VIEW_EVENTS_JS}, |
741 {"webViewInternal", IDR_WEB_VIEW_INTERNAL_CUSTOM_BINDINGS_JS}, | 741 {"webViewInternal", IDR_WEB_VIEW_INTERNAL_CUSTOM_BINDINGS_JS}, |
742 | 742 |
| 743 {mojo::kAssociatedBindingsModuleName, IDR_MOJO_ASSOCIATED_BINDINGS_JS}, |
743 {mojo::kBindingsModuleName, IDR_MOJO_BINDINGS_JS}, | 744 {mojo::kBindingsModuleName, IDR_MOJO_BINDINGS_JS}, |
744 {mojo::kBufferModuleName, IDR_MOJO_BUFFER_JS}, | 745 {mojo::kBufferModuleName, IDR_MOJO_BUFFER_JS}, |
745 {mojo::kCodecModuleName, IDR_MOJO_CODEC_JS}, | 746 {mojo::kCodecModuleName, IDR_MOJO_CODEC_JS}, |
746 {mojo::kConnectorModuleName, IDR_MOJO_CONNECTOR_JS}, | 747 {mojo::kConnectorModuleName, IDR_MOJO_CONNECTOR_JS}, |
747 {mojo::kControlMessageHandlerModuleName, | 748 {mojo::kControlMessageHandlerModuleName, |
748 IDR_MOJO_CONTROL_MESSAGE_HANDLER_JS}, | 749 IDR_MOJO_CONTROL_MESSAGE_HANDLER_JS}, |
749 {mojo::kControlMessageProxyModuleName, IDR_MOJO_CONTROL_MESSAGE_PROXY_JS}, | 750 {mojo::kControlMessageProxyModuleName, IDR_MOJO_CONTROL_MESSAGE_PROXY_JS}, |
750 {mojo::kInterfaceControlMessagesMojom, | 751 {mojo::kInterfaceControlMessagesMojom, |
751 IDR_MOJO_INTERFACE_CONTROL_MESSAGES_MOJOM_JS}, | 752 IDR_MOJO_INTERFACE_CONTROL_MESSAGES_MOJOM_JS}, |
752 {mojo::kInterfaceEndpointClientModuleName, | 753 {mojo::kInterfaceEndpointClientModuleName, |
(...skipping 713 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1466 // The "guestViewDeny" module must always be loaded last. It registers | 1467 // The "guestViewDeny" module must always be loaded last. It registers |
1467 // error-providing custom elements for the GuestView types that are not | 1468 // error-providing custom elements for the GuestView types that are not |
1468 // available, and thus all of those types must have been checked and loaded | 1469 // available, and thus all of those types must have been checked and loaded |
1469 // (or not loaded) beforehand. | 1470 // (or not loaded) beforehand. |
1470 if (context_type == Feature::BLESSED_EXTENSION_CONTEXT) { | 1471 if (context_type == Feature::BLESSED_EXTENSION_CONTEXT) { |
1471 module_system->Require("guestViewDeny"); | 1472 module_system->Require("guestViewDeny"); |
1472 } | 1473 } |
1473 } | 1474 } |
1474 | 1475 |
1475 } // namespace extensions | 1476 } // namespace extensions |
OLD | NEW |