OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 "chrome/common/extensions/chrome_manifest_handlers.h" | 5 #include "chrome/common/extensions/chrome_manifest_handlers.h" |
6 | 6 |
7 #include "chrome/common/extensions/api/commands/commands_handler.h" | 7 #include "chrome/common/extensions/api/commands/commands_handler.h" |
8 #include "chrome/common/extensions/api/extension_action/browser_action_handler.h
" | 8 #include "chrome/common/extensions/api/extension_action/browser_action_handler.h
" |
9 #include "chrome/common/extensions/api/extension_action/page_action_handler.h" | 9 #include "chrome/common/extensions/api/extension_action/page_action_handler.h" |
10 #include "chrome/common/extensions/api/extension_action/script_badge_handler.h" | 10 #include "chrome/common/extensions/api/extension_action/script_badge_handler.h" |
(...skipping 25 matching lines...) Expand all Loading... |
36 #include "chrome/common/extensions/manifest_handlers/minimum_chrome_version_chec
ker.h" | 36 #include "chrome/common/extensions/manifest_handlers/minimum_chrome_version_chec
ker.h" |
37 #include "chrome/common/extensions/manifest_handlers/nacl_modules_handler.h" | 37 #include "chrome/common/extensions/manifest_handlers/nacl_modules_handler.h" |
38 #include "chrome/common/extensions/manifest_handlers/offline_enabled_info.h" | 38 #include "chrome/common/extensions/manifest_handlers/offline_enabled_info.h" |
39 #include "chrome/common/extensions/manifest_handlers/requirements_handler.h" | 39 #include "chrome/common/extensions/manifest_handlers/requirements_handler.h" |
40 #include "chrome/common/extensions/manifest_handlers/sandboxed_page_info.h" | 40 #include "chrome/common/extensions/manifest_handlers/sandboxed_page_info.h" |
41 #include "chrome/common/extensions/manifest_handlers/shared_module_info.h" | 41 #include "chrome/common/extensions/manifest_handlers/shared_module_info.h" |
42 #include "chrome/common/extensions/manifest_handlers/theme_handler.h" | 42 #include "chrome/common/extensions/manifest_handlers/theme_handler.h" |
43 #include "chrome/common/extensions/manifest_url_handler.h" | 43 #include "chrome/common/extensions/manifest_url_handler.h" |
44 #include "chrome/common/extensions/mime_types_handler.h" | 44 #include "chrome/common/extensions/mime_types_handler.h" |
45 #include "chrome/common/extensions/web_accessible_resources_handler.h" | 45 #include "chrome/common/extensions/web_accessible_resources_handler.h" |
| 46 #include "chrome/common/extensions/webview_handler.h" |
46 | 47 |
47 namespace extensions { | 48 namespace extensions { |
48 | 49 |
49 void RegisterChromeManifestHandlers() { | 50 void RegisterChromeManifestHandlers() { |
50 // This can happen in unit tests, where the utility thread runs in-process. | 51 // This can happen in unit tests, where the utility thread runs in-process. |
51 if (ManifestHandler::IsRegistrationFinalized()) | 52 if (ManifestHandler::IsRegistrationFinalized()) |
52 return; | 53 return; |
53 #if defined(ENABLE_EXTENSIONS) | 54 #if defined(ENABLE_EXTENSIONS) |
54 (new AppIsolationHandler)->Register(); | 55 (new AppIsolationHandler)->Register(); |
55 (new AppLaunchManifestHandler)->Register(); | 56 (new AppLaunchManifestHandler)->Register(); |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 (new SharedModuleHandler)->Register(); | 89 (new SharedModuleHandler)->Register(); |
89 (new SpellcheckHandler)->Register(); | 90 (new SpellcheckHandler)->Register(); |
90 (new StorageSchemaManifestHandler)->Register(); | 91 (new StorageSchemaManifestHandler)->Register(); |
91 (new SystemIndicatorHandler)->Register(); | 92 (new SystemIndicatorHandler)->Register(); |
92 (new ThemeHandler)->Register(); | 93 (new ThemeHandler)->Register(); |
93 (new TtsEngineManifestHandler)->Register(); | 94 (new TtsEngineManifestHandler)->Register(); |
94 (new UpdateURLHandler)->Register(); | 95 (new UpdateURLHandler)->Register(); |
95 (new UrlHandlersParser)->Register(); | 96 (new UrlHandlersParser)->Register(); |
96 (new URLOverridesHandler)->Register(); | 97 (new URLOverridesHandler)->Register(); |
97 (new WebAccessibleResourcesHandler)->Register(); | 98 (new WebAccessibleResourcesHandler)->Register(); |
| 99 (new WebviewHandler)->Register(); |
98 ManifestHandler::FinalizeRegistration(); | 100 ManifestHandler::FinalizeRegistration(); |
99 #endif | 101 #endif |
100 } | 102 } |
101 | 103 |
102 } // namespace extensions | 104 } // namespace extensions |
OLD | NEW |