| 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_CORE_CRYPTO_QUIC_CRYPTO_CLIENT_CONFIG_H_ | 5 #ifndef NET_QUIC_CORE_CRYPTO_QUIC_CRYPTO_CLIENT_CONFIG_H_ |
| 6 #define NET_QUIC_CORE_CRYPTO_QUIC_CRYPTO_CLIENT_CONFIG_H_ | 6 #define NET_QUIC_CORE_CRYPTO_QUIC_CRYPTO_CLIENT_CONFIG_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| 11 #include <memory> | 11 #include <memory> |
| 12 #include <queue> | 12 #include <queue> |
| 13 #include <string> | 13 #include <string> |
| 14 #include <vector> | 14 #include <vector> |
| 15 | 15 |
| 16 #include "base/macros.h" | 16 #include "base/macros.h" |
| 17 #include "base/strings/string_piece.h" | 17 #include "base/strings/string_piece.h" |
| 18 #include "net/base/net_export.h" | |
| 19 #include "net/quic/core/crypto/crypto_handshake.h" | 18 #include "net/quic/core/crypto/crypto_handshake.h" |
| 20 #include "net/quic/core/quic_packets.h" | 19 #include "net/quic/core/quic_packets.h" |
| 21 #include "net/quic/core/quic_server_id.h" | 20 #include "net/quic/core/quic_server_id.h" |
| 21 #include "net/quic/platform/api/quic_export.h" |
| 22 | 22 |
| 23 namespace net { | 23 namespace net { |
| 24 | 24 |
| 25 class ChannelIDKey; | 25 class ChannelIDKey; |
| 26 class ChannelIDSource; | 26 class ChannelIDSource; |
| 27 class CryptoHandshakeMessage; | 27 class CryptoHandshakeMessage; |
| 28 class ProofVerifier; | 28 class ProofVerifier; |
| 29 class ProofVerifyDetails; | 29 class ProofVerifyDetails; |
| 30 class QuicRandom; | 30 class QuicRandom; |
| 31 | 31 |
| 32 // QuicCryptoClientConfig contains crypto-related configuration settings for a | 32 // QuicCryptoClientConfig contains crypto-related configuration settings for a |
| 33 // client. Note that this object isn't thread-safe. It's designed to be used on | 33 // client. Note that this object isn't thread-safe. It's designed to be used on |
| 34 // a single thread at a time. | 34 // a single thread at a time. |
| 35 class NET_EXPORT_PRIVATE QuicCryptoClientConfig : public QuicCryptoConfig { | 35 class QUIC_EXPORT_PRIVATE QuicCryptoClientConfig : public QuicCryptoConfig { |
| 36 public: | 36 public: |
| 37 // A CachedState contains the information that the client needs in order to | 37 // A CachedState contains the information that the client needs in order to |
| 38 // perform a 0-RTT handshake with a server. This information can be reused | 38 // perform a 0-RTT handshake with a server. This information can be reused |
| 39 // over several connections to the same server. | 39 // over several connections to the same server. |
| 40 class NET_EXPORT_PRIVATE CachedState { | 40 class QUIC_EXPORT_PRIVATE CachedState { |
| 41 public: | 41 public: |
| 42 // Enum to track if the server config is valid or not. If it is not valid, | 42 // Enum to track if the server config is valid or not. If it is not valid, |
| 43 // it specifies why it is invalid. | 43 // it specifies why it is invalid. |
| 44 enum ServerConfigState { | 44 enum ServerConfigState { |
| 45 // WARNING: Do not change the numerical values of any of server config | 45 // WARNING: Do not change the numerical values of any of server config |
| 46 // state. Do not remove deprecated server config states - just comment | 46 // state. Do not remove deprecated server config states - just comment |
| 47 // them as deprecated. | 47 // them as deprecated. |
| 48 SERVER_CONFIG_EMPTY = 0, | 48 SERVER_CONFIG_EMPTY = 0, |
| 49 SERVER_CONFIG_INVALID = 1, | 49 SERVER_CONFIG_INVALID = 1, |
| 50 SERVER_CONFIG_CORRUPTED = 2, | 50 SERVER_CONFIG_CORRUPTED = 2, |
| (...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 384 | 384 |
| 385 // The |user_agent_id_| passed in QUIC's CHLO message. | 385 // The |user_agent_id_| passed in QUIC's CHLO message. |
| 386 std::string user_agent_id_; | 386 std::string user_agent_id_; |
| 387 | 387 |
| 388 DISALLOW_COPY_AND_ASSIGN(QuicCryptoClientConfig); | 388 DISALLOW_COPY_AND_ASSIGN(QuicCryptoClientConfig); |
| 389 }; | 389 }; |
| 390 | 390 |
| 391 } // namespace net | 391 } // namespace net |
| 392 | 392 |
| 393 #endif // NET_QUIC_CORE_CRYPTO_QUIC_CRYPTO_CLIENT_CONFIG_H_ | 393 #endif // NET_QUIC_CORE_CRYPTO_QUIC_CRYPTO_CLIENT_CONFIG_H_ |
| OLD | NEW |