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; |
95 | 96 |
96 QuartcStream* CreateDataStream(QuicStreamId id, SpdyPriority priority); | 97 QuartcStream* CreateDataStream(QuicStreamId id, SpdyPriority priority); |
97 | 98 |
98 private: | 99 private: |
99 // For crypto handshake. | 100 // For crypto handshake. |
100 std::unique_ptr<QuicCryptoStream> crypto_stream_; | 101 std::unique_ptr<QuicCryptoStream> crypto_stream_; |
101 const std::string unique_remote_server_id_; | 102 const std::string unique_remote_server_id_; |
102 Perspective perspective_; | 103 Perspective perspective_; |
103 // Take the ownership of the QuicConnection. | 104 // Take the ownership of the QuicConnection. |
104 std::unique_ptr<QuicConnection> connection_; | 105 std::unique_ptr<QuicConnection> connection_; |
(...skipping 11 matching lines...) Expand all Loading... |
116 std::unique_ptr<QuicCryptoClientConfig> quic_crypto_client_config_; | 117 std::unique_ptr<QuicCryptoClientConfig> quic_crypto_client_config_; |
117 // Config for QUIC crypto server stream, used by the server. | 118 // Config for QUIC crypto server stream, used by the server. |
118 std::unique_ptr<QuicCryptoServerConfig> quic_crypto_server_config_; | 119 std::unique_ptr<QuicCryptoServerConfig> quic_crypto_server_config_; |
119 | 120 |
120 DISALLOW_COPY_AND_ASSIGN(QuartcSession); | 121 DISALLOW_COPY_AND_ASSIGN(QuartcSession); |
121 }; | 122 }; |
122 | 123 |
123 } // namespace net | 124 } // namespace net |
124 | 125 |
125 #endif // NET_QUIC_QUARTC_QUARTC_SESSION_H_ | 126 #endif // NET_QUIC_QUARTC_QUARTC_SESSION_H_ |
OLD | NEW |