blob: 3720c742e3ea8e789acb2c3c126bad34a43b2fc7 [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"
jamescook4860e1a32014-09-20 01:49:028#include "extensions/common/api/sockets/sockets_manifest_handler.h"
[email protected]08b71392014-01-07 18:52:099#include "extensions/common/manifest_handler.h"
10#include "extensions/common/manifest_handlers/background_info.h"
rockota980ec62014-12-09 03:09:1811#include "extensions/common/manifest_handlers/content_capabilities_handler.h"
[email protected]08b71392014-01-07 18:52:0912#include "extensions/common/manifest_handlers/csp_info.h"
rockote5fd3d92014-11-13 00:21:2213#include "extensions/common/manifest_handlers/default_locale_handler.h"
jamescooka02b3e52014-09-18 16:22:5914#include "extensions/common/manifest_handlers/externally_connectable.h"
[email protected]53c7e6f2014-05-20 21:14:0815#include "extensions/common/manifest_handlers/file_handler_info.h"
[email protected]a9a66152014-06-20 21:24:3316#include "extensions/common/manifest_handlers/icons_handler.h"
[email protected]08b71392014-01-07 18:52:0917#include "extensions/common/manifest_handlers/incognito_info.h"
18#include "extensions/common/manifest_handlers/kiosk_mode_info.h"
mgiuca2be0d0522014-08-26 06:42:1019#include "extensions/common/manifest_handlers/launcher_page_info.h"
[email protected]b90f3432014-08-07 20:40:0720#include "extensions/common/manifest_handlers/nacl_modules_handler.h"
jamescook71187e342014-10-20 23:47:1521#include "extensions/common/manifest_handlers/oauth2_manifest_handler.h"
[email protected]08b71392014-01-07 18:52:0922#include "extensions/common/manifest_handlers/offline_enabled_info.h"
23#include "extensions/common/manifest_handlers/sandboxed_page_info.h"
24#include "extensions/common/manifest_handlers/shared_module_info.h"
[email protected]474b1f72014-01-16 02:38:0725#include "extensions/common/manifest_handlers/web_accessible_resources_info.h"
26#include "extensions/common/manifest_handlers/webview_info.h"
[email protected]08b71392014-01-07 18:52:0927
28namespace extensions {
29
30void RegisterCommonManifestHandlers() {
31 DCHECK(!ManifestHandler::IsRegistrationFinalized());
32 (new BackgroundManifestHandler)->Register();
jamescook05f42022014-10-06 18:24:3333 (new BluetoothManifestHandler)->Register();
rockota980ec62014-12-09 03:09:1834 (new ContentCapabilitiesHandler)->Register();
[email protected]08b71392014-01-07 18:52:0935 (new CSPHandler(false))->Register();
36 (new CSPHandler(true))->Register();
rockote5fd3d92014-11-13 00:21:2237 (new DefaultLocaleHandler)->Register();
jamescooka02b3e52014-09-18 16:22:5938 (new ExternallyConnectableHandler)->Register();
[email protected]53c7e6f2014-05-20 21:14:0839 (new FileHandlersParser)->Register();
[email protected]a9a66152014-06-20 21:24:3340 (new IconsHandler)->Register();
[email protected]08b71392014-01-07 18:52:0941 (new IncognitoHandler)->Register();
42 (new KioskModeHandler)->Register();
mgiuca2be0d0522014-08-26 06:42:1043 (new LauncherPageHandler)->Register();
[email protected]b90f3432014-08-07 20:40:0744#if !defined(DISABLE_NACL)
45 (new NaClModulesHandler)->Register();
46#endif
jamescook71187e342014-10-20 23:47:1547 (new OAuth2ManifestHandler)->Register();
[email protected]08b71392014-01-07 18:52:0948 (new OfflineEnabledHandler)->Register();
49 (new SandboxedPageHandler)->Register();
50 (new SharedModuleHandler)->Register();
jamescook4860e1a32014-09-20 01:49:0251 (new SocketsManifestHandler)->Register();
[email protected]474b1f72014-01-16 02:38:0752 (new WebAccessibleResourcesHandler)->Register();
53 (new WebviewHandler)->Register();
[email protected]08b71392014-01-07 18:52:0954}
55
56} // namespace extensions