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

Side by Side Diff: net/http/http_security_headers.h

Issue 18054010: Use a direct include of time headers in net/, part 2. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « net/http/http_response_info.cc ('k') | net/http/http_transaction_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #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" 11 #include "base/gtest_prod_util.h"
12 #include "base/time.h" 12 #include "base/time/time.h"
13 #include "base/values.h" 13 #include "base/values.h"
14 #include "net/base/hash_value.h" 14 #include "net/base/hash_value.h"
15 #include "net/base/net_export.h" 15 #include "net/base/net_export.h"
16 16
17 namespace net { 17 namespace net {
18 18
19 const int64 kMaxHSTSAgeSecs = 86400 * 365; // 1 year 19 const int64 kMaxHSTSAgeSecs = 86400 * 365; // 1 year
20 20
21 // Parses |value| as a Strict-Transport-Security header value. If successful, 21 // Parses |value| as a Strict-Transport-Security header value. If successful,
22 // returns true and sets |*max_age| and |*include_subdomains|. 22 // returns true and sets |*max_age| and |*include_subdomains|.
(...skipping 24 matching lines...) Expand all
47 // be at least one key hash which does NOT match the site's SSL certificate 47 // be at least one key hash which does NOT match the site's SSL certificate
48 // chain (this is the "backup pin"). 48 // chain (this is the "backup pin").
49 bool NET_EXPORT_PRIVATE ParseHPKPHeader(const std::string& value, 49 bool NET_EXPORT_PRIVATE ParseHPKPHeader(const std::string& value,
50 const HashValueVector& chain_hashes, 50 const HashValueVector& chain_hashes,
51 base::TimeDelta* max_age, 51 base::TimeDelta* max_age,
52 HashValueVector* hashes); 52 HashValueVector* hashes);
53 53
54 } // namespace net 54 } // namespace net
55 55
56 #endif // NET_HTTP_HTTP_SECURITY_HEADERS_H_ 56 #endif // NET_HTTP_HTTP_SECURITY_HEADERS_H_
OLDNEW
« no previous file with comments | « net/http/http_response_info.cc ('k') | net/http/http_transaction_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698