| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "extensions/common/switches.h" | 5 #include "extensions/common/switches.h" |
| 6 | 6 |
| 7 namespace extensions { | 7 namespace extensions { |
| 8 | 8 |
| 9 namespace switches { | 9 namespace switches { |
| 10 | 10 |
| 11 // Allows non-https URL for background_page for hosted apps. | 11 // Allows non-https URL for background_page for hosted apps. |
| 12 const char kAllowHTTPBackgroundPage[] = "allow-http-background-page"; | 12 const char kAllowHTTPBackgroundPage[] = "allow-http-background-page"; |
| 13 | 13 |
| 14 // Allows the browser to load extensions that lack a modern manifest when that | 14 // Allows the browser to load extensions that lack a modern manifest when that |
| 15 // would otherwise be forbidden. | 15 // would otherwise be forbidden. |
| 16 const char kAllowLegacyExtensionManifests[] = | 16 const char kAllowLegacyExtensionManifests[] = |
| 17 "allow-legacy-extension-manifests"; | 17 "allow-legacy-extension-manifests"; |
| 18 | 18 |
| 19 // Allows injecting extensions and user scripts on the extensions gallery | 19 // Allows injecting extensions and user scripts on the extensions gallery |
| 20 // site. Normally prevented for security reasons, but can be useful for | 20 // site. Normally prevented for security reasons, but can be useful for |
| 21 // automation testing of the gallery. | 21 // automation testing of the gallery. |
| 22 const char kAllowScriptingGallery[] = "allow-scripting-gallery"; | 22 const char kAllowScriptingGallery[] = "allow-scripting-gallery"; |
| 23 | 23 |
| 24 // Enables extensions to be easily installed from sites other than the web | 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 | 25 // store. Without this flag, they can still be installed, but must be manually |
| 26 // dragged onto chrome://extensions/. | 26 // dragged onto chrome://extensions/. |
| 27 const char kEasyOffStoreExtensionInstall[] = "easy-off-store-extension-install"; | 27 const char kEasyOffStoreExtensionInstall[] = "easy-off-store-extension-install"; |
| 28 | 28 |
| 29 // Enables extension APIs that are in development. | 29 // Enables extension APIs that are in development. |
| 30 const char kEnableExperimentalExtensionApis[] = | 30 const char kEnableExperimentalExtensionApis[] = |
| 31 "enable-experimental-extension-apis"; | 31 "enable-experimental-extension-apis"; |
| 32 | 32 |
| 33 // Enables extensions to hide bookmarks UI elements. | 33 // Enables extensions to hide bookmarks UI elements. |
| 34 const char kEnableOverrideBookmarksUI[] = "enable-override-bookmarks-ui"; | 34 const char kEnableOverrideBookmarksUI[] = "enable-override-bookmarks-ui"; |
| 35 | 35 |
| 36 // Allows the ErrorConsole to collect runtime and manifest errors, and display | 36 // Allows the ErrorConsole to collect runtime and manifest errors, and display |
| 37 // them in the chrome:extensions page. | 37 // them in the chrome:extensions page. |
| 38 const char kErrorConsole[] = "error-console"; | 38 const char kErrorConsole[] = "error-console"; |
| 39 | 39 |
| 40 // The time in milliseconds that an extension event page can be idle before it | 40 // The time in milliseconds that an extension event page can be idle before it |
| 41 // is shut down. | 41 // is shut down. |
| 42 const char kEventPageIdleTime[] = "event-page-idle-time"; | 42 const char kEventPageIdleTime[] = "event-page-idle-time"; |
| 43 | 43 |
| 44 // The time in milliseconds that an extension event page has between being | 44 // The time in milliseconds that an extension event page has between being |
| 45 // notified of its impending unload and that unload happening. | 45 // notified of its impending unload and that unload happening. |
| 46 const char kEventPageSuspendingTime[] = "event-page-unloading-time"; | 46 const char kEventPageSuspendingTime[] = "event-page-unloading-time"; |
| 47 |
| 48 // Marks a renderer as extension process. |
| 49 const char kExtensionProcess[] = "extension-process"; |
| 47 | 50 |
| 48 // Enables extensions running scripts on chrome:// URLs. | 51 // Enables extensions running scripts on chrome:// URLs. |
| 49 // Extensions still need to explicitly request access to chrome:// URLs in the | 52 // Extensions still need to explicitly request access to chrome:// URLs in the |
| 50 // manifest. | 53 // manifest. |
| 51 const char kExtensionsOnChromeURLs[] = "extensions-on-chrome-urls"; | 54 const char kExtensionsOnChromeURLs[] = "extensions-on-chrome-urls"; |
| 52 | 55 |
| 53 // Whether to force developer mode extensions highlighting. | 56 // Whether to force developer mode extensions highlighting. |
| 54 const char kForceDevModeHighlighting[] = "force-dev-mode-highlighting"; | 57 const char kForceDevModeHighlighting[] = "force-dev-mode-highlighting"; |
| 55 | 58 |
| 56 // Enables setting global commands through the Extensions Commands API. | 59 // Enables setting global commands through the Extensions Commands API. |
| (...skipping 10 matching lines...) Expand all Loading... |
| 67 // many extensions are running scripts on a page. | 70 // many extensions are running scripts on a page. |
| 68 const char kScriptBubble[] = "script-bubble"; | 71 const char kScriptBubble[] = "script-bubble"; |
| 69 | 72 |
| 70 // Makes component extensions appear in chrome://settings/extensions. | 73 // Makes component extensions appear in chrome://settings/extensions. |
| 71 const char kShowComponentExtensionOptions[] = | 74 const char kShowComponentExtensionOptions[] = |
| 72 "show-component-extension-options"; | 75 "show-component-extension-options"; |
| 73 | 76 |
| 74 } // namespace switches | 77 } // namespace switches |
| 75 | 78 |
| 76 } // namespace extensions | 79 } // namespace extensions |
| OLD | NEW |