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.
5 #include "extensions/common/switches.h"
11 // Allows non-https URL for background_page for hosted apps.
12 const char kAllowHTTPBackgroundPage
[] = "allow-http-background-page";
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";
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";
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";
29 // Enables extension APIs that are in development.
30 const char kEnableExperimentalExtensionApis
[] =
31 "enable-experimental-extension-apis";
33 // Enables extensions to hide bookmarks UI elements.
34 const char kEnableOverrideBookmarksUI
[] = "enable-override-bookmarks-ui";
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";
40 // The time in milliseconds that an extension event page can be idle before it
42 const char kEventPageIdleTime
[] = "event-page-idle-time";
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";
48 // Marks a renderer as extension process.
49 const char kExtensionProcess
[] = "extension-process";
51 // Enables extensions running scripts on chrome:// URLs.
52 // Extensions still need to explicitly request access to chrome:// URLs in the
54 const char kExtensionsOnChromeURLs
[] = "extensions-on-chrome-urls";
56 // Whether to force developer mode extensions highlighting.
57 const char kForceDevModeHighlighting
[] = "force-dev-mode-highlighting";
59 // Enables setting global commands through the Extensions Commands API.
60 const char kGlobalCommands
[] = "global-commands";
62 // Should we prompt the user before allowing external extensions to install?
64 const char kPromptForExternalExtensions
[] = "prompt-for-external-extensions";
66 // Makes component extensions appear in chrome://settings/extensions.
67 const char kShowComponentExtensionOptions
[] =
68 "show-component-extension-options";
70 } // namespace switches
72 } // namespace extensions