Chromium Code Reviews| 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 namespace net { | 8 namespace net { |
| 9 | 9 |
| 10 // kNoReportURI is a placeholder for when a pinset does not have a report URI. | |
| 11 static const char kNoReportURI[] = ""; | |
|
xunjieli
2017/07/10 22:20:40
(I moved this constant from the template file here
Ryan Sleevi
2017/07/11 15:29:40
Because this is static, doesn't the actual value n
xunjieli
2017/07/11 16:45:21
Done.
| |
| 12 | |
| 10 struct TransportSecurityStateSource { | 13 struct TransportSecurityStateSource { |
| 11 struct Pinset { | 14 struct Pinset { |
| 12 const char* const* const accepted_pins; | 15 const char* const* const accepted_pins; |
| 13 const char* const* const rejected_pins; | 16 const char* const* const rejected_pins; |
| 14 const char* const report_uri; | 17 const char* const report_uri; |
| 15 }; | 18 }; |
| 16 | 19 |
| 17 const uint8_t* huffman_tree; | 20 const uint8_t* huffman_tree; |
| 18 size_t huffman_tree_size; | 21 size_t huffman_tree_size; |
| 19 const uint8_t* preloaded_data; | 22 const uint8_t* preloaded_data; |
| 20 size_t preloaded_bits; | 23 size_t preloaded_bits; |
| 21 size_t root_position; | 24 size_t root_position; |
| 22 const char* const* expect_ct_report_uris; | 25 const char* const* expect_ct_report_uris; |
| 23 const char* const* expect_staple_report_uris; | 26 const char* const* expect_staple_report_uris; |
| 24 const Pinset* pinsets; | 27 const Pinset* pinsets; |
| 25 size_t pinsets_count; | 28 size_t pinsets_count; |
| 26 }; | 29 }; |
| 27 | 30 |
| 28 } // namespace net | 31 } // namespace net |
| 29 | 32 |
| 30 #endif // NET_HTTP_TRANSPORT_SECURITY_STATE_SOURCE_H_ | 33 #endif // NET_HTTP_TRANSPORT_SECURITY_STATE_SOURCE_H_ |
| OLD | NEW |