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

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: added test, added IsOriginSecure plumbing etc Created 5 years, 8 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 1127 matching lines...) Expand 10 before | Expand all | Expand 10 after
1138 // be used only by the upgrade process. 1138 // be used only by the upgrade process.
1139 const char kTryChromeAgain[] = "try-chrome-again"; 1139 const char kTryChromeAgain[] = "try-chrome-again";
1140 1140
1141 // Runs un-installation steps that were done by chrome first-run. 1141 // Runs un-installation steps that were done by chrome first-run.
1142 const char kUninstall[] = "uninstall"; 1142 const char kUninstall[] = "uninstall";
1143 1143
1144 // Overrides per-origin quota settings to unlimited storage for any 1144 // Overrides per-origin quota settings to unlimited storage for any
1145 // apps/origins. This should be used only for testing purpose. 1145 // apps/origins. This should be used only for testing purpose.
1146 const char kUnlimitedStorage[] = "unlimited-storage"; 1146 const char kUnlimitedStorage[] = "unlimited-storage";
1147 1147
1148 // Treat given (insecure) origins as secure origins. Multiple origins can be
1149 // supplied. Has no effect unless --user-data-dir is also supplied.
1150 // Example:
1151 // --unsafety-treat-insecure-origin-as-secure=http://a.test,http://b.test \
1152 // --user-data-dir=/test/only/profile/dir
1153 const char kUnsafetyTreatInsecureOriginAsSecure[] =
1154 "unsafety-treat-insecure-origin-as-secure";
1155
1148 // Uses Spdy for the transport protocol instead of HTTP. This is a temporary 1156 // Uses Spdy for the transport protocol instead of HTTP. This is a temporary
1149 // testing flag. 1157 // testing flag.
1150 const char kUseSpdy[] = "use-spdy"; 1158 const char kUseSpdy[] = "use-spdy";
1151 1159
1152 // A string used to override the default user agent with a custom one. 1160 // A string used to override the default user agent with a custom one.
1153 const char kUserAgent[] = "user-agent"; 1161 const char kUserAgent[] = "user-agent";
1154 1162
1155 // Specifies the user data directory, which is where the browser will look for 1163 // Specifies the user data directory, which is where the browser will look for
1156 // all of its state. 1164 // all of its state.
1157 const char kUserDataDir[] = "user-data-dir"; 1165 const char kUserDataDir[] = "user-data-dir";
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
1383 1391
1384 // ----------------------------------------------------------------------------- 1392 // -----------------------------------------------------------------------------
1385 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. 1393 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE.
1386 // 1394 //
1387 // You were going to just dump your switches here, weren't you? Instead, please 1395 // You were going to just dump your switches here, weren't you? Instead, please
1388 // put them in alphabetical order above, or in order inside the appropriate 1396 // put them in alphabetical order above, or in order inside the appropriate
1389 // ifdef at the bottom. The order should match the header. 1397 // ifdef at the bottom. The order should match the header.
1390 // ----------------------------------------------------------------------------- 1398 // -----------------------------------------------------------------------------
1391 1399
1392 } // namespace switches 1400 } // namespace switches
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698