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

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

Issue 2676443005: Add interface versioning. Methods queryVersion and requireVersion. (Closed)
Patch Set: Add interface_control_messages.mojom.js to build resources Created 3 years, 10 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 690 matching lines...) Expand 10 before | Expand all | Expand 10 after
701 {"webViewInternal", IDR_WEB_VIEW_INTERNAL_CUSTOM_BINDINGS_JS}, 701 {"webViewInternal", IDR_WEB_VIEW_INTERNAL_CUSTOM_BINDINGS_JS},
702 702
703 {mojo::kBindingsModuleName, IDR_MOJO_BINDINGS_JS}, 703 {mojo::kBindingsModuleName, IDR_MOJO_BINDINGS_JS},
704 {mojo::kBufferModuleName, IDR_MOJO_BUFFER_JS}, 704 {mojo::kBufferModuleName, IDR_MOJO_BUFFER_JS},
705 {mojo::kCodecModuleName, IDR_MOJO_CODEC_JS}, 705 {mojo::kCodecModuleName, IDR_MOJO_CODEC_JS},
706 {mojo::kConnectorModuleName, IDR_MOJO_CONNECTOR_JS}, 706 {mojo::kConnectorModuleName, IDR_MOJO_CONNECTOR_JS},
707 {mojo::kInterfaceTypesModuleName, IDR_MOJO_INTERFACE_TYPES_JS}, 707 {mojo::kInterfaceTypesModuleName, IDR_MOJO_INTERFACE_TYPES_JS},
708 {mojo::kRouterModuleName, IDR_MOJO_ROUTER_JS}, 708 {mojo::kRouterModuleName, IDR_MOJO_ROUTER_JS},
709 {mojo::kUnicodeModuleName, IDR_MOJO_UNICODE_JS}, 709 {mojo::kUnicodeModuleName, IDR_MOJO_UNICODE_JS},
710 {mojo::kValidatorModuleName, IDR_MOJO_VALIDATOR_JS}, 710 {mojo::kValidatorModuleName, IDR_MOJO_VALIDATOR_JS},
711 {mojo::kControlMessageProxyModuleName, IDR_MOJO_CONTROL_MESSAGE_PROXY_JS},
712 {mojo::kControlMessageHandlerModuleName,
713 IDR_MOJO_CONTROL_MESSAGE_HANDLER_JS},
714 {mojo:kInterfaceControlMessagesMojom,
715 IDR_MOJO_INTERFACE_CONTROL_MESSAGES_MOJO_JS},
711 {"async_waiter", IDR_ASYNC_WAITER_JS}, 716 {"async_waiter", IDR_ASYNC_WAITER_JS},
712 {"keep_alive", IDR_KEEP_ALIVE_JS}, 717 {"keep_alive", IDR_KEEP_ALIVE_JS},
713 {"extensions/common/mojo/keep_alive.mojom", IDR_KEEP_ALIVE_MOJOM_JS}, 718 {"extensions/common/mojo/keep_alive.mojom", IDR_KEEP_ALIVE_MOJOM_JS},
714 719
715 // Custom bindings. 720 // Custom bindings.
716 {"app.runtime", IDR_APP_RUNTIME_CUSTOM_BINDINGS_JS}, 721 {"app.runtime", IDR_APP_RUNTIME_CUSTOM_BINDINGS_JS},
717 {"app.window", IDR_APP_WINDOW_CUSTOM_BINDINGS_JS}, 722 {"app.window", IDR_APP_WINDOW_CUSTOM_BINDINGS_JS},
718 {"declarativeWebRequest", IDR_DECLARATIVE_WEBREQUEST_CUSTOM_BINDINGS_JS}, 723 {"declarativeWebRequest", IDR_DECLARATIVE_WEBREQUEST_CUSTOM_BINDINGS_JS},
719 {"displaySource", IDR_DISPLAY_SOURCE_CUSTOM_BINDINGS_JS}, 724 {"displaySource", IDR_DISPLAY_SOURCE_CUSTOM_BINDINGS_JS},
720 {"contextMenus", IDR_CONTEXT_MENUS_CUSTOM_BINDINGS_JS}, 725 {"contextMenus", IDR_CONTEXT_MENUS_CUSTOM_BINDINGS_JS},
(...skipping 682 matching lines...) Expand 10 before | Expand all | Expand 10 after
1403 // The "guestViewDeny" module must always be loaded last. It registers 1408 // The "guestViewDeny" module must always be loaded last. It registers
1404 // error-providing custom elements for the GuestView types that are not 1409 // error-providing custom elements for the GuestView types that are not
1405 // available, and thus all of those types must have been checked and loaded 1410 // available, and thus all of those types must have been checked and loaded
1406 // (or not loaded) beforehand. 1411 // (or not loaded) beforehand.
1407 if (context_type == Feature::BLESSED_EXTENSION_CONTEXT) { 1412 if (context_type == Feature::BLESSED_EXTENSION_CONTEXT) {
1408 module_system->Require("guestViewDeny"); 1413 module_system->Require("guestViewDeny");
1409 } 1414 }
1410 } 1415 }
1411 1416
1412 } // namespace extensions 1417 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698