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

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

Issue 1492403002: Remove kuint32max. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: win Created 5 years 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
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 <stdint.h>
9
asanka 2015/12/04 15:12:35 Here as well. The style guide doesn't require the
Avi (use Gerrit) 2015/12/04 15:19:28 Yes it does. It explicitly calls out C header file
asanka 2015/12/04 15:41:43 Ah. I see.
8 #include <string> 10 #include <string>
9 11
10 #include "base/basictypes.h"
11 #include "base/time/time.h" 12 #include "base/time/time.h"
12 #include "base/values.h" 13 #include "base/values.h"
13 #include "net/base/hash_value.h" 14 #include "net/base/hash_value.h"
14 #include "net/base/net_export.h" 15 #include "net/base/net_export.h"
15 16
16 class GURL; 17 class GURL;
17 18
18 namespace net { 19 namespace net {
19 20
20 const int64 kMaxHSTSAgeSecs = 86400 * 365; // 1 year 21 const int64_t kMaxHSTSAgeSecs = 86400 * 365; // 1 year
21 22
22 // Parses |value| as a Strict-Transport-Security header value. If successful, 23 // Parses |value| as a Strict-Transport-Security header value. If successful,
23 // returns true and sets |*max_age| and |*include_subdomains|. 24 // returns true and sets |*max_age| and |*include_subdomains|.
24 // Otherwise returns false and leaves the output parameters unchanged. 25 // Otherwise returns false and leaves the output parameters unchanged.
25 // 26 //
26 // value is the right-hand side of: 27 // value is the right-hand side of:
27 // 28 //
28 // "Strict-Transport-Security" ":" 29 // "Strict-Transport-Security" ":"
29 // [ directive ] *( ";" [ directive ] ) 30 // [ directive ] *( ";" [ directive ] )
30 bool NET_EXPORT_PRIVATE ParseHSTSHeader(const std::string& value, 31 bool NET_EXPORT_PRIVATE ParseHSTSHeader(const std::string& value,
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 // [ ";" "includeSubdomains" ] 71 // [ ";" "includeSubdomains" ]
71 // [ ";" "report-uri" "=" uri-reference ] 72 // [ ";" "report-uri" "=" uri-reference ]
72 // 73 //
73 bool NET_EXPORT_PRIVATE ParseHPKPReportOnlyHeader(const std::string& value, 74 bool NET_EXPORT_PRIVATE ParseHPKPReportOnlyHeader(const std::string& value,
74 bool* include_subdomains, 75 bool* include_subdomains,
75 HashValueVector* hashes, 76 HashValueVector* hashes,
76 GURL* report_uri); 77 GURL* report_uri);
77 } // namespace net 78 } // namespace net
78 79
79 #endif // NET_HTTP_HTTP_SECURITY_HEADERS_H_ 80 #endif // NET_HTTP_HTTP_SECURITY_HEADERS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698