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

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

Issue 2744963002: Introduce InterfaceEndpointClient(IEC), InterfaceEndpointHandle and (Closed)
Patch Set: Add binding.html layout test for connection error with reason. Reset IEC when reset() or close()… 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 720 matching lines...) Expand 10 before | Expand all | Expand 10 after
731 731
732 {mojo::kBindingsModuleName, IDR_MOJO_BINDINGS_JS}, 732 {mojo::kBindingsModuleName, IDR_MOJO_BINDINGS_JS},
733 {mojo::kBufferModuleName, IDR_MOJO_BUFFER_JS}, 733 {mojo::kBufferModuleName, IDR_MOJO_BUFFER_JS},
734 {mojo::kCodecModuleName, IDR_MOJO_CODEC_JS}, 734 {mojo::kCodecModuleName, IDR_MOJO_CODEC_JS},
735 {mojo::kConnectorModuleName, IDR_MOJO_CONNECTOR_JS}, 735 {mojo::kConnectorModuleName, IDR_MOJO_CONNECTOR_JS},
736 {mojo::kControlMessageHandlerModuleName, 736 {mojo::kControlMessageHandlerModuleName,
737 IDR_MOJO_CONTROL_MESSAGE_HANDLER_JS}, 737 IDR_MOJO_CONTROL_MESSAGE_HANDLER_JS},
738 {mojo::kControlMessageProxyModuleName, IDR_MOJO_CONTROL_MESSAGE_PROXY_JS}, 738 {mojo::kControlMessageProxyModuleName, IDR_MOJO_CONTROL_MESSAGE_PROXY_JS},
739 {mojo::kInterfaceControlMessagesMojom, 739 {mojo::kInterfaceControlMessagesMojom,
740 IDR_MOJO_INTERFACE_CONTROL_MESSAGES_MOJOM_JS}, 740 IDR_MOJO_INTERFACE_CONTROL_MESSAGES_MOJOM_JS},
741 {mojo::kInterfaceEndpointClientModuleName,
742 IDR_MOJO_INTERFACE_ENDPOINT_CLIENT_JS},
743 {mojo::kInterfaceEndpointHandleModuleName,
744 IDR_MOJO_INTERFACE_ENDPOINT_HANDLE_JS},
741 {mojo::kInterfaceTypesModuleName, IDR_MOJO_INTERFACE_TYPES_JS}, 745 {mojo::kInterfaceTypesModuleName, IDR_MOJO_INTERFACE_TYPES_JS},
746 {mojo::kPipeControlMessageHandlerModuleName,
747 IDR_MOJO_PIPE_CONTROL_MESSAGE_HANDLER_JS},
748 {mojo::kPipeControlMessageProxyModuleName,
749 IDR_MOJO_PIPE_CONTROL_MESSAGE_PROXY_JS},
750 {mojo::kPipeControlMessagesMojom, IDR_MOJO_PIPE_CONTROL_MESSAGES_MOJOM_JS},
742 {mojo::kRouterModuleName, IDR_MOJO_ROUTER_JS}, 751 {mojo::kRouterModuleName, IDR_MOJO_ROUTER_JS},
743 {mojo::kUnicodeModuleName, IDR_MOJO_UNICODE_JS}, 752 {mojo::kUnicodeModuleName, IDR_MOJO_UNICODE_JS},
744 {mojo::kValidatorModuleName, IDR_MOJO_VALIDATOR_JS}, 753 {mojo::kValidatorModuleName, IDR_MOJO_VALIDATOR_JS},
745 {"async_waiter", IDR_ASYNC_WAITER_JS}, 754 {"async_waiter", IDR_ASYNC_WAITER_JS},
746 {"keep_alive", IDR_KEEP_ALIVE_JS}, 755 {"keep_alive", IDR_KEEP_ALIVE_JS},
747 {"extensions/common/mojo/keep_alive.mojom", IDR_KEEP_ALIVE_MOJOM_JS}, 756 {"extensions/common/mojo/keep_alive.mojom", IDR_KEEP_ALIVE_MOJOM_JS},
748 757
749 // Custom bindings. 758 // Custom bindings.
750 {"app.runtime", IDR_APP_RUNTIME_CUSTOM_BINDINGS_JS}, 759 {"app.runtime", IDR_APP_RUNTIME_CUSTOM_BINDINGS_JS},
751 {"app.window", IDR_APP_WINDOW_CUSTOM_BINDINGS_JS}, 760 {"app.window", IDR_APP_WINDOW_CUSTOM_BINDINGS_JS},
(...skipping 687 matching lines...) Expand 10 before | Expand all | Expand 10 after
1439 // The "guestViewDeny" module must always be loaded last. It registers 1448 // The "guestViewDeny" module must always be loaded last. It registers
1440 // error-providing custom elements for the GuestView types that are not 1449 // error-providing custom elements for the GuestView types that are not
1441 // available, and thus all of those types must have been checked and loaded 1450 // available, and thus all of those types must have been checked and loaded
1442 // (or not loaded) beforehand. 1451 // (or not loaded) beforehand.
1443 if (context_type == Feature::BLESSED_EXTENSION_CONTEXT) { 1452 if (context_type == Feature::BLESSED_EXTENSION_CONTEXT) {
1444 module_system->Require("guestViewDeny"); 1453 module_system->Require("guestViewDeny");
1445 } 1454 }
1446 } 1455 }
1447 1456
1448 } // namespace extensions 1457 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698