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

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

Issue 2906633003: Add a build flag to configure bundling of HSTS preload list (Closed)
Patch Set: one more Created 3 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
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_TRANSPORT_SECURITY_STATE_H_ 5 #ifndef NET_HTTP_TRANSPORT_SECURITY_STATE_H_
6 #define NET_HTTP_TRANSPORT_SECURITY_STATE_H_ 6 #define NET_HTTP_TRANSPORT_SECURITY_STATE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 19 matching lines...) Expand all
30 enum class CertPolicyCompliance; 30 enum class CertPolicyCompliance;
31 }; 31 };
32 32
33 class HostPortPair; 33 class HostPortPair;
34 class SSLInfo; 34 class SSLInfo;
35 class X509Certificate; 35 class X509Certificate;
36 36
37 void NET_EXPORT_PRIVATE SetTransportSecurityStateSourceForTesting( 37 void NET_EXPORT_PRIVATE SetTransportSecurityStateSourceForTesting(
38 const TransportSecurityStateSource* source); 38 const TransportSecurityStateSource* source);
39 39
40 NET_EXPORT_PRIVATE const TransportSecurityStateSource*
41 GetTransportSecurityStateSourceForTesting();
42
40 // Tracks which hosts have enabled strict transport security and/or public 43 // Tracks which hosts have enabled strict transport security and/or public
41 // key pins. 44 // key pins.
42 // 45 //
43 // This object manages the in-memory store. Register a Delegate with 46 // This object manages the in-memory store. Register a Delegate with
44 // |SetDelegate| to persist the state to disk. 47 // |SetDelegate| to persist the state to disk.
45 // 48 //
46 // HTTP strict transport security (HSTS) is defined in 49 // HTTP strict transport security (HSTS) is defined in
47 // http://tools.ietf.org/html/ietf-websec-strict-transport-sec, and 50 // http://tools.ietf.org/html/ietf-websec-strict-transport-sec, and
48 // HTTP-based dynamic public key pinning (HPKP) is defined in 51 // HTTP-based dynamic public key pinning (HPKP) is defined in
49 // http://tools.ietf.org/html/ietf-websec-key-pinning. 52 // http://tools.ietf.org/html/ietf-websec-key-pinning.
(...skipping 663 matching lines...) Expand 10 before | Expand all | Expand 10 after
713 ReportCache sent_expect_ct_reports_cache_; 716 ReportCache sent_expect_ct_reports_cache_;
714 717
715 THREAD_CHECKER(thread_checker_); 718 THREAD_CHECKER(thread_checker_);
716 719
717 DISALLOW_COPY_AND_ASSIGN(TransportSecurityState); 720 DISALLOW_COPY_AND_ASSIGN(TransportSecurityState);
718 }; 721 };
719 722
720 } // namespace net 723 } // namespace net
721 724
722 #endif // NET_HTTP_TRANSPORT_SECURITY_STATE_H_ 725 #endif // NET_HTTP_TRANSPORT_SECURITY_STATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698