Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(338)

Side by Side Diff: extensions/renderer/dispatcher.cc

Issue 2744963002: Introduce InterfaceEndpointClient(IEC), InterfaceEndpointHandle and (Closed)
Patch Set: Resolve Merge with new changes from master. Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 704 matching lines...) Expand 10 before | Expand all | Expand 10 after
715 {mojo::kConnectorModuleName, IDR_MOJO_CONNECTOR_JS}, 715 {mojo::kConnectorModuleName, IDR_MOJO_CONNECTOR_JS},
716 {mojo::kControlMessageHandlerModuleName, 716 {mojo::kControlMessageHandlerModuleName,
717 IDR_MOJO_CONTROL_MESSAGE_HANDLER_JS}, 717 IDR_MOJO_CONTROL_MESSAGE_HANDLER_JS},
718 {mojo::kControlMessageProxyModuleName, IDR_MOJO_CONTROL_MESSAGE_PROXY_JS}, 718 {mojo::kControlMessageProxyModuleName, IDR_MOJO_CONTROL_MESSAGE_PROXY_JS},
719 {mojo::kInterfaceControlMessagesMojom, 719 {mojo::kInterfaceControlMessagesMojom,
720 IDR_MOJO_INTERFACE_CONTROL_MESSAGES_MOJOM_JS}, 720 IDR_MOJO_INTERFACE_CONTROL_MESSAGES_MOJOM_JS},
721 {mojo::kInterfaceTypesModuleName, IDR_MOJO_INTERFACE_TYPES_JS}, 721 {mojo::kInterfaceTypesModuleName, IDR_MOJO_INTERFACE_TYPES_JS},
722 {mojo::kRouterModuleName, IDR_MOJO_ROUTER_JS}, 722 {mojo::kRouterModuleName, IDR_MOJO_ROUTER_JS},
723 {mojo::kUnicodeModuleName, IDR_MOJO_UNICODE_JS}, 723 {mojo::kUnicodeModuleName, IDR_MOJO_UNICODE_JS},
724 {mojo::kValidatorModuleName, IDR_MOJO_VALIDATOR_JS}, 724 {mojo::kValidatorModuleName, IDR_MOJO_VALIDATOR_JS},
725 {mojo::kPipeControlMessagesMojom, IDR_MOJO_PIPE_CONTROL_MESSAGES_MOJOM_JS},
726 {mojo::kInterfaceEndpointClientModuleName, IDR_MOJO_INTERFACE_ENDPOINT_CLIEN T_JS},
727 {mojo::kInterfaceEndpointHandleModuleName, IDR_MOJO_INTERFACE_ENDPOINT_HANDL E_JS},
728 {mojo::kPipeControlMessageHandlerModuleName, IDR_MOJO_PIPE_CONTROL_MESSAGE_H ANDLER_JS},
729 {mojo::kPipeControlMessageProxyModuleName, IDR_MOJO_PIPE_CONTROL_MESSAGE_PRO XY_JS},
725 {"async_waiter", IDR_ASYNC_WAITER_JS}, 730 {"async_waiter", IDR_ASYNC_WAITER_JS},
726 {"keep_alive", IDR_KEEP_ALIVE_JS}, 731 {"keep_alive", IDR_KEEP_ALIVE_JS},
727 {"extensions/common/mojo/keep_alive.mojom", IDR_KEEP_ALIVE_MOJOM_JS}, 732 {"extensions/common/mojo/keep_alive.mojom", IDR_KEEP_ALIVE_MOJOM_JS},
728 733
729 // Custom bindings. 734 // Custom bindings.
730 {"app.runtime", IDR_APP_RUNTIME_CUSTOM_BINDINGS_JS}, 735 {"app.runtime", IDR_APP_RUNTIME_CUSTOM_BINDINGS_JS},
731 {"app.window", IDR_APP_WINDOW_CUSTOM_BINDINGS_JS}, 736 {"app.window", IDR_APP_WINDOW_CUSTOM_BINDINGS_JS},
732 {"declarativeWebRequest", IDR_DECLARATIVE_WEBREQUEST_CUSTOM_BINDINGS_JS}, 737 {"declarativeWebRequest", IDR_DECLARATIVE_WEBREQUEST_CUSTOM_BINDINGS_JS},
733 {"displaySource", IDR_DISPLAY_SOURCE_CUSTOM_BINDINGS_JS}, 738 {"displaySource", IDR_DISPLAY_SOURCE_CUSTOM_BINDINGS_JS},
734 {"contextMenus", IDR_CONTEXT_MENUS_CUSTOM_BINDINGS_JS}, 739 {"contextMenus", IDR_CONTEXT_MENUS_CUSTOM_BINDINGS_JS},
(...skipping 684 matching lines...) Expand 10 before | Expand all | Expand 10 after
1419 // The "guestViewDeny" module must always be loaded last. It registers 1424 // The "guestViewDeny" module must always be loaded last. It registers
1420 // error-providing custom elements for the GuestView types that are not 1425 // error-providing custom elements for the GuestView types that are not
1421 // available, and thus all of those types must have been checked and loaded 1426 // available, and thus all of those types must have been checked and loaded
1422 // (or not loaded) beforehand. 1427 // (or not loaded) beforehand.
1423 if (context_type == Feature::BLESSED_EXTENSION_CONTEXT) { 1428 if (context_type == Feature::BLESSED_EXTENSION_CONTEXT) {
1424 module_system->Require("guestViewDeny"); 1429 module_system->Require("guestViewDeny");
1425 } 1430 }
1426 } 1431 }
1427 1432
1428 } // namespace extensions 1433 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698