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/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 22 matching lines...) Expand all Loading... |
33 public QuicCryptoClientStream::ProofHandler { | 33 public QuicCryptoClientStream::ProofHandler { |
34 public: | 34 public: |
35 QuartcSession(std::unique_ptr<QuicConnection> connection, | 35 QuartcSession(std::unique_ptr<QuicConnection> connection, |
36 const QuicConfig& config, | 36 const QuicConfig& config, |
37 const std::string& unique_remote_server_id, | 37 const std::string& unique_remote_server_id, |
38 Perspective perspective, | 38 Perspective perspective, |
39 QuicConnectionHelperInterface* helper); | 39 QuicConnectionHelperInterface* helper); |
40 ~QuartcSession() override; | 40 ~QuartcSession() override; |
41 | 41 |
42 // QuicSession overrides. | 42 // QuicSession overrides. |
43 QuicCryptoStream* GetCryptoStream() override; | 43 const QuicCryptoStream* GetCryptoStream() const override; |
| 44 QuicCryptoStream* GetMutableCryptoStream() override; |
44 | 45 |
45 QuartcStream* CreateOutgoingDynamicStream(SpdyPriority priority) override; | 46 QuartcStream* CreateOutgoingDynamicStream(SpdyPriority priority) override; |
46 | 47 |
47 void OnCryptoHandshakeEvent(CryptoHandshakeEvent event) override; | 48 void OnCryptoHandshakeEvent(CryptoHandshakeEvent event) override; |
48 | 49 |
49 void CloseStream(QuicStreamId stream_id) override; | 50 void CloseStream(QuicStreamId stream_id) override; |
50 | 51 |
51 // QuicConnectionVisitorInterface overrides. | 52 // QuicConnectionVisitorInterface overrides. |
52 void OnConnectionClosed(QuicErrorCode error, | 53 void OnConnectionClosed(QuicErrorCode error, |
53 const std::string& error_details, | 54 const std::string& error_details, |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 std::unique_ptr<QuicCryptoClientConfig> quic_crypto_client_config_; | 116 std::unique_ptr<QuicCryptoClientConfig> quic_crypto_client_config_; |
116 // Config for QUIC crypto server stream, used by the server. | 117 // Config for QUIC crypto server stream, used by the server. |
117 std::unique_ptr<QuicCryptoServerConfig> quic_crypto_server_config_; | 118 std::unique_ptr<QuicCryptoServerConfig> quic_crypto_server_config_; |
118 | 119 |
119 DISALLOW_COPY_AND_ASSIGN(QuartcSession); | 120 DISALLOW_COPY_AND_ASSIGN(QuartcSession); |
120 }; | 121 }; |
121 | 122 |
122 } // namespace net | 123 } // namespace net |
123 | 124 |
124 #endif // NET_QUIC_QUARTC_QUARTC_SESSION_H_ | 125 #endif // NET_QUIC_QUARTC_QUARTC_SESSION_H_ |
OLD | NEW |