[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 | |
| 7 | #include "extensions/common/manifest_handler.h" |
| 8 | #include "extensions/common/manifest_handlers/background_info.h" |
| 9 | #include "extensions/common/manifest_handlers/csp_info.h" |
[email protected] | 53c7e6f | 2014-05-20 21:14:08 | [diff] [blame] | 10 | #include "extensions/common/manifest_handlers/file_handler_info.h" |
[email protected] | a9a6615 | 2014-06-20 21:24:33 | [diff] [blame^] | 11 | #include "extensions/common/manifest_handlers/icons_handler.h" |
[email protected] | 08b7139 | 2014-01-07 18:52:09 | [diff] [blame] | 12 | #include "extensions/common/manifest_handlers/incognito_info.h" |
| 13 | #include "extensions/common/manifest_handlers/kiosk_mode_info.h" |
| 14 | #include "extensions/common/manifest_handlers/offline_enabled_info.h" |
| 15 | #include "extensions/common/manifest_handlers/sandboxed_page_info.h" |
| 16 | #include "extensions/common/manifest_handlers/shared_module_info.h" |
[email protected] | 474b1f7 | 2014-01-16 02:38:07 | [diff] [blame] | 17 | #include "extensions/common/manifest_handlers/web_accessible_resources_info.h" |
| 18 | #include "extensions/common/manifest_handlers/webview_info.h" |
[email protected] | 08b7139 | 2014-01-07 18:52:09 | [diff] [blame] | 19 | |
| 20 | namespace extensions { |
| 21 | |
| 22 | void RegisterCommonManifestHandlers() { |
| 23 | DCHECK(!ManifestHandler::IsRegistrationFinalized()); |
| 24 | (new BackgroundManifestHandler)->Register(); |
| 25 | (new CSPHandler(false))->Register(); |
| 26 | (new CSPHandler(true))->Register(); |
[email protected] | 53c7e6f | 2014-05-20 21:14:08 | [diff] [blame] | 27 | (new FileHandlersParser)->Register(); |
[email protected] | a9a6615 | 2014-06-20 21:24:33 | [diff] [blame^] | 28 | (new IconsHandler)->Register(); |
[email protected] | 08b7139 | 2014-01-07 18:52:09 | [diff] [blame] | 29 | (new IncognitoHandler)->Register(); |
| 30 | (new KioskModeHandler)->Register(); |
| 31 | (new OfflineEnabledHandler)->Register(); |
| 32 | (new SandboxedPageHandler)->Register(); |
| 33 | (new SharedModuleHandler)->Register(); |
[email protected] | 474b1f7 | 2014-01-16 02:38:07 | [diff] [blame] | 34 | (new WebAccessibleResourcesHandler)->Register(); |
| 35 | (new WebviewHandler)->Register(); |
[email protected] | 08b7139 | 2014-01-07 18:52:09 | [diff] [blame] | 36 | } |
| 37 | |
| 38 | } // namespace extensions |