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

Unified Diff: net/base/force_tls_state.h

Issue 118049: Parsing routines for X-Force-TLS header.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | net/base/force_tls_state.cc » ('j') | net/base/force_tls_state.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/force_tls_state.h
===================================================================
--- net/base/force_tls_state.h (revision 17278)
+++ net/base/force_tls_state.h (working copy)
@@ -35,6 +35,14 @@
// Returns whether |host| has had ForceTLS enabled.
bool IsEnabledForHost(const std::string& host);
+ // Returns |true| if value parses as a valid X-Force-TLS header value.
wtc 2009/06/01 17:59:19 Nit: the first "value" should be quoted with ||.
abarth-chromium 2009/06/02 02:24:05 Fixed.
+ // The value of max-age and and includeSubDomains are returned in |max_age|
wtc 2009/06/01 17:59:19 Nit: value => values Could you include the defini
abarth-chromium 2009/06/02 02:24:05 Fixed.
+ // and |include_subdomains|, respectively. The out parameters are not
+ // modified if the function returns |false|.
+ static bool ParseHeader(const std::string& value,
+ int* max_age,
+ bool* include_subdomains);
+
private:
// The set of hosts that have enabled ForceTLS.
std::set<std::string> enabled_hosts_;
« no previous file with comments | « no previous file | net/base/force_tls_state.cc » ('j') | net/base/force_tls_state.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698