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
3 // found in the LICENSE file.
5 #include "chrome/common/extensions/chrome_manifest_handlers.h"
7 #include "chrome/common/extensions/api/commands/commands_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"
10 #include "chrome/common/extensions/api/extension_action/script_badge_handler.h"
11 #include "chrome/common/extensions/api/file_browser_handlers/file_browser_handler.h"
12 #include "chrome/common/extensions/api/file_handlers/file_handlers_parser.h"
13 #include "chrome/common/extensions/api/i18n/default_locale_handler.h"
14 #include "chrome/common/extensions/api/identity/oauth2_manifest_handler.h"
15 #include "chrome/common/extensions/api/storage/storage_schema_manifest_handler.h"
16 #if defined(OS_CHROMEOS)
17 #include "chrome/common/extensions/api/input_ime/input_components_handler.h"
19 #include "chrome/common/extensions/api/managed_mode_private/managed_mode_handler.h"
20 #include "chrome/common/extensions/api/media_galleries_private/media_galleries_handler.h"
21 #include "chrome/common/extensions/api/omnibox/omnibox_handler.h"
22 #include "chrome/common/extensions/api/plugins/plugins_handler.h"
23 #include "chrome/common/extensions/api/sockets/sockets_manifest_handler.h"
24 #include "chrome/common/extensions/api/speech/tts_engine_manifest_handler.h"
25 #include "chrome/common/extensions/api/spellcheck/spellcheck_handler.h"
26 #include "chrome/common/extensions/api/system_indicator/system_indicator_handler.h"
27 #include "chrome/common/extensions/api/url_handlers/url_handlers_parser.h"
28 #include "chrome/common/extensions/manifest_handlers/app_isolation_info.h"
29 #include "chrome/common/extensions/manifest_handlers/app_launch_info.h"
30 #include "chrome/common/extensions/manifest_handlers/content_scripts_handler.h"
31 #include "chrome/common/extensions/manifest_handlers/externally_connectable.h"
32 #include "chrome/common/extensions/manifest_handlers/icons_handler.h"
33 #include "chrome/common/extensions/manifest_handlers/minimum_chrome_version_checker.h"
34 #include "chrome/common/extensions/manifest_handlers/nacl_modules_handler.h"
35 #include "chrome/common/extensions/manifest_handlers/settings_overrides_handler.h"
36 #include "chrome/common/extensions/manifest_handlers/theme_handler.h"
37 #include "chrome/common/extensions/manifest_url_handler.h"
38 #include "chrome/common/extensions/mime_types_handler.h"
39 #include "extensions/common/manifest_handlers/requirements_info.h"
41 namespace extensions
{
43 void RegisterChromeManifestHandlers() {
44 DCHECK(!ManifestHandler::IsRegistrationFinalized());
45 #if defined(ENABLE_EXTENSIONS)
46 (new AppIsolationHandler
)->Register();
47 (new AppLaunchManifestHandler
)->Register();
48 (new BrowserActionHandler
)->Register();
49 (new CommandsHandler
)->Register();
50 (new ContentScriptsHandler
)->Register();
51 (new DefaultLocaleHandler
)->Register();
52 (new DevToolsPageHandler
)->Register();
53 (new ExternallyConnectableHandler
)->Register();
54 (new FileBrowserHandlerParser
)->Register();
55 (new FileHandlersParser
)->Register();
56 (new HomepageURLHandler
)->Register();
57 (new IconsHandler
)->Register();
58 #if defined(OS_CHROMEOS)
59 (new InputComponentsHandler
)->Register();
61 (new ManagedModeHandler
)->Register();
62 (new MediaGalleriesHandlerParser
)->Register();
63 (new MimeTypesHandlerParser
)->Register();
64 (new MinimumChromeVersionChecker
)->Register();
65 (new NaClModulesHandler
)->Register();
66 (new OAuth2ManifestHandler
)->Register();
67 (new OmniboxHandler
)->Register();
68 (new OptionsPageHandler
)->Register();
69 (new PageActionHandler
)->Register();
70 (new PluginsHandler
)->Register();
71 (new RequirementsHandler
)->Register(); // Depends on plugins.
72 (new SettingsOverridesHandler
)->Register();
73 (new ScriptBadgeHandler
)->Register();
74 (new SocketsManifestHandler
)->Register();
75 (new SpellcheckHandler
)->Register();
76 (new StorageSchemaManifestHandler
)->Register();
77 (new SystemIndicatorHandler
)->Register();
78 (new ThemeHandler
)->Register();
79 (new TtsEngineManifestHandler
)->Register();
80 (new UpdateURLHandler
)->Register();
81 (new UrlHandlersParser
)->Register();
82 (new URLOverridesHandler
)->Register();
86 } // namespace extensions