blob: 3331a0d50dbfbb18b6837c708d13185ab36924d0 [file] [log] [blame]
[email protected]08b71392014-01-07 18:52:091// 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
jamescook05f42022014-10-06 18:24:337#include "extensions/common/api/bluetooth/bluetooth_manifest_handler.h"
reillyg1f30d4f2015-05-07 21:48:168#include "extensions/common/api/printer_provider/usb_printer_manifest_handler.h"
jamescook4860e1a32014-09-20 01:49:029#include "extensions/common/api/sockets/sockets_manifest_handler.h"
[email protected]08b71392014-01-07 18:52:0910#include "extensions/common/manifest_handler.h"
11#include "extensions/common/manifest_handlers/background_info.h"
rockota980ec62014-12-09 03:09:1812#include "extensions/common/manifest_handlers/content_capabilities_handler.h"
[email protected]08b71392014-01-07 18:52:0913#include "extensions/common/manifest_handlers/csp_info.h"
rockote5fd3d92014-11-13 00:21:2214#include "extensions/common/manifest_handlers/default_locale_handler.h"
jamescooka02b3e52014-09-18 16:22:5915#include "extensions/common/manifest_handlers/externally_connectable.h"
[email protected]53c7e6f2014-05-20 21:14:0816#include "extensions/common/manifest_handlers/file_handler_info.h"
[email protected]a9a66152014-06-20 21:24:3317#include "extensions/common/manifest_handlers/icons_handler.h"
[email protected]08b71392014-01-07 18:52:0918#include "extensions/common/manifest_handlers/incognito_info.h"
19#include "extensions/common/manifest_handlers/kiosk_mode_info.h"
mgiuca2be0d0522014-08-26 06:42:1020#include "extensions/common/manifest_handlers/launcher_page_info.h"
sammcc5eb526d2015-01-23 01:21:5421#include "extensions/common/manifest_handlers/mime_types_handler.h"
[email protected]b90f3432014-08-07 20:40:0722#include "extensions/common/manifest_handlers/nacl_modules_handler.h"
jamescook71187e342014-10-20 23:47:1523#include "extensions/common/manifest_handlers/oauth2_manifest_handler.h"
[email protected]08b71392014-01-07 18:52:0924#include "extensions/common/manifest_handlers/offline_enabled_info.h"
25#include "extensions/common/manifest_handlers/sandboxed_page_info.h"
26#include "extensions/common/manifest_handlers/shared_module_info.h"
[email protected]474b1f72014-01-16 02:38:0727#include "extensions/common/manifest_handlers/web_accessible_resources_info.h"
28#include "extensions/common/manifest_handlers/webview_info.h"
[email protected]08b71392014-01-07 18:52:0929
30namespace extensions {
31
32void RegisterCommonManifestHandlers() {
33 DCHECK(!ManifestHandler::IsRegistrationFinalized());
34 (new BackgroundManifestHandler)->Register();
jamescook05f42022014-10-06 18:24:3335 (new BluetoothManifestHandler)->Register();
rockota980ec62014-12-09 03:09:1836 (new ContentCapabilitiesHandler)->Register();
[email protected]08b71392014-01-07 18:52:0937 (new CSPHandler(false))->Register();
38 (new CSPHandler(true))->Register();
rockote5fd3d92014-11-13 00:21:2239 (new DefaultLocaleHandler)->Register();
jamescooka02b3e52014-09-18 16:22:5940 (new ExternallyConnectableHandler)->Register();
[email protected]53c7e6f2014-05-20 21:14:0841 (new FileHandlersParser)->Register();
[email protected]a9a66152014-06-20 21:24:3342 (new IconsHandler)->Register();
[email protected]08b71392014-01-07 18:52:0943 (new IncognitoHandler)->Register();
44 (new KioskModeHandler)->Register();
mgiuca2be0d0522014-08-26 06:42:1045 (new LauncherPageHandler)->Register();
sammcc5eb526d2015-01-23 01:21:5446 (new MimeTypesHandlerParser)->Register();
[email protected]b90f3432014-08-07 20:40:0747#if !defined(DISABLE_NACL)
48 (new NaClModulesHandler)->Register();
49#endif
jamescook71187e342014-10-20 23:47:1550 (new OAuth2ManifestHandler)->Register();
[email protected]08b71392014-01-07 18:52:0951 (new OfflineEnabledHandler)->Register();
52 (new SandboxedPageHandler)->Register();
53 (new SharedModuleHandler)->Register();
jamescook4860e1a32014-09-20 01:49:0254 (new SocketsManifestHandler)->Register();
reillyg1f30d4f2015-05-07 21:48:1655 (new UsbPrinterManifestHandler)->Register();
[email protected]474b1f72014-01-16 02:38:0756 (new WebAccessibleResourcesHandler)->Register();
57 (new WebviewHandler)->Register();
[email protected]08b71392014-01-07 18:52:0958}
59
60} // namespace extensions