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_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/quic/core/quic_crypto_client_stream.h" | 8 #include "net/quic/core/quic_crypto_client_stream.h" |
9 #include "net/quic/core/quic_crypto_server_stream.h" | 9 #include "net/quic/core/quic_crypto_server_stream.h" |
10 #include "net/quic/core/quic_crypto_stream.h" | 10 #include "net/quic/core/quic_crypto_stream.h" |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 | 85 |
86 // Override the default crypto configuration. | 86 // Override the default crypto configuration. |
87 // The session will take the ownership of the configurations. | 87 // The session will take the ownership of the configurations. |
88 void SetClientCryptoConfig(QuicCryptoClientConfig* client_config); | 88 void SetClientCryptoConfig(QuicCryptoClientConfig* client_config); |
89 | 89 |
90 void SetServerCryptoConfig(QuicCryptoServerConfig* server_config); | 90 void SetServerCryptoConfig(QuicCryptoServerConfig* server_config); |
91 | 91 |
92 protected: | 92 protected: |
93 // QuicSession override. | 93 // QuicSession override. |
94 QuicStream* CreateIncomingDynamicStream(QuicStreamId id) override; | 94 QuicStream* CreateIncomingDynamicStream(QuicStreamId id) override; |
95 std::unique_ptr<QuicStream> CreateStream(QuicStreamId id) override; | |
96 | 95 |
97 QuartcStream* CreateDataStream(QuicStreamId id, SpdyPriority priority); | 96 QuartcStream* CreateDataStream(QuicStreamId id, SpdyPriority priority); |
98 | 97 |
99 private: | 98 private: |
100 // For crypto handshake. | 99 // For crypto handshake. |
101 std::unique_ptr<QuicCryptoStream> crypto_stream_; | 100 std::unique_ptr<QuicCryptoStream> crypto_stream_; |
102 const std::string unique_remote_server_id_; | 101 const std::string unique_remote_server_id_; |
103 Perspective perspective_; | 102 Perspective perspective_; |
104 // Take the ownership of the QuicConnection. | 103 // Take the ownership of the QuicConnection. |
105 std::unique_ptr<QuicConnection> connection_; | 104 std::unique_ptr<QuicConnection> connection_; |
(...skipping 11 matching lines...) Expand all Loading... |
117 std::unique_ptr<QuicCryptoClientConfig> quic_crypto_client_config_; | 116 std::unique_ptr<QuicCryptoClientConfig> quic_crypto_client_config_; |
118 // Config for QUIC crypto server stream, used by the server. | 117 // Config for QUIC crypto server stream, used by the server. |
119 std::unique_ptr<QuicCryptoServerConfig> quic_crypto_server_config_; | 118 std::unique_ptr<QuicCryptoServerConfig> quic_crypto_server_config_; |
120 | 119 |
121 DISALLOW_COPY_AND_ASSIGN(QuartcSession); | 120 DISALLOW_COPY_AND_ASSIGN(QuartcSession); |
122 }; | 121 }; |
123 | 122 |
124 } // namespace net | 123 } // namespace net |
125 | 124 |
126 #endif // NET_QUIC_QUARTC_QUARTC_SESSION_H_ | 125 #endif // NET_QUIC_QUARTC_QUARTC_SESSION_H_ |
OLD | NEW |