blob: 95293215947b248282790b67c3595f6dc9db91c9 [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"
danduonga79e151d2015-06-12 17:40:448#include "extensions/common/api/declarative/declarative_manifest_handler.h"
reillyg1f30d4f2015-05-07 21:48:169#include "extensions/common/api/printer_provider/usb_printer_manifest_handler.h"
jamescook4860e1a32014-09-20 01:49:0210#include "extensions/common/api/sockets/sockets_manifest_handler.h"
[email protected]08b71392014-01-07 18:52:0911#include "extensions/common/manifest_handler.h"
12#include "extensions/common/manifest_handlers/background_info.h"
rockota980ec62014-12-09 03:09:1813#include "extensions/common/manifest_handlers/content_capabilities_handler.h"
[email protected]08b71392014-01-07 18:52:0914#include "extensions/common/manifest_handlers/csp_info.h"
rockote5fd3d92014-11-13 00:21:2215#include "extensions/common/manifest_handlers/default_locale_handler.h"
jamescooka02b3e52014-09-18 16:22:5916#include "extensions/common/manifest_handlers/externally_connectable.h"
[email protected]53c7e6f2014-05-20 21:14:0817#include "extensions/common/manifest_handlers/file_handler_info.h"
[email protected]a9a66152014-06-20 21:24:3318#include "extensions/common/manifest_handlers/icons_handler.h"
[email protected]08b71392014-01-07 18:52:0919#include "extensions/common/manifest_handlers/incognito_info.h"
20#include "extensions/common/manifest_handlers/kiosk_mode_info.h"
mgiuca2be0d0522014-08-26 06:42:1021#include "extensions/common/manifest_handlers/launcher_page_info.h"
sammcc5eb526d2015-01-23 01:21:5422#include "extensions/common/manifest_handlers/mime_types_handler.h"
[email protected]b90f3432014-08-07 20:40:0723#include "extensions/common/manifest_handlers/nacl_modules_handler.h"
jamescook71187e342014-10-20 23:47:1524#include "extensions/common/manifest_handlers/oauth2_manifest_handler.h"
[email protected]08b71392014-01-07 18:52:0925#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"
[email protected]474b1f72014-01-16 02:38:0728#include "extensions/common/manifest_handlers/web_accessible_resources_info.h"
29#include "extensions/common/manifest_handlers/webview_info.h"
[email protected]08b71392014-01-07 18:52:0930
31namespace extensions {
32
33void RegisterCommonManifestHandlers() {
34 DCHECK(!ManifestHandler::IsRegistrationFinalized());
35 (new BackgroundManifestHandler)->Register();
jamescook05f42022014-10-06 18:24:3336 (new BluetoothManifestHandler)->Register();
rockota980ec62014-12-09 03:09:1837 (new ContentCapabilitiesHandler)->Register();
[email protected]08b71392014-01-07 18:52:0938 (new CSPHandler(false))->Register();
39 (new CSPHandler(true))->Register();
danduonga79e151d2015-06-12 17:40:4440 (new DeclarativeManifestHandler)->Register();
rockote5fd3d92014-11-13 00:21:2241 (new DefaultLocaleHandler)->Register();
jamescooka02b3e52014-09-18 16:22:5942 (new ExternallyConnectableHandler)->Register();
[email protected]53c7e6f2014-05-20 21:14:0843 (new FileHandlersParser)->Register();
[email protected]a9a66152014-06-20 21:24:3344 (new IconsHandler)->Register();
[email protected]08b71392014-01-07 18:52:0945 (new IncognitoHandler)->Register();
46 (new KioskModeHandler)->Register();
mgiuca2be0d0522014-08-26 06:42:1047 (new LauncherPageHandler)->Register();
sammcc5eb526d2015-01-23 01:21:5448 (new MimeTypesHandlerParser)->Register();
[email protected]b90f3432014-08-07 20:40:0749#if !defined(DISABLE_NACL)
50 (new NaClModulesHandler)->Register();
51#endif
jamescook71187e342014-10-20 23:47:1552 (new OAuth2ManifestHandler)->Register();
[email protected]08b71392014-01-07 18:52:0953 (new OfflineEnabledHandler)->Register();
54 (new SandboxedPageHandler)->Register();
55 (new SharedModuleHandler)->Register();
jamescook4860e1a32014-09-20 01:49:0256 (new SocketsManifestHandler)->Register();
reillyg1f30d4f2015-05-07 21:48:1657 (new UsbPrinterManifestHandler)->Register();
[email protected]474b1f72014-01-16 02:38:0758 (new WebAccessibleResourcesHandler)->Register();
59 (new WebviewHandler)->Register();
[email protected]08b71392014-01-07 18:52:0960}
61
62} // namespace extensions