1 // Copyright 2013 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/switches.h" 6 7 namespace extensions { 8 9 namespace switches { 10 11 // Allows non-https URL for background_page for hosted apps. 12 const char kAllowHTTPBackgroundPage[] = "allow-http-background-page"; 13 14 // Allows the browser to load extensions that lack a modern manifest when that 15 // would otherwise be forbidden. 16 const char kAllowLegacyExtensionManifests[] = 17 "allow-legacy-extension-manifests"; 18 19 // Allows injecting extensions and user scripts on the extensions gallery 20 // site. Normally prevented for security reasons, but can be useful for 21 // automation testing of the gallery. 22 const char kAllowScriptingGallery[] = "allow-scripting-gallery"; 23 24 // Enables extensions to be easily installed from sites other than the web 25 // store. Without this flag, they can still be installed, but must be manually 26 // dragged onto chrome://extensions/. 27 const char kEasyOffStoreExtensionInstall[] = "easy-off-store-extension-install"; 28 29 // Enables extension APIs that are in development. 30 const char kEnableExperimentalExtensionApis[] = 31 "enable-experimental-extension-apis"; 32 33 // Enables extensions to hide bookmarks UI elements. 34 const char kEnableOverrideBookmarksUI[] = "enable-override-bookmarks-ui"; 35 36 // Allows the ErrorConsole to collect runtime and manifest errors, and display 37 // them in the chrome:extensions page. 38 const char kErrorConsole[] = "error-console"; 39 40 // The time in milliseconds that an extension event page can be idle before it 41 // is shut down. 42 const char kEventPageIdleTime[] = "event-page-idle-time"; 43 44 // The time in milliseconds that an extension event page has between being 45 // notified of its impending unload and that unload happening. 46 const char kEventPageSuspendingTime[] = "event-page-unloading-time"; 47 48 // Enables extensions running scripts on chrome:// URLs. 49 // Extensions still need to explicitly request access to chrome:// URLs in the 50 // manifest. 51 const char kExtensionsOnChromeURLs[] = "extensions-on-chrome-urls"; 52 53 // Whether to force developer mode extensions highlighting. 54 const char kForceDevModeHighlighting[] = "force-dev-mode-highlighting"; 55 56 // Enables setting global commands through the Extensions Commands API. 57 const char kGlobalCommands[] = "global-commands"; 58 59 // Should we prompt the user before allowing external extensions to install? 60 // Default is yes. 61 const char kPromptForExternalExtensions[] = "prompt-for-external-extensions"; 62 63 // Enables or disables extension scripts badges in the location bar. 64 const char kScriptBadges[] = "script-badges"; 65 66 // Enable or diable the "script bubble" icon in the URL bar that tells you how 67 // many extensions are running scripts on a page. 68 const char kScriptBubble[] = "script-bubble"; 69 70 // Makes component extensions appear in chrome://settings/extensions. 71 const char kShowComponentExtensionOptions[] = 72 "show-component-extension-options"; 73 74 } // namespace switches 75 76 } // namespace extensions 77