OLD | NEW |
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 #ifndef NET_HTTP_HTTP_SECURITY_HEADERS_H_ | 5 #ifndef NET_HTTP_HTTP_SECURITY_HEADERS_H_ |
6 #define NET_HTTP_HTTP_SECURITY_HEADERS_H_ | 6 #define NET_HTTP_HTTP_SECURITY_HEADERS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/gtest_prod_util.h" | |
12 #include "base/time/time.h" | 11 #include "base/time/time.h" |
13 #include "base/values.h" | 12 #include "base/values.h" |
14 #include "net/base/hash_value.h" | 13 #include "net/base/hash_value.h" |
15 #include "net/base/net_export.h" | 14 #include "net/base/net_export.h" |
16 | 15 |
17 class GURL; | 16 class GURL; |
18 | 17 |
19 namespace net { | 18 namespace net { |
20 | 19 |
21 const int64 kMaxHSTSAgeSecs = 86400 * 365; // 1 year | 20 const int64 kMaxHSTSAgeSecs = 86400 * 365; // 1 year |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 // [ ";" "includeSubdomains" ] | 70 // [ ";" "includeSubdomains" ] |
72 // [ ";" "report-uri" "=" uri-reference ] | 71 // [ ";" "report-uri" "=" uri-reference ] |
73 // | 72 // |
74 bool NET_EXPORT_PRIVATE ParseHPKPReportOnlyHeader(const std::string& value, | 73 bool NET_EXPORT_PRIVATE ParseHPKPReportOnlyHeader(const std::string& value, |
75 bool* include_subdomains, | 74 bool* include_subdomains, |
76 HashValueVector* hashes, | 75 HashValueVector* hashes, |
77 GURL* report_uri); | 76 GURL* report_uri); |
78 } // namespace net | 77 } // namespace net |
79 | 78 |
80 #endif // NET_HTTP_HTTP_SECURITY_HEADERS_H_ | 79 #endif // NET_HTTP_HTTP_SECURITY_HEADERS_H_ |
OLD | NEW |