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 // Enables extension APIs that are in development. 20 const char kEnableExperimentalExtensionApis[] = 21 "enable-experimental-extension-apis"; 22 23 // Enables extensions to hide bookmarks UI elements. 24 const char kEnableOverrideBookmarksUI[] = "enable-override-bookmarks-ui"; 25 26 // Allows the ErrorConsole to collect runtime and manifest errors, and display 27 // them in the chrome:extensions page. 28 const char kErrorConsole[] = "error-console"; 29 30 // The time in milliseconds that an extension event page can be idle before it 31 // is shut down. 32 const char kEventPageIdleTime[] = "event-page-idle-time"; 33 34 // The time in milliseconds that an extension event page has between being 35 // notified of its impending unload and that unload happening. 36 const char kEventPageSuspendingTime[] = "event-page-unloading-time"; 37 38 // Values for the kExtensionContentVerification flag. See ContentVerifier::Mode 39 // for more explanation. 40 const char kExtensionContentVerificationBootstrap[] = "bootstrap"; 41 const char kExtensionContentVerificationEnforceStrict[] = "enforce_strict"; 42 const char kExtensionContentVerificationEnforce[] = "enforce"; 43 44 // Name of the command line flag to force content verification to be on in one 45 // of various modes. 46 const char kExtensionContentVerification[] = "extension-content-verification"; 47 48 // Marks a renderer as extension process. 49 const char kExtensionProcess[] = "extension-process"; 50 51 // Enables extensions running scripts on chrome:// URLs. 52 // Extensions still need to explicitly request access to chrome:// URLs in the 53 // manifest. 54 const char kExtensionsOnChromeURLs[] = "extensions-on-chrome-urls"; 55 56 // Whether to force developer mode extensions highlighting. 57 const char kForceDevModeHighlighting[] = "force-dev-mode-highlighting"; 58 59 // Enables setting global commands through the Extensions Commands API. 60 const char kGlobalCommands[] = "global-commands"; 61 62 // Notify the user and require consent for extensions running scripts. 63 // Appending --scripts-require-action=1 has the same effect as 64 // --enable-scripts-require-action (see below). 65 const char kScriptsRequireAction[] = "scripts-require-action"; 66 // FeatureSwitch and about_flags don't play nice. Feature switch expects either 67 // --enable-<feature> or --<feature>=1, but about_flags expects the command 68 // line argument to enable it (or a selection). Hack this in, so enabling it 69 // in about_flags enables the feature. Appending this flag has the same effect 70 // as --scripts-require-action=1. 71 const char kEnableScriptsRequireAction[] = "enable-scripts-require-action"; 72 73 // Makes component extensions appear in chrome://settings/extensions. 74 const char kShowComponentExtensionOptions[] = 75 "show-component-extension-options"; 76 77 // Adds the given extension ID to all the permission whitelists. 78 const char kWhitelistedExtensionID[] = "whitelisted-extension-id"; 79 80 } // namespace switches 81 82 } // namespace extensions 83