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

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

Issue 2676443005: Add interface versioning. Methods queryVersion and requireVersion. (Closed)
Patch Set: 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 734 matching lines...) Expand 10 before | Expand all | Expand 10 after
745 resources.push_back( 745 resources.push_back(
746 std::make_pair(mojo::kConnectorModuleName, IDR_MOJO_CONNECTOR_JS)); 746 std::make_pair(mojo::kConnectorModuleName, IDR_MOJO_CONNECTOR_JS));
747 resources.push_back(std::make_pair(mojo::kInterfaceTypesModuleName, 747 resources.push_back(std::make_pair(mojo::kInterfaceTypesModuleName,
748 IDR_MOJO_INTERFACE_TYPES_JS)); 748 IDR_MOJO_INTERFACE_TYPES_JS));
749 resources.push_back( 749 resources.push_back(
750 std::make_pair(mojo::kRouterModuleName, IDR_MOJO_ROUTER_JS)); 750 std::make_pair(mojo::kRouterModuleName, IDR_MOJO_ROUTER_JS));
751 resources.push_back( 751 resources.push_back(
752 std::make_pair(mojo::kUnicodeModuleName, IDR_MOJO_UNICODE_JS)); 752 std::make_pair(mojo::kUnicodeModuleName, IDR_MOJO_UNICODE_JS));
753 resources.push_back( 753 resources.push_back(
754 std::make_pair(mojo::kValidatorModuleName, IDR_MOJO_VALIDATOR_JS)); 754 std::make_pair(mojo::kValidatorModuleName, IDR_MOJO_VALIDATOR_JS));
755 resources.push_back(
756 std::make_pair(mojo::kControlMessageProxyModuleName,
757 IDR_MOJO_CONTROL_MESSAGE_PROXY_JS));
755 resources.push_back(std::make_pair("async_waiter", IDR_ASYNC_WAITER_JS)); 758 resources.push_back(std::make_pair("async_waiter", IDR_ASYNC_WAITER_JS));
756 resources.push_back(std::make_pair("keep_alive", IDR_KEEP_ALIVE_JS)); 759 resources.push_back(std::make_pair("keep_alive", IDR_KEEP_ALIVE_JS));
757 resources.push_back(std::make_pair("extensions/common/mojo/keep_alive.mojom", 760 resources.push_back(std::make_pair("extensions/common/mojo/keep_alive.mojom",
758 IDR_KEEP_ALIVE_MOJOM_JS)); 761 IDR_KEEP_ALIVE_MOJOM_JS));
759 762
760 // Custom bindings. 763 // Custom bindings.
761 resources.push_back( 764 resources.push_back(
762 std::make_pair("app.runtime", IDR_APP_RUNTIME_CUSTOM_BINDINGS_JS)); 765 std::make_pair("app.runtime", IDR_APP_RUNTIME_CUSTOM_BINDINGS_JS));
763 resources.push_back( 766 resources.push_back(
764 std::make_pair("app.window", IDR_APP_WINDOW_CUSTOM_BINDINGS_JS)); 767 std::make_pair("app.window", IDR_APP_WINDOW_CUSTOM_BINDINGS_JS));
(...skipping 698 matching lines...) Expand 10 before | Expand all | Expand 10 after
1463 // The "guestViewDeny" module must always be loaded last. It registers 1466 // The "guestViewDeny" module must always be loaded last. It registers
1464 // error-providing custom elements for the GuestView types that are not 1467 // error-providing custom elements for the GuestView types that are not
1465 // available, and thus all of those types must have been checked and loaded 1468 // available, and thus all of those types must have been checked and loaded
1466 // (or not loaded) beforehand. 1469 // (or not loaded) beforehand.
1467 if (context_type == Feature::BLESSED_EXTENSION_CONTEXT) { 1470 if (context_type == Feature::BLESSED_EXTENSION_CONTEXT) {
1468 module_system->Require("guestViewDeny"); 1471 module_system->Require("guestViewDeny");
1469 } 1472 }
1470 } 1473 }
1471 1474
1472 } // namespace extensions 1475 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698