Upstream version 7.36.149.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 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 // Makes component extensions appear in chrome://settings/extensions.
63 const char kShowComponentExtensionOptions[] =
64     "show-component-extension-options";
65
66 // Adds the given extension ID to all the permission whitelists.
67 const char kWhitelistedExtensionID[] = "whitelisted-extension-id";
68
69 }  // namespace switches
70
71 }  // namespace extensions