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

Unified Diff: net/base/net_switches.cc

Issue 6869043: Add command-line control of the HSTS preload list. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/base/net_switches.h ('k') | net/base/transport_security_state.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/net_switches.cc
===================================================================
--- net/base/net_switches.cc (revision 0)
+++ net/base/net_switches.cc (revision 0)
@@ -0,0 +1,17 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "net/base/net_switches.h"
+
+namespace switches {
+
+// This switch will take the JSON-formatted HSTS specification and load it
+// as if it were a preloaded HSTS entry. It will take precedence over both
+// website-specified rules and built-in rules.
+// The JSON format is the same as that persisted in
+// <profile_dir>/Default/TransportSecurity
+const char kHstsHosts[] = "hsts-hosts";
+
+} // namespace switches
+
Property changes on: net/base/net_switches.cc
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « net/base/net_switches.h ('k') | net/base/transport_security_state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698