| 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 751 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 762 std::make_pair(mojo::kConnectionModuleName, IDR_MOJO_CONNECTION_JS)); | 762 std::make_pair(mojo::kConnectionModuleName, IDR_MOJO_CONNECTION_JS)); |
| 763 resources.push_back( | 763 resources.push_back( |
| 764 std::make_pair(mojo::kConnectorModuleName, IDR_MOJO_CONNECTOR_JS)); | 764 std::make_pair(mojo::kConnectorModuleName, IDR_MOJO_CONNECTOR_JS)); |
| 765 resources.push_back( | 765 resources.push_back( |
| 766 std::make_pair(mojo::kRouterModuleName, IDR_MOJO_ROUTER_JS)); | 766 std::make_pair(mojo::kRouterModuleName, IDR_MOJO_ROUTER_JS)); |
| 767 resources.push_back( | 767 resources.push_back( |
| 768 std::make_pair(mojo::kUnicodeModuleName, IDR_MOJO_UNICODE_JS)); | 768 std::make_pair(mojo::kUnicodeModuleName, IDR_MOJO_UNICODE_JS)); |
| 769 resources.push_back( | 769 resources.push_back( |
| 770 std::make_pair(mojo::kValidatorModuleName, IDR_MOJO_VALIDATOR_JS)); | 770 std::make_pair(mojo::kValidatorModuleName, IDR_MOJO_VALIDATOR_JS)); |
| 771 resources.push_back(std::make_pair("async_waiter", IDR_ASYNC_WAITER_JS)); | 771 resources.push_back(std::make_pair("async_waiter", IDR_ASYNC_WAITER_JS)); |
| 772 resources.push_back(std::make_pair("keep_alive", IDR_KEEP_ALIVE_JS)); | |
| 773 resources.push_back(std::make_pair("extensions/common/mojo/keep_alive.mojom", | 772 resources.push_back(std::make_pair("extensions/common/mojo/keep_alive.mojom", |
| 774 IDR_KEEP_ALIVE_MOJOM_JS)); | 773 IDR_KEEP_ALIVE_MOJOM_JS)); |
| 775 | 774 |
| 776 // Custom bindings. | 775 // Custom bindings. |
| 777 resources.push_back( | 776 resources.push_back( |
| 778 std::make_pair("app.runtime", IDR_APP_RUNTIME_CUSTOM_BINDINGS_JS)); | 777 std::make_pair("app.runtime", IDR_APP_RUNTIME_CUSTOM_BINDINGS_JS)); |
| 779 resources.push_back( | 778 resources.push_back( |
| 780 std::make_pair("app.window", IDR_APP_WINDOW_CUSTOM_BINDINGS_JS)); | 779 std::make_pair("app.window", IDR_APP_WINDOW_CUSTOM_BINDINGS_JS)); |
| 781 resources.push_back( | 780 resources.push_back( |
| 782 std::make_pair("declarativeWebRequest", | 781 std::make_pair("declarativeWebRequest", |
| 783 IDR_DECLARATIVE_WEBREQUEST_CUSTOM_BINDINGS_JS)); | 782 IDR_DECLARATIVE_WEBREQUEST_CUSTOM_BINDINGS_JS)); |
| 784 resources.push_back( | 783 resources.push_back( |
| 785 std::make_pair("displaySource", | 784 std::make_pair("displaySource", |
| 786 IDR_DISPLAY_SOURCE_CUSTOM_BINDINGS_JS)); | 785 IDR_DISPLAY_SOURCE_CUSTOM_BINDINGS_JS)); |
| 787 resources.push_back( | 786 resources.push_back( |
| 788 std::make_pair("contextMenus", IDR_CONTEXT_MENUS_CUSTOM_BINDINGS_JS)); | 787 std::make_pair("contextMenus", IDR_CONTEXT_MENUS_CUSTOM_BINDINGS_JS)); |
| 789 resources.push_back( | 788 resources.push_back( |
| 790 std::make_pair("contextMenusHandlers", IDR_CONTEXT_MENUS_HANDLERS_JS)); | 789 std::make_pair("contextMenusHandlers", IDR_CONTEXT_MENUS_HANDLERS_JS)); |
| 791 resources.push_back( | 790 resources.push_back( |
| 792 std::make_pair("extension", IDR_EXTENSION_CUSTOM_BINDINGS_JS)); | 791 std::make_pair("extension", IDR_EXTENSION_CUSTOM_BINDINGS_JS)); |
| 793 resources.push_back(std::make_pair("i18n", IDR_I18N_CUSTOM_BINDINGS_JS)); | 792 resources.push_back(std::make_pair("i18n", IDR_I18N_CUSTOM_BINDINGS_JS)); |
| 794 resources.push_back(std::make_pair( | |
| 795 "mimeHandlerPrivate", IDR_MIME_HANDLER_PRIVATE_CUSTOM_BINDINGS_JS)); | |
| 796 resources.push_back(std::make_pair("extensions/common/api/mime_handler.mojom", | 793 resources.push_back(std::make_pair("extensions/common/api/mime_handler.mojom", |
| 797 IDR_MIME_HANDLER_MOJOM_JS)); | 794 IDR_MIME_HANDLER_MOJOM_JS)); |
| 798 resources.push_back( | 795 resources.push_back( |
| 799 std::make_pair("mojoPrivate", IDR_MOJO_PRIVATE_CUSTOM_BINDINGS_JS)); | 796 std::make_pair("mojoPrivate", IDR_MOJO_PRIVATE_CUSTOM_BINDINGS_JS)); |
| 800 resources.push_back( | 797 resources.push_back( |
| 801 std::make_pair("permissions", IDR_PERMISSIONS_CUSTOM_BINDINGS_JS)); | 798 std::make_pair("permissions", IDR_PERMISSIONS_CUSTOM_BINDINGS_JS)); |
| 802 resources.push_back(std::make_pair("printerProvider", | 799 resources.push_back(std::make_pair("printerProvider", |
| 803 IDR_PRINTER_PROVIDER_CUSTOM_BINDINGS_JS)); | 800 IDR_PRINTER_PROVIDER_CUSTOM_BINDINGS_JS)); |
| 804 resources.push_back( | 801 resources.push_back( |
| 805 std::make_pair("runtime", IDR_RUNTIME_CUSTOM_BINDINGS_JS)); | 802 std::make_pair("runtime", IDR_RUNTIME_CUSTOM_BINDINGS_JS)); |
| (...skipping 845 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1651 // The "guestViewDeny" module must always be loaded last. It registers | 1648 // The "guestViewDeny" module must always be loaded last. It registers |
| 1652 // error-providing custom elements for the GuestView types that are not | 1649 // error-providing custom elements for the GuestView types that are not |
| 1653 // available, and thus all of those types must have been checked and loaded | 1650 // available, and thus all of those types must have been checked and loaded |
| 1654 // (or not loaded) beforehand. | 1651 // (or not loaded) beforehand. |
| 1655 if (context_type == Feature::BLESSED_EXTENSION_CONTEXT) { | 1652 if (context_type == Feature::BLESSED_EXTENSION_CONTEXT) { |
| 1656 module_system->Require("guestViewDeny"); | 1653 module_system->Require("guestViewDeny"); |
| 1657 } | 1654 } |
| 1658 } | 1655 } |
| 1659 | 1656 |
| 1660 } // namespace extensions | 1657 } // namespace extensions |
| OLD | NEW |