OLD | NEW |
1 // Copyright (c) 2017 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2017 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_SOURCE_H_ | 5 #ifndef NET_HTTP_TRANSPORT_SECURITY_STATE_SOURCE_H_ |
6 #define NET_HTTP_TRANSPORT_SECURITY_STATE_SOURCE_H_ | 6 #define NET_HTTP_TRANSPORT_SECURITY_STATE_SOURCE_H_ |
7 | 7 |
| 8 #include <stddef.h> |
| 9 #include <stdint.h> |
| 10 |
| 11 #include "net/base/net_export.h" |
| 12 |
8 namespace net { | 13 namespace net { |
9 | 14 |
| 15 // kNoReportURI is a placeholder for when a pinset does not have a report URI. |
| 16 NET_EXPORT_PRIVATE extern const char kNoReportURI[]; |
| 17 |
10 struct TransportSecurityStateSource { | 18 struct TransportSecurityStateSource { |
11 struct Pinset { | 19 struct Pinset { |
12 const char* const* const accepted_pins; | 20 const char* const* const accepted_pins; |
13 const char* const* const rejected_pins; | 21 const char* const* const rejected_pins; |
14 const char* const report_uri; | 22 const char* const report_uri; |
15 }; | 23 }; |
16 | 24 |
17 const uint8_t* huffman_tree; | 25 const uint8_t* huffman_tree; |
18 size_t huffman_tree_size; | 26 size_t huffman_tree_size; |
19 const uint8_t* preloaded_data; | 27 const uint8_t* preloaded_data; |
20 size_t preloaded_bits; | 28 size_t preloaded_bits; |
21 size_t root_position; | 29 size_t root_position; |
22 const char* const* expect_ct_report_uris; | 30 const char* const* expect_ct_report_uris; |
23 const char* const* expect_staple_report_uris; | 31 const char* const* expect_staple_report_uris; |
24 const Pinset* pinsets; | 32 const Pinset* pinsets; |
25 size_t pinsets_count; | 33 size_t pinsets_count; |
26 }; | 34 }; |
27 | 35 |
28 } // namespace net | 36 } // namespace net |
29 | 37 |
30 #endif // NET_HTTP_TRANSPORT_SECURITY_STATE_SOURCE_H_ | 38 #endif // NET_HTTP_TRANSPORT_SECURITY_STATE_SOURCE_H_ |
OLD | NEW |