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 26 matching lines...) Expand all Loading... |
37 #include "chrome/common/extensions/manifest_handlers/minimum_chrome_version_chec
ker.h" | 37 #include "chrome/common/extensions/manifest_handlers/minimum_chrome_version_chec
ker.h" |
38 #include "chrome/common/extensions/manifest_handlers/nacl_modules_handler.h" | 38 #include "chrome/common/extensions/manifest_handlers/nacl_modules_handler.h" |
39 #include "chrome/common/extensions/manifest_handlers/offline_enabled_info.h" | 39 #include "chrome/common/extensions/manifest_handlers/offline_enabled_info.h" |
40 #include "chrome/common/extensions/manifest_handlers/requirements_handler.h" | 40 #include "chrome/common/extensions/manifest_handlers/requirements_handler.h" |
41 #include "chrome/common/extensions/manifest_handlers/sandboxed_page_info.h" | 41 #include "chrome/common/extensions/manifest_handlers/sandboxed_page_info.h" |
42 #include "chrome/common/extensions/manifest_handlers/shared_module_info.h" | 42 #include "chrome/common/extensions/manifest_handlers/shared_module_info.h" |
43 #include "chrome/common/extensions/manifest_handlers/theme_handler.h" | 43 #include "chrome/common/extensions/manifest_handlers/theme_handler.h" |
44 #include "chrome/common/extensions/manifest_url_handler.h" | 44 #include "chrome/common/extensions/manifest_url_handler.h" |
45 #include "chrome/common/extensions/mime_types_handler.h" | 45 #include "chrome/common/extensions/mime_types_handler.h" |
46 #include "chrome/common/extensions/web_accessible_resources_handler.h" | 46 #include "chrome/common/extensions/web_accessible_resources_handler.h" |
| 47 #include "chrome/common/extensions/webview_handler.h" |
47 | 48 |
48 namespace extensions { | 49 namespace extensions { |
49 | 50 |
50 void RegisterChromeManifestHandlers() { | 51 void RegisterChromeManifestHandlers() { |
51 // This can happen in unit tests, where the utility thread runs in-process. | 52 // This can happen in unit tests, where the utility thread runs in-process. |
52 if (ManifestHandler::IsRegistrationFinalized()) | 53 if (ManifestHandler::IsRegistrationFinalized()) |
53 return; | 54 return; |
54 #if defined(ENABLE_EXTENSIONS) | 55 #if defined(ENABLE_EXTENSIONS) |
55 (new AppIsolationHandler)->Register(); | 56 (new AppIsolationHandler)->Register(); |
56 (new AppLaunchManifestHandler)->Register(); | 57 (new AppLaunchManifestHandler)->Register(); |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 (new SocketsHandler)->Register(); | 91 (new SocketsHandler)->Register(); |
91 (new SpellcheckHandler)->Register(); | 92 (new SpellcheckHandler)->Register(); |
92 (new StorageSchemaManifestHandler)->Register(); | 93 (new StorageSchemaManifestHandler)->Register(); |
93 (new SystemIndicatorHandler)->Register(); | 94 (new SystemIndicatorHandler)->Register(); |
94 (new ThemeHandler)->Register(); | 95 (new ThemeHandler)->Register(); |
95 (new TtsEngineManifestHandler)->Register(); | 96 (new TtsEngineManifestHandler)->Register(); |
96 (new UpdateURLHandler)->Register(); | 97 (new UpdateURLHandler)->Register(); |
97 (new UrlHandlersParser)->Register(); | 98 (new UrlHandlersParser)->Register(); |
98 (new URLOverridesHandler)->Register(); | 99 (new URLOverridesHandler)->Register(); |
99 (new WebAccessibleResourcesHandler)->Register(); | 100 (new WebAccessibleResourcesHandler)->Register(); |
| 101 (new WebviewHandler)->Register(); |
100 ManifestHandler::FinalizeRegistration(); | 102 ManifestHandler::FinalizeRegistration(); |
101 #endif | 103 #endif |
102 } | 104 } |
103 | 105 |
104 } // namespace extensions | 106 } // namespace extensions |
OLD | NEW |