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.
4
5#include "chrome/common/extensions/chrome_manifest_handlers.h"
6
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/file_browser_handlers/file_browser_handler.h"
11#include "chrome/common/extensions/api/i18n/default_locale_handler.h"
12#include "chrome/common/extensions/api/identity/oauth2_manifest_handler.h"
13#include "chrome/common/extensions/api/storage/storage_schema_manifest_handler.h"
14#if defined(OS_CHROMEOS)
15#include "chrome/common/extensions/api/input_ime/input_components_handler.h"
16#endif
17#include "chrome/common/extensions/api/omnibox/omnibox_handler.h"
18#include "chrome/common/extensions/api/plugins/plugins_handler.h"
19#include "chrome/common/extensions/api/speech/tts_engine_manifest_handler.h"
20#include "chrome/common/extensions/api/spellcheck/spellcheck_handler.h"
21#include "chrome/common/extensions/api/supervised_user_private/supervised_user_handler.h"
22#include "chrome/common/extensions/api/system_indicator/system_indicator_handler.h"
23#include "chrome/common/extensions/api/url_handlers/url_handlers_parser.h"
24#include "chrome/common/extensions/manifest_handlers/app_isolation_info.h"
25#include "chrome/common/extensions/manifest_handlers/app_launch_info.h"
26#include "chrome/common/extensions/manifest_handlers/automation.h"
27#include "chrome/common/extensions/manifest_handlers/content_scripts_handler.h"
28#include "chrome/common/extensions/manifest_handlers/mime_types_handler.h"
29#include "chrome/common/extensions/manifest_handlers/minimum_chrome_version_checker.h"
30#include "chrome/common/extensions/manifest_handlers/settings_overrides_handler.h"
31#include "chrome/common/extensions/manifest_handlers/synthesize_browser_action_handler.h"
32#include "chrome/common/extensions/manifest_handlers/theme_handler.h"
33#include "chrome/common/extensions/manifest_handlers/ui_overrides_handler.h"
34#include "chrome/common/extensions/manifest_url_handler.h"
35#include "extensions/common/api/bluetooth/bluetooth_manifest_handler.h"
36#include "extensions/common/manifest_handlers/options_page_info.h"
37#include "extensions/common/manifest_handlers/requirements_info.h"
38
39namespace extensions {
40
41void RegisterChromeManifestHandlers() {
42  DCHECK(!ManifestHandler::IsRegistrationFinalized());
43#if defined(ENABLE_EXTENSIONS)
44  (new AboutPageHandler)->Register();
45  (new AppIsolationHandler)->Register();
46  (new AppLaunchManifestHandler)->Register();
47  (new AutomationHandler)->Register();
48  (new BluetoothManifestHandler)->Register();
49  (new BrowserActionHandler)->Register();
50  (new CommandsHandler)->Register();
51  (new ContentScriptsHandler)->Register();
52  (new DefaultLocaleHandler)->Register();
53  (new DevToolsPageHandler)->Register();
54  (new FileBrowserHandlerParser)->Register();
55  (new HomepageURLHandler)->Register();
56#if defined(OS_CHROMEOS)
57  (new InputComponentsHandler)->Register();
58#endif
59  (new MimeTypesHandlerParser)->Register();
60  (new MinimumChromeVersionChecker)->Register();
61  (new OAuth2ManifestHandler)->Register();
62  (new OmniboxHandler)->Register();
63  (new OptionsPageManifestHandler)->Register();
64  (new PageActionHandler)->Register();
65  (new PluginsHandler)->Register();
66  (new RequirementsHandler)->Register();  // Depends on plugins.
67  (new SettingsOverridesHandler)->Register();
68  (new SpellcheckHandler)->Register();
69  (new StorageSchemaManifestHandler)->Register();
70  (new SupervisedUserHandler)->Register();
71  (new SynthesizeBrowserActionHandler)->Register();
72  (new SystemIndicatorHandler)->Register();
73  (new ThemeHandler)->Register();
74  (new TtsEngineManifestHandler)->Register();
75  (new UIOverridesHandler)->Register();
76  (new UpdateURLHandler)->Register();
77  (new UrlHandlersParser)->Register();
78  (new URLOverridesHandler)->Register();
79#endif
80}
81
82}  // namespace extensions
83