Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / extensions / common / common_manifest_handlers.cc
blob95293215947b248282790b67c3595f6dc9db91c9
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/api/bluetooth/bluetooth_manifest_handler.h"
8 #include "extensions/common/api/declarative/declarative_manifest_handler.h"
9 #include "extensions/common/api/printer_provider/usb_printer_manifest_handler.h"
10 #include "extensions/common/api/sockets/sockets_manifest_handler.h"
11 #include "extensions/common/manifest_handler.h"
12 #include "extensions/common/manifest_handlers/background_info.h"
13 #include "extensions/common/manifest_handlers/content_capabilities_handler.h"
14 #include "extensions/common/manifest_handlers/csp_info.h"
15 #include "extensions/common/manifest_handlers/default_locale_handler.h"
16 #include "extensions/common/manifest_handlers/externally_connectable.h"
17 #include "extensions/common/manifest_handlers/file_handler_info.h"
18 #include "extensions/common/manifest_handlers/icons_handler.h"
19 #include "extensions/common/manifest_handlers/incognito_info.h"
20 #include "extensions/common/manifest_handlers/kiosk_mode_info.h"
21 #include "extensions/common/manifest_handlers/launcher_page_info.h"
22 #include "extensions/common/manifest_handlers/mime_types_handler.h"
23 #include "extensions/common/manifest_handlers/nacl_modules_handler.h"
24 #include "extensions/common/manifest_handlers/oauth2_manifest_handler.h"
25 #include "extensions/common/manifest_handlers/offline_enabled_info.h"
26 #include "extensions/common/manifest_handlers/sandboxed_page_info.h"
27 #include "extensions/common/manifest_handlers/shared_module_info.h"
28 #include "extensions/common/manifest_handlers/web_accessible_resources_info.h"
29 #include "extensions/common/manifest_handlers/webview_info.h"
31 namespace extensions {
33 void RegisterCommonManifestHandlers() {
34 DCHECK(!ManifestHandler::IsRegistrationFinalized());
35 (new BackgroundManifestHandler)->Register();
36 (new BluetoothManifestHandler)->Register();
37 (new ContentCapabilitiesHandler)->Register();
38 (new CSPHandler(false))->Register();
39 (new CSPHandler(true))->Register();
40 (new DeclarativeManifestHandler)->Register();
41 (new DefaultLocaleHandler)->Register();
42 (new ExternallyConnectableHandler)->Register();
43 (new FileHandlersParser)->Register();
44 (new IconsHandler)->Register();
45 (new IncognitoHandler)->Register();
46 (new KioskModeHandler)->Register();
47 (new LauncherPageHandler)->Register();
48 (new MimeTypesHandlerParser)->Register();
49 #if !defined(DISABLE_NACL)
50 (new NaClModulesHandler)->Register();
51 #endif
52 (new OAuth2ManifestHandler)->Register();
53 (new OfflineEnabledHandler)->Register();
54 (new SandboxedPageHandler)->Register();
55 (new SharedModuleHandler)->Register();
56 (new SocketsManifestHandler)->Register();
57 (new UsbPrinterManifestHandler)->Register();
58 (new WebAccessibleResourcesHandler)->Register();
59 (new WebviewHandler)->Register();
62 } // namespace extensions