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_; |