OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_QUIC_CRYPTO_QUIC_SERVER_INFO_H_ | 5 #ifndef NET_QUIC_CRYPTO_QUIC_SERVER_INFO_H_ |
6 #define NET_QUIC_CRYPTO_QUIC_SERVER_INFO_H_ | 6 #define NET_QUIC_CRYPTO_QUIC_SERVER_INFO_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 | 74 |
75 struct State { | 75 struct State { |
76 State(); | 76 State(); |
77 ~State(); | 77 ~State(); |
78 | 78 |
79 void Clear(); | 79 void Clear(); |
80 | 80 |
81 // This class matches QuicClientCryptoConfig::CachedState. | 81 // This class matches QuicClientCryptoConfig::CachedState. |
82 std::string server_config; // A serialized handshake message. | 82 std::string server_config; // A serialized handshake message. |
83 std::string source_address_token; // An opaque proof of IP ownership. | 83 std::string source_address_token; // An opaque proof of IP ownership. |
| 84 std::string cert_sct; // Signed timestamp of the leaf cert. |
| 85 std::string chlo_hash; // Hash of the CHLO message. |
84 std::vector<std::string> certs; // A list of certificates in leaf-first | 86 std::vector<std::string> certs; // A list of certificates in leaf-first |
85 // order. | 87 // order. |
86 std::string server_config_sig; // A signature of |server_config_|. | 88 std::string server_config_sig; // A signature of |server_config_|. |
87 | 89 |
88 private: | 90 private: |
89 DISALLOW_COPY_AND_ASSIGN(State); | 91 DISALLOW_COPY_AND_ASSIGN(State); |
90 }; | 92 }; |
91 | 93 |
92 // Once the data is ready, it can be read using the following members. These | 94 // Once the data is ready, it can be read using the following members. These |
93 // members can then be updated before calling |Persist|. | 95 // members can then be updated before calling |Persist|. |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 // GetForServer returns a fresh, allocated QuicServerInfo for the given | 139 // GetForServer returns a fresh, allocated QuicServerInfo for the given |
138 // |server_id| or NULL on failure. | 140 // |server_id| or NULL on failure. |
139 virtual QuicServerInfo* GetForServer(const QuicServerId& server_id) = 0; | 141 virtual QuicServerInfo* GetForServer(const QuicServerId& server_id) = 0; |
140 | 142 |
141 DISALLOW_COPY_AND_ASSIGN(QuicServerInfoFactory); | 143 DISALLOW_COPY_AND_ASSIGN(QuicServerInfoFactory); |
142 }; | 144 }; |
143 | 145 |
144 } // namespace net | 146 } // namespace net |
145 | 147 |
146 #endif // NET_QUIC_CRYPTO_QUIC_SERVER_INFO_H_ | 148 #endif // NET_QUIC_CRYPTO_QUIC_SERVER_INFO_H_ |
OLD | NEW |