[email protected] | 08b7139 | 2014-01-07 18:52:09 | [diff] [blame] | 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 | ||||
3 | // found in the LICENSE file. | ||||
4 | |||||
5 | #include "extensions/common/common_manifest_handlers.h" | ||||
6 | |||||
jamescook | 05f4202 | 2014-10-06 18:24:33 | [diff] [blame] | 7 | #include "extensions/common/api/bluetooth/bluetooth_manifest_handler.h" |
jamescook | 4860e1a3 | 2014-09-20 01:49:02 | [diff] [blame] | 8 | #include "extensions/common/api/sockets/sockets_manifest_handler.h" |
[email protected] | 08b7139 | 2014-01-07 18:52:09 | [diff] [blame] | 9 | #include "extensions/common/manifest_handler.h" |
10 | #include "extensions/common/manifest_handlers/background_info.h" | ||||
11 | #include "extensions/common/manifest_handlers/csp_info.h" | ||||
jamescook | a02b3e5 | 2014-09-18 16:22:59 | [diff] [blame] | 12 | #include "extensions/common/manifest_handlers/externally_connectable.h" |
[email protected] | 53c7e6f | 2014-05-20 21:14:08 | [diff] [blame] | 13 | #include "extensions/common/manifest_handlers/file_handler_info.h" |
[email protected] | a9a6615 | 2014-06-20 21:24:33 | [diff] [blame] | 14 | #include "extensions/common/manifest_handlers/icons_handler.h" |
[email protected] | 08b7139 | 2014-01-07 18:52:09 | [diff] [blame] | 15 | #include "extensions/common/manifest_handlers/incognito_info.h" |
16 | #include "extensions/common/manifest_handlers/kiosk_mode_info.h" | ||||
mgiuca | 2be0d052 | 2014-08-26 06:42:10 | [diff] [blame] | 17 | #include "extensions/common/manifest_handlers/launcher_page_info.h" |
[email protected] | b90f343 | 2014-08-07 20:40:07 | [diff] [blame] | 18 | #include "extensions/common/manifest_handlers/nacl_modules_handler.h" |
jamescook | 71187e34 | 2014-10-20 23:47:15 | [diff] [blame^] | 19 | #include "extensions/common/manifest_handlers/oauth2_manifest_handler.h" |
[email protected] | 08b7139 | 2014-01-07 18:52:09 | [diff] [blame] | 20 | #include "extensions/common/manifest_handlers/offline_enabled_info.h" |
21 | #include "extensions/common/manifest_handlers/sandboxed_page_info.h" | ||||
22 | #include "extensions/common/manifest_handlers/shared_module_info.h" | ||||
[email protected] | 474b1f7 | 2014-01-16 02:38:07 | [diff] [blame] | 23 | #include "extensions/common/manifest_handlers/web_accessible_resources_info.h" |
24 | #include "extensions/common/manifest_handlers/webview_info.h" | ||||
[email protected] | 08b7139 | 2014-01-07 18:52:09 | [diff] [blame] | 25 | |
26 | namespace extensions { | ||||
27 | |||||
28 | void RegisterCommonManifestHandlers() { | ||||
29 | DCHECK(!ManifestHandler::IsRegistrationFinalized()); | ||||
jamescook | a02b3e5 | 2014-09-18 16:22:59 | [diff] [blame] | 30 | #if defined(ENABLE_EXTENSIONS) |
[email protected] | 08b7139 | 2014-01-07 18:52:09 | [diff] [blame] | 31 | (new BackgroundManifestHandler)->Register(); |
jamescook | 05f4202 | 2014-10-06 18:24:33 | [diff] [blame] | 32 | (new BluetoothManifestHandler)->Register(); |
[email protected] | 08b7139 | 2014-01-07 18:52:09 | [diff] [blame] | 33 | (new CSPHandler(false))->Register(); |
34 | (new CSPHandler(true))->Register(); | ||||
jamescook | a02b3e5 | 2014-09-18 16:22:59 | [diff] [blame] | 35 | (new ExternallyConnectableHandler)->Register(); |
[email protected] | 53c7e6f | 2014-05-20 21:14:08 | [diff] [blame] | 36 | (new FileHandlersParser)->Register(); |
[email protected] | a9a6615 | 2014-06-20 21:24:33 | [diff] [blame] | 37 | (new IconsHandler)->Register(); |
[email protected] | 08b7139 | 2014-01-07 18:52:09 | [diff] [blame] | 38 | (new IncognitoHandler)->Register(); |
39 | (new KioskModeHandler)->Register(); | ||||
mgiuca | 2be0d052 | 2014-08-26 06:42:10 | [diff] [blame] | 40 | (new LauncherPageHandler)->Register(); |
[email protected] | b90f343 | 2014-08-07 20:40:07 | [diff] [blame] | 41 | #if !defined(DISABLE_NACL) |
42 | (new NaClModulesHandler)->Register(); | ||||
43 | #endif | ||||
jamescook | 71187e34 | 2014-10-20 23:47:15 | [diff] [blame^] | 44 | (new OAuth2ManifestHandler)->Register(); |
[email protected] | 08b7139 | 2014-01-07 18:52:09 | [diff] [blame] | 45 | (new OfflineEnabledHandler)->Register(); |
46 | (new SandboxedPageHandler)->Register(); | ||||
47 | (new SharedModuleHandler)->Register(); | ||||
jamescook | 4860e1a3 | 2014-09-20 01:49:02 | [diff] [blame] | 48 | (new SocketsManifestHandler)->Register(); |
[email protected] | 474b1f7 | 2014-01-16 02:38:07 | [diff] [blame] | 49 | (new WebAccessibleResourcesHandler)->Register(); |
50 | (new WebviewHandler)->Register(); | ||||
jamescook | a02b3e5 | 2014-09-18 16:22:59 | [diff] [blame] | 51 | #endif // defined(ENABLE_EXTENSIONS) |
[email protected] | 08b7139 | 2014-01-07 18:52:09 | [diff] [blame] | 52 | } |
53 | |||||
54 | } // namespace extensions |