| OLD | NEW |
| 1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2016 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_QUARTC_QUARTC_SESSION_H_ | 5 #ifndef NET_QUIC_QUARTC_QUARTC_SESSION_H_ |
| 6 #define NET_QUIC_QUARTC_QUARTC_SESSION_H_ | 6 #define NET_QUIC_QUARTC_QUARTC_SESSION_H_ |
| 7 | 7 |
| 8 #include "net/base/net_export.h" | 8 #include "net/base/net_export.h" |
| 9 #include "net/quic/core/quic_crypto_client_stream.h" | 9 #include "net/quic/core/quic_crypto_client_stream.h" |
| 10 #include "net/quic/core/quic_crypto_server_stream.h" | 10 #include "net/quic/core/quic_crypto_server_stream.h" |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 const ProofVerifyDetails& verify_details) override; | 82 const ProofVerifyDetails& verify_details) override; |
| 83 | 83 |
| 84 // Override the default crypto configuration. | 84 // Override the default crypto configuration. |
| 85 // The session will take the ownership of the configurations. | 85 // The session will take the ownership of the configurations. |
| 86 void SetClientCryptoConfig(QuicCryptoClientConfig* client_config); | 86 void SetClientCryptoConfig(QuicCryptoClientConfig* client_config); |
| 87 | 87 |
| 88 void SetServerCryptoConfig(QuicCryptoServerConfig* server_config); | 88 void SetServerCryptoConfig(QuicCryptoServerConfig* server_config); |
| 89 | 89 |
| 90 protected: | 90 protected: |
| 91 // QuicSession override. | 91 // QuicSession override. |
| 92 ReliableQuicStream* CreateIncomingDynamicStream(QuicStreamId id) override; | 92 QuicStream* CreateIncomingDynamicStream(QuicStreamId id) override; |
| 93 | 93 |
| 94 QuartcStream* CreateDataStream(QuicStreamId id, SpdyPriority priority); | 94 QuartcStream* CreateDataStream(QuicStreamId id, SpdyPriority priority); |
| 95 | 95 |
| 96 private: | 96 private: |
| 97 // For crypto handshake. | 97 // For crypto handshake. |
| 98 std::unique_ptr<QuicCryptoStream> crypto_stream_; | 98 std::unique_ptr<QuicCryptoStream> crypto_stream_; |
| 99 // For recording packet receipt time | 99 // For recording packet receipt time |
| 100 QuicClock clock_; | 100 QuicClock clock_; |
| 101 const std::string unique_remote_server_id_; | 101 const std::string unique_remote_server_id_; |
| 102 Perspective perspective_; | 102 Perspective perspective_; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 114 std::unique_ptr<QuicCryptoClientConfig> quic_crypto_client_config_; | 114 std::unique_ptr<QuicCryptoClientConfig> quic_crypto_client_config_; |
| 115 // Config for QUIC crypto server stream, used by the server. | 115 // Config for QUIC crypto server stream, used by the server. |
| 116 std::unique_ptr<QuicCryptoServerConfig> quic_crypto_server_config_; | 116 std::unique_ptr<QuicCryptoServerConfig> quic_crypto_server_config_; |
| 117 | 117 |
| 118 DISALLOW_COPY_AND_ASSIGN(QuartcSession); | 118 DISALLOW_COPY_AND_ASSIGN(QuartcSession); |
| 119 }; | 119 }; |
| 120 | 120 |
| 121 } // namespace net | 121 } // namespace net |
| 122 | 122 |
| 123 #endif // NET_QUIC_QUARTC_QUARTC_SESSION_H_ | 123 #endif // NET_QUIC_QUARTC_QUARTC_SESSION_H_ |
| OLD | NEW |