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

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

Issue 1072933006: Support whitelisting to handle insecure origins as trustworthy origins (chromium) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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 1135 matching lines...) Expand 10 before | Expand all | Expand 10 after
1146 // be used only by the upgrade process. 1146 // be used only by the upgrade process.
1147 const char kTryChromeAgain[] = "try-chrome-again"; 1147 const char kTryChromeAgain[] = "try-chrome-again";
1148 1148
1149 // Runs un-installation steps that were done by chrome first-run. 1149 // Runs un-installation steps that were done by chrome first-run.
1150 const char kUninstall[] = "uninstall"; 1150 const char kUninstall[] = "uninstall";
1151 1151
1152 // Overrides per-origin quota settings to unlimited storage for any 1152 // Overrides per-origin quota settings to unlimited storage for any
1153 // apps/origins. This should be used only for testing purpose. 1153 // apps/origins. This should be used only for testing purpose.
1154 const char kUnlimitedStorage[] = "unlimited-storage"; 1154 const char kUnlimitedStorage[] = "unlimited-storage";
1155 1155
1156 // Treat given (insecure) origins as secure origins. Multiple origins can be
1157 // supplied. Has no effect unless --user-data-dir is also supplied.
1158 // Example:
1159 // --unsafety-treat-insecure-origin-as-secure=http://a.test,http://b.test
1160 // --user-data-dir=/test/only/profile/dir
1161 const char kUnsafetyTreatInsecureOriginAsSecure[] =
1162 "unsafety-treat-insecure-origin-as-secure";
1163
1156 // Uses Spdy for the transport protocol instead of HTTP. This is a temporary 1164 // Uses Spdy for the transport protocol instead of HTTP. This is a temporary
1157 // testing flag. 1165 // testing flag.
1158 const char kUseSpdy[] = "use-spdy"; 1166 const char kUseSpdy[] = "use-spdy";
1159 1167
1160 // A string used to override the default user agent with a custom one. 1168 // A string used to override the default user agent with a custom one.
1161 const char kUserAgent[] = "user-agent"; 1169 const char kUserAgent[] = "user-agent";
1162 1170
1163 // Specifies the user data directory, which is where the browser will look for 1171 // Specifies the user data directory, which is where the browser will look for
1164 // all of its state. 1172 // all of its state.
1165 const char kUserDataDir[] = "user-data-dir"; 1173 const char kUserDataDir[] = "user-data-dir";
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
1388 1396
1389 // ----------------------------------------------------------------------------- 1397 // -----------------------------------------------------------------------------
1390 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. 1398 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE.
1391 // 1399 //
1392 // You were going to just dump your switches here, weren't you? Instead, please 1400 // You were going to just dump your switches here, weren't you? Instead, please
1393 // put them in alphabetical order above, or in order inside the appropriate 1401 // put them in alphabetical order above, or in order inside the appropriate
1394 // ifdef at the bottom. The order should match the header. 1402 // ifdef at the bottom. The order should match the header.
1395 // ----------------------------------------------------------------------------- 1403 // -----------------------------------------------------------------------------
1396 1404
1397 } // namespace switches 1405 } // namespace switches
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698