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

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

Issue 402029: Don't allow content scripts to execute on file:// urls.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « chrome/common/chrome_switches.h ('k') | chrome/common/extensions/docs/content_scripts.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 8
9 namespace switches { 9 namespace switches {
10 10
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 180
181 // Enable experimental WebGL support. 181 // Enable experimental WebGL support.
182 const char kEnableExperimentalWebGL[] = "enable-webgl"; 182 const char kEnableExperimentalWebGL[] = "enable-webgl";
183 183
184 // Enable experimental timeline API. 184 // Enable experimental timeline API.
185 const char kEnableExtensionTimelineApi[] = "enable-extension-timeline-api"; 185 const char kEnableExtensionTimelineApi[] = "enable-extension-timeline-api";
186 186
187 // Enable the fastback page cache. 187 // Enable the fastback page cache.
188 const char kEnableFastback[] = "enable-fastback"; 188 const char kEnableFastback[] = "enable-fastback";
189 189
190 // By default, cookies are not allowed on file://. They are needed in for 190 // By default, cookies are not allowed on file://. They are needed for
191 // testing, for example page cycler and layout tests. See bug 1157243. 191 // testing, for example page cycler and layout tests. See bug 1157243.
192 const char kEnableFileCookies[] = "enable-file-cookies"; 192 const char kEnableFileCookies[] = "enable-file-cookies";
193 193
194 // By default, js content scripts are not allowed on file://. They are needed
195 // for page cycler tests. See http://crbug.com/27877.
196 const char kEnableJsOnFileUrls[] = "enable-content-script-on-file-urls";
197
194 // Disable LocalStorage. 198 // Disable LocalStorage.
195 const char kDisableLocalStorage[] = "disable-local-storage"; 199 const char kDisableLocalStorage[] = "disable-local-storage";
196 200
197 // Force logging to be enabled. Logging is disabled by default in release 201 // Force logging to be enabled. Logging is disabled by default in release
198 // builds. 202 // builds.
199 const char kEnableLogging[] = "enable-logging"; 203 const char kEnableLogging[] = "enable-logging";
200 204
201 // On Windows, converts the page to the currently-installed monitor profile. 205 // On Windows, converts the page to the currently-installed monitor profile.
202 // This does NOT enable color management for images. The source is still 206 // This does NOT enable color management for images. The source is still
203 // assumed to be sRGB. 207 // assumed to be sRGB.
204 const char kEnableMonitorProfile[] = "enable-monitor-profile"; 208 const char kEnableMonitorProfile[] = "enable-monitor-profile";
205 209
206 // Enable Native Web Worker support 210 // Enable Native Web Worker support.
207 const char kEnableNativeWebWorkers[] = "enable-native-web-workers"; 211 const char kEnableNativeWebWorkers[] = "enable-native-web-workers";
208 212
209 // Enable AutoFill++. 213 // Enable AutoFill++.
210 const char kEnableNewAutoFill[] = "enable-new-autofill"; 214 const char kEnableNewAutoFill[] = "enable-new-autofill";
211 215
212 // Enable remote web font support. SVG font should always work whether 216 // Enable remote web font support. SVG font should always work whether
213 // this option is specified or not. 217 // this option is specified or not.
214 const char kEnableRemoteFonts[] = "enable-remote-fonts"; 218 const char kEnableRemoteFonts[] = "enable-remote-fonts";
215 219
216 // Turns on the accessibility in the renderer. Off by default until 220 // Turns on the accessibility in the renderer. Off by default until
(...skipping 482 matching lines...) Expand 10 before | Expand all | Expand 10 after
699 703
700 // ----------------------------------------------------------------------------- 704 // -----------------------------------------------------------------------------
701 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. 705 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE.
702 // 706 //
703 // You were going to just dump your switches here, weren't you? Instead, 707 // You were going to just dump your switches here, weren't you? Instead,
704 // please put them in alphabetical order above, or in order inside the 708 // please put them in alphabetical order above, or in order inside the
705 // appropriate ifdef at the bottom. The order should match the header. 709 // appropriate ifdef at the bottom. The order should match the header.
706 // ----------------------------------------------------------------------------- 710 // -----------------------------------------------------------------------------
707 711
708 } // namespace switches 712 } // namespace switches
OLDNEW
« no previous file with comments | « chrome/common/chrome_switches.h ('k') | chrome/common/extensions/docs/content_scripts.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698