Updating trunk VERSION from 2139.0 to 2140.0
[chromium-blink-merge.git] / extensions / common / common_manifest_handlers.cc
blob1ce16373c5ee67246a00eaab203906082faa2e68
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.
5 #include "extensions/common/common_manifest_handlers.h"
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"
10 #include "extensions/common/manifest_handlers/file_handler_info.h"
11 #include "extensions/common/manifest_handlers/icons_handler.h"
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/launcher_page_info.h"
15 #include "extensions/common/manifest_handlers/nacl_modules_handler.h"
16 #include "extensions/common/manifest_handlers/offline_enabled_info.h"
17 #include "extensions/common/manifest_handlers/sandboxed_page_info.h"
18 #include "extensions/common/manifest_handlers/shared_module_info.h"
19 #include "extensions/common/manifest_handlers/web_accessible_resources_info.h"
20 #include "extensions/common/manifest_handlers/webview_info.h"
22 namespace extensions {
24 void RegisterCommonManifestHandlers() {
25 DCHECK(!ManifestHandler::IsRegistrationFinalized());
26 (new BackgroundManifestHandler)->Register();
27 (new CSPHandler(false))->Register();
28 (new CSPHandler(true))->Register();
29 (new FileHandlersParser)->Register();
30 (new IconsHandler)->Register();
31 (new IncognitoHandler)->Register();
32 (new KioskModeHandler)->Register();
33 (new LauncherPageHandler)->Register();
34 #if !defined(DISABLE_NACL)
35 (new NaClModulesHandler)->Register();
36 #endif
37 (new OfflineEnabledHandler)->Register();
38 (new SandboxedPageHandler)->Register();
39 (new SharedModuleHandler)->Register();
40 (new WebAccessibleResourcesHandler)->Register();
41 (new WebviewHandler)->Register();
44 } // namespace extensions