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