Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(403)

Side by Side Diff: extensions/common/switches.cc

Issue 376033002: Adding MimeHandlerView. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@pending-zork-patch2
Patch Set: add switch to control feature, remove a DCHECK from extension_message_filter Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
(...skipping 28 matching lines...) Expand all
39 39
40 // Enables extension APIs that are in development. 40 // Enables extension APIs that are in development.
41 const char kEnableExperimentalExtensionApis[] = 41 const char kEnableExperimentalExtensionApis[] =
42 "enable-experimental-extension-apis"; 42 "enable-experimental-extension-apis";
43 43
44 // Hack so that feature switch can work with about_flags. See 44 // Hack so that feature switch can work with about_flags. See
45 // kEnableScriptsRequireAction. 45 // kEnableScriptsRequireAction.
46 const char kEnableExtensionActionRedesign[] = 46 const char kEnableExtensionActionRedesign[] =
47 "enable-extension-action-redesign"; 47 "enable-extension-action-redesign";
48 48
49 // Hack so that feature switch can work with about_flags. See
50 // kEnableScriptsRequireAction.
51 const char kEnableMimeHandlerView[] = "enable-mime-handler-view";
52
49 // Enables extensions to hide bookmarks UI elements. 53 // Enables extensions to hide bookmarks UI elements.
50 const char kEnableOverrideBookmarksUI[] = "enable-override-bookmarks-ui"; 54 const char kEnableOverrideBookmarksUI[] = "enable-override-bookmarks-ui";
51 55
52 // Allows the ErrorConsole to collect runtime and manifest errors, and display 56 // Allows the ErrorConsole to collect runtime and manifest errors, and display
53 // them in the chrome:extensions page. 57 // them in the chrome:extensions page.
54 const char kErrorConsole[] = "error-console"; 58 const char kErrorConsole[] = "error-console";
55 59
56 // The time in milliseconds that an extension event page can be idle before it 60 // The time in milliseconds that an extension event page can be idle before it
57 // is shut down. 61 // is shut down.
58 const char kEventPageIdleTime[] = "event-page-idle-time"; 62 const char kEventPageIdleTime[] = "event-page-idle-time";
59 63
60 // The time in milliseconds that an extension event page has between being 64 // The time in milliseconds that an extension event page has between being
61 // notified of its impending unload and that unload happening. 65 // notified of its impending unload and that unload happening.
62 const char kEventPageSuspendingTime[] = "event-page-unloading-time"; 66 const char kEventPageSuspendingTime[] = "event-page-unloading-time";
63 67
64 // Whether to switch to extension action redesign mode (experimental). 68 // Whether to switch to extension action redesign mode (experimental).
65 const char kExtensionActionRedesign[] = "extension-action-redesign"; 69 const char kExtensionActionRedesign[] = "extension-action-redesign";
66 70
67 // Marks a renderer as extension process. 71 // Marks a renderer as extension process.
68 const char kExtensionProcess[] = "extension-process"; 72 const char kExtensionProcess[] = "extension-process";
69 73
70 // Enables extensions running scripts on chrome:// URLs. 74 // Enables extensions running scripts on chrome:// URLs.
71 // Extensions still need to explicitly request access to chrome:// URLs in the 75 // Extensions still need to explicitly request access to chrome:// URLs in the
72 // manifest. 76 // manifest.
73 const char kExtensionsOnChromeURLs[] = "extensions-on-chrome-urls"; 77 const char kExtensionsOnChromeURLs[] = "extensions-on-chrome-urls";
74 78
75 // Whether to force developer mode extensions highlighting. 79 // Whether to force developer mode extensions highlighting.
76 const char kForceDevModeHighlighting[] = "force-dev-mode-highlighting"; 80 const char kForceDevModeHighlighting[] = "force-dev-mode-highlighting";
77 81
82 // Whether or not mime handler view guests are enabled.
83 const char kMimeHandlerView[] = "mime-handler-view";
84
78 // Notify the user and require consent for extensions running scripts. 85 // Notify the user and require consent for extensions running scripts.
79 // Appending --scripts-require-action=1 has the same effect as 86 // Appending --scripts-require-action=1 has the same effect as
80 // --enable-scripts-require-action (see below). 87 // --enable-scripts-require-action (see below).
81 const char kScriptsRequireAction[] = "scripts-require-action"; 88 const char kScriptsRequireAction[] = "scripts-require-action";
82 // FeatureSwitch and about_flags don't play nice. Feature switch expects either 89 // FeatureSwitch and about_flags don't play nice. Feature switch expects either
83 // --enable-<feature> or --<feature>=1, but about_flags expects the command 90 // --enable-<feature> or --<feature>=1, but about_flags expects the command
84 // line argument to enable it (or a selection). Hack this in, so enabling it 91 // line argument to enable it (or a selection). Hack this in, so enabling it
85 // in about_flags enables the feature. Appending this flag has the same effect 92 // in about_flags enables the feature. Appending this flag has the same effect
86 // as --scripts-require-action=1. 93 // as --scripts-require-action=1.
87 const char kEnableScriptsRequireAction[] = "enable-scripts-require-action"; 94 const char kEnableScriptsRequireAction[] = "enable-scripts-require-action";
88 95
89 // Makes component extensions appear in chrome://settings/extensions. 96 // Makes component extensions appear in chrome://settings/extensions.
90 const char kShowComponentExtensionOptions[] = 97 const char kShowComponentExtensionOptions[] =
91 "show-component-extension-options"; 98 "show-component-extension-options";
92 99
93 // Adds the given extension ID to all the permission whitelists. 100 // Adds the given extension ID to all the permission whitelists.
94 const char kWhitelistedExtensionID[] = "whitelisted-extension-id"; 101 const char kWhitelistedExtensionID[] = "whitelisted-extension-id";
95 102
96 } // namespace switches 103 } // namespace switches
97 104
98 } // namespace extensions 105 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698