15d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// Copyright 2014 The Chromium Authors. All rights reserved. 25d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// Use of this source code is governed by a BSD-style license that can be 35d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// found in the LICENSE file. 45d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles) 55d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)#include "extensions/common/common_manifest_handlers.h" 65d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles) 71320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci#include "extensions/common/api/sockets/sockets_manifest_handler.h" 85d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)#include "extensions/common/manifest_handler.h" 95d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)#include "extensions/common/manifest_handlers/background_info.h" 105d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)#include "extensions/common/manifest_handlers/csp_info.h" 111320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci#include "extensions/common/manifest_handlers/externally_connectable.h" 12cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)#include "extensions/common/manifest_handlers/file_handler_info.h" 136d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)#include "extensions/common/manifest_handlers/icons_handler.h" 145d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)#include "extensions/common/manifest_handlers/incognito_info.h" 155d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)#include "extensions/common/manifest_handlers/kiosk_mode_info.h" 161320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci#include "extensions/common/manifest_handlers/launcher_page_info.h" 176e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles)#include "extensions/common/manifest_handlers/nacl_modules_handler.h" 185d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)#include "extensions/common/manifest_handlers/offline_enabled_info.h" 195d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)#include "extensions/common/manifest_handlers/sandboxed_page_info.h" 205d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)#include "extensions/common/manifest_handlers/shared_module_info.h" 215d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)#include "extensions/common/manifest_handlers/web_accessible_resources_info.h" 225d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)#include "extensions/common/manifest_handlers/webview_info.h" 235d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles) 245d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)namespace extensions { 255d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles) 265d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)void RegisterCommonManifestHandlers() { 275d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles) DCHECK(!ManifestHandler::IsRegistrationFinalized()); 281320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci#if defined(ENABLE_EXTENSIONS) 295d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles) (new BackgroundManifestHandler)->Register(); 305d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles) (new CSPHandler(false))->Register(); 315d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles) (new CSPHandler(true))->Register(); 321320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci (new ExternallyConnectableHandler)->Register(); 33cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles) (new FileHandlersParser)->Register(); 346d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles) (new IconsHandler)->Register(); 355d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles) (new IncognitoHandler)->Register(); 365d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles) (new KioskModeHandler)->Register(); 371320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci (new LauncherPageHandler)->Register(); 386e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles)#if !defined(DISABLE_NACL) 396e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles) (new NaClModulesHandler)->Register(); 406e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles)#endif 415d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles) (new OfflineEnabledHandler)->Register(); 425d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles) (new SandboxedPageHandler)->Register(); 435d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles) (new SharedModuleHandler)->Register(); 441320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci (new SocketsManifestHandler)->Register(); 455d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles) (new WebAccessibleResourcesHandler)->Register(); 465d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles) (new WebviewHandler)->Register(); 471320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci#endif // defined(ENABLE_EXTENSIONS) 485d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)} 495d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles) 505d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)} // namespace extensions 51