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

Side by Side Diff: chrome/common/chrome_switches.cc

Issue 9317013: Add a centralized mechanism for whitelisting access to extension permissions. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: fix a couple tests Created 8 years, 10 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "chrome/common/chrome_switches.h" 5 #include "chrome/common/chrome_switches.h"
6 6
7 #include "base/base_switches.h" 7 #include "base/base_switches.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 9
10 namespace switches { 10 namespace switches {
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 43
44 // By default, an https page cannot run JavaScript, CSS or plug-ins from http 44 // By default, an https page cannot run JavaScript, CSS or plug-ins from http
45 // URLs. This provides an override to get the old insecure behavior. 45 // URLs. This provides an override to get the old insecure behavior.
46 const char kAllowRunningInsecureContent[] = "allow-running-insecure-content"; 46 const char kAllowRunningInsecureContent[] = "allow-running-insecure-content";
47 47
48 // Allows injecting extensions and user scripts on the extensions gallery 48 // Allows injecting extensions and user scripts on the extensions gallery
49 // site. Normally prevented for security reasons, but can be useful for 49 // site. Normally prevented for security reasons, but can be useful for
50 // automation testing of the gallery. 50 // automation testing of the gallery.
51 const char kAllowScriptingGallery[] = "allow-scripting-gallery"; 51 const char kAllowScriptingGallery[] = "allow-scripting-gallery";
52 52
53 // Specifies comma-separated list of extension ids to grant access to local
54 // websocket proxy.
55 const char kAllowWebSocketProxy[] = "allow-websocket-proxy";
56
57 // Allow compositing on chrome:// pages. 53 // Allow compositing on chrome:// pages.
58 const char kAllowWebUICompositing[] = "allow-webui-compositing"; 54 const char kAllowWebUICompositing[] = "allow-webui-compositing";
59 55
60 // Prevents Chrome from requiring authorization to run certain widely installed 56 // Prevents Chrome from requiring authorization to run certain widely installed
61 // but less commonly used plug-ins. 57 // but less commonly used plug-ins.
62 const char kAlwaysAuthorizePlugins[] = "always-authorize-plugins"; 58 const char kAlwaysAuthorizePlugins[] = "always-authorize-plugins";
63 59
64 // Specifies that the extension-app with the specified id should be launched 60 // Specifies that the extension-app with the specified id should be launched
65 // according to its configuration. 61 // according to its configuration.
66 const char kAppId[] = "app-id"; 62 const char kAppId[] = "app-id";
(...skipping 1109 matching lines...) Expand 10 before | Expand all | Expand 10 after
1176 // Sets the maximum concurrent streams over a SPDY session. 1172 // Sets the maximum concurrent streams over a SPDY session.
1177 const char kMaxSpdyConcurrentStreams[] = "max-spdy-concurrent-streams"; 1173 const char kMaxSpdyConcurrentStreams[] = "max-spdy-concurrent-streams";
1178 1174
1179 // Specifies the user data directory, which is where the browser will look for 1175 // Specifies the user data directory, which is where the browser will look for
1180 // all of its state. 1176 // all of its state.
1181 const char kUserDataDir[] = "user-data-dir"; 1177 const char kUserDataDir[] = "user-data-dir";
1182 1178
1183 // Prints version information and quits. 1179 // Prints version information and quits.
1184 const char kVersion[] = "version"; 1180 const char kVersion[] = "version";
1185 1181
1182 // Adds the given extension ID to all the permission whitelists.
1183 const char kWhitelistedExtensionID[] = "whitelisted-extension-id";
1184
1186 // Uses WinHTTP to fetch and evaluate PAC scripts. Otherwise the default is to 1185 // Uses WinHTTP to fetch and evaluate PAC scripts. Otherwise the default is to
1187 // use Chromium's network stack to fetch, and V8 to evaluate. 1186 // use Chromium's network stack to fetch, and V8 to evaluate.
1188 const char kWinHttpProxyResolver[] = "winhttp-proxy-resolver"; 1187 const char kWinHttpProxyResolver[] = "winhttp-proxy-resolver";
1189 1188
1190 // Shows a memory consumption status area widget for OOM debugging. 1189 // Shows a memory consumption status area widget for OOM debugging.
1191 const char kMemoryWidget[] = "memory-widget"; 1190 const char kMemoryWidget[] = "memory-widget";
1192 1191
1193 #if defined(OS_CHROMEOS) 1192 #if defined(OS_CHROMEOS)
1194 // Enables WebUI based OOBE and login. 1193 // Enables WebUI based OOBE and login.
1195 const char kWebUILogin[] = "webui-login"; 1194 const char kWebUILogin[] = "webui-login";
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
1381 1380
1382 // ----------------------------------------------------------------------------- 1381 // -----------------------------------------------------------------------------
1383 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. 1382 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE.
1384 // 1383 //
1385 // You were going to just dump your switches here, weren't you? Instead, please 1384 // You were going to just dump your switches here, weren't you? Instead, please
1386 // put them in alphabetical order above, or in order inside the appropriate 1385 // put them in alphabetical order above, or in order inside the appropriate
1387 // ifdef at the bottom. The order should match the header. 1386 // ifdef at the bottom. The order should match the header.
1388 // ----------------------------------------------------------------------------- 1387 // -----------------------------------------------------------------------------
1389 1388
1390 } // namespace switches 1389 } // namespace switches
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698