Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(115)

Side by Side Diff: net/quic/quartc/quartc_session.h

Issue 2862563003: Landing Recent QUIC changes until Sat Apr 29 00:22:04 2017 +0000 (Closed)
Patch Set: rebase and fix test bugs detected by swarm bot. Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/quic/core/spdy_utils.h ('k') | net/quic/quartc/quartc_session.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « net/quic/core/spdy_utils.h ('k') | net/quic/quartc/quartc_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698