| 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 770 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 781 resources.push_back(std::make_pair("extensions/common/api/mime_handler.mojom", | 781 resources.push_back(std::make_pair("extensions/common/api/mime_handler.mojom", |
| 782 IDR_MIME_HANDLER_MOJOM_JS)); | 782 IDR_MIME_HANDLER_MOJOM_JS)); |
| 783 resources.push_back( | 783 resources.push_back( |
| 784 std::make_pair("mojoPrivate", IDR_MOJO_PRIVATE_CUSTOM_BINDINGS_JS)); | 784 std::make_pair("mojoPrivate", IDR_MOJO_PRIVATE_CUSTOM_BINDINGS_JS)); |
| 785 resources.push_back( | 785 resources.push_back( |
| 786 std::make_pair("permissions", IDR_PERMISSIONS_CUSTOM_BINDINGS_JS)); | 786 std::make_pair("permissions", IDR_PERMISSIONS_CUSTOM_BINDINGS_JS)); |
| 787 resources.push_back(std::make_pair("printerProvider", | 787 resources.push_back(std::make_pair("printerProvider", |
| 788 IDR_PRINTER_PROVIDER_CUSTOM_BINDINGS_JS)); | 788 IDR_PRINTER_PROVIDER_CUSTOM_BINDINGS_JS)); |
| 789 resources.push_back( | 789 resources.push_back( |
| 790 std::make_pair("runtime", IDR_RUNTIME_CUSTOM_BINDINGS_JS)); | 790 std::make_pair("runtime", IDR_RUNTIME_CUSTOM_BINDINGS_JS)); |
| 791 resources.push_back(std::make_pair("windowControls", IDR_WINDOW_CONTROLS_JS)); | |
| 792 resources.push_back( | 791 resources.push_back( |
| 793 std::make_pair("webViewRequest", | 792 std::make_pair("webViewRequest", |
| 794 IDR_WEB_VIEW_REQUEST_CUSTOM_BINDINGS_JS)); | 793 IDR_WEB_VIEW_REQUEST_CUSTOM_BINDINGS_JS)); |
| 795 resources.push_back(std::make_pair("binding", IDR_BINDING_JS)); | 794 resources.push_back(std::make_pair("binding", IDR_BINDING_JS)); |
| 796 | 795 |
| 797 // Custom types sources. | 796 // Custom types sources. |
| 798 resources.push_back(std::make_pair("StorageArea", IDR_STORAGE_AREA_JS)); | 797 resources.push_back(std::make_pair("StorageArea", IDR_STORAGE_AREA_JS)); |
| 799 | 798 |
| 800 // Platform app sources that are not API-specific.. | 799 // Platform app sources that are not API-specific.. |
| 801 resources.push_back(std::make_pair("platformApp", IDR_PLATFORM_APP_JS)); | 800 resources.push_back(std::make_pair("platformApp", IDR_PLATFORM_APP_JS)); |
| (...skipping 663 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1465 // The "guestViewDeny" module must always be loaded last. It registers | 1464 // The "guestViewDeny" module must always be loaded last. It registers |
| 1466 // error-providing custom elements for the GuestView types that are not | 1465 // error-providing custom elements for the GuestView types that are not |
| 1467 // available, and thus all of those types must have been checked and loaded | 1466 // available, and thus all of those types must have been checked and loaded |
| 1468 // (or not loaded) beforehand. | 1467 // (or not loaded) beforehand. |
| 1469 if (context_type == Feature::BLESSED_EXTENSION_CONTEXT) { | 1468 if (context_type == Feature::BLESSED_EXTENSION_CONTEXT) { |
| 1470 module_system->Require("guestViewDeny"); | 1469 module_system->Require("guestViewDeny"); |
| 1471 } | 1470 } |
| 1472 } | 1471 } |
| 1473 | 1472 |
| 1474 } // namespace extensions | 1473 } // namespace extensions |
| OLD | NEW |