OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_CRYPTO_CLIENT_CONFIG_H_ | 5 #ifndef NET_QUIC_CRYPTO_QUIC_CRYPTO_CLIENT_CONFIG_H_ |
6 #define NET_QUIC_CRYPTO_QUIC_CRYPTO_CLIENT_CONFIG_H_ | 6 #define NET_QUIC_CRYPTO_QUIC_CRYPTO_CLIENT_CONFIG_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 // |expiration_time_|, |cert_sct_|, |chlo_hash_| and |server_config_sig_| | 153 // |expiration_time_|, |cert_sct_|, |chlo_hash_| and |server_config_sig_| |
154 // from the |other|. The remaining fields, |generation_counter_|, | 154 // from the |other|. The remaining fields, |generation_counter_|, |
155 // |proof_verify_details_|, and |scfg_| remain unchanged. | 155 // |proof_verify_details_|, and |scfg_| remain unchanged. |
156 void InitializeFrom(const CachedState& other); | 156 void InitializeFrom(const CachedState& other); |
157 | 157 |
158 // Initializes this cached state based on the arguments provided. | 158 // Initializes this cached state based on the arguments provided. |
159 // Returns false if there is a problem parsing the server config. | 159 // Returns false if there is a problem parsing the server config. |
160 bool Initialize(base::StringPiece server_config, | 160 bool Initialize(base::StringPiece server_config, |
161 base::StringPiece source_address_token, | 161 base::StringPiece source_address_token, |
162 const std::vector<std::string>& certs, | 162 const std::vector<std::string>& certs, |
163 base::StringPiece cert_sct, | 163 const std::string& cert_sct, |
164 base::StringPiece chlo_hash, | 164 base::StringPiece chlo_hash, |
165 base::StringPiece signature, | 165 base::StringPiece signature, |
166 QuicWallTime now, | 166 QuicWallTime now, |
167 QuicWallTime expiration_time); | 167 QuicWallTime expiration_time); |
168 | 168 |
169 private: | 169 private: |
170 std::string server_config_; // A serialized handshake message. | 170 std::string server_config_; // A serialized handshake message. |
171 std::string source_address_token_; // An opaque proof of IP ownership. | 171 std::string source_address_token_; // An opaque proof of IP ownership. |
172 std::vector<std::string> certs_; // A list of certificates in leaf-first | 172 std::vector<std::string> certs_; // A list of certificates in leaf-first |
173 // order. | 173 // order. |
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
385 | 385 |
386 // The |user_agent_id_| passed in QUIC's CHLO message. | 386 // The |user_agent_id_| passed in QUIC's CHLO message. |
387 std::string user_agent_id_; | 387 std::string user_agent_id_; |
388 | 388 |
389 DISALLOW_COPY_AND_ASSIGN(QuicCryptoClientConfig); | 389 DISALLOW_COPY_AND_ASSIGN(QuicCryptoClientConfig); |
390 }; | 390 }; |
391 | 391 |
392 } // namespace net | 392 } // namespace net |
393 | 393 |
394 #endif // NET_QUIC_CRYPTO_QUIC_CRYPTO_CLIENT_CONFIG_H_ | 394 #endif // NET_QUIC_CRYPTO_QUIC_CRYPTO_CLIENT_CONFIG_H_ |
OLD | NEW |