blob: 94c24cedaff9782a4cfbc5f9f59067135c7ef362 [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"
11#include "extensions/common/manifest_handlers/csp_info.h"
jamescooka02b3e52014-09-18 16:22:5912#include "extensions/common/manifest_handlers/externally_connectable.h"
[email protected]53c7e6f2014-05-20 21:14:0813#include "extensions/common/manifest_handlers/file_handler_info.h"
[email protected]a9a66152014-06-20 21:24:3314#include "extensions/common/manifest_handlers/icons_handler.h"
[email protected]08b71392014-01-07 18:52:0915#include "extensions/common/manifest_handlers/incognito_info.h"
16#include "extensions/common/manifest_handlers/kiosk_mode_info.h"
mgiuca2be0d0522014-08-26 06:42:1017#include "extensions/common/manifest_handlers/launcher_page_info.h"
[email protected]b90f3432014-08-07 20:40:0718#include "extensions/common/manifest_handlers/nacl_modules_handler.h"
jamescook71187e342014-10-20 23:47:1519#include "extensions/common/manifest_handlers/oauth2_manifest_handler.h"
[email protected]08b71392014-01-07 18:52:0920#include "extensions/common/manifest_handlers/offline_enabled_info.h"
21#include "extensions/common/manifest_handlers/sandboxed_page_info.h"
22#include "extensions/common/manifest_handlers/shared_module_info.h"
[email protected]474b1f72014-01-16 02:38:0723#include "extensions/common/manifest_handlers/web_accessible_resources_info.h"
24#include "extensions/common/manifest_handlers/webview_info.h"
[email protected]08b71392014-01-07 18:52:0925
26namespace extensions {
27
28void RegisterCommonManifestHandlers() {
29 DCHECK(!ManifestHandler::IsRegistrationFinalized());
jamescooka02b3e52014-09-18 16:22:5930#if defined(ENABLE_EXTENSIONS)
[email protected]08b71392014-01-07 18:52:0931 (new BackgroundManifestHandler)->Register();
jamescook05f42022014-10-06 18:24:3332 (new BluetoothManifestHandler)->Register();
[email protected]08b71392014-01-07 18:52:0933 (new CSPHandler(false))->Register();
34 (new CSPHandler(true))->Register();
jamescooka02b3e52014-09-18 16:22:5935 (new ExternallyConnectableHandler)->Register();
[email protected]53c7e6f2014-05-20 21:14:0836 (new FileHandlersParser)->Register();
[email protected]a9a66152014-06-20 21:24:3337 (new IconsHandler)->Register();
[email protected]08b71392014-01-07 18:52:0938 (new IncognitoHandler)->Register();
39 (new KioskModeHandler)->Register();
mgiuca2be0d0522014-08-26 06:42:1040 (new LauncherPageHandler)->Register();
[email protected]b90f3432014-08-07 20:40:0741#if !defined(DISABLE_NACL)
42 (new NaClModulesHandler)->Register();
43#endif
jamescook71187e342014-10-20 23:47:1544 (new OAuth2ManifestHandler)->Register();
[email protected]08b71392014-01-07 18:52:0945 (new OfflineEnabledHandler)->Register();
46 (new SandboxedPageHandler)->Register();
47 (new SharedModuleHandler)->Register();
jamescook4860e1a32014-09-20 01:49:0248 (new SocketsManifestHandler)->Register();
[email protected]474b1f72014-01-16 02:38:0749 (new WebAccessibleResourcesHandler)->Register();
50 (new WebviewHandler)->Register();
jamescooka02b3e52014-09-18 16:22:5951#endif // defined(ENABLE_EXTENSIONS)
[email protected]08b71392014-01-07 18:52:0952}
53
54} // namespace extensions