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

Side by Side Diff: net/quic/quic_session.h

Issue 393953009: Moving the work currently done in the QuicSession constructor to (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // A QuicSession, which demuxes a single connection to individual streams. 5 // A QuicSession, which demuxes a single connection to individual streams.
6 6
7 #ifndef NET_QUIC_QUIC_SESSION_H_ 7 #ifndef NET_QUIC_QUIC_SESSION_H_
8 #define NET_QUIC_QUIC_SESSION_H_ 8 #define NET_QUIC_QUIC_SESSION_H_
9 9
10 #include <vector> 10 #include <vector>
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 // connection should resend any packets that were sent under 47 // connection should resend any packets that were sent under
48 // ENCRYPTION_INITIAL. (Client only.) 48 // ENCRYPTION_INITIAL. (Client only.)
49 ENCRYPTION_REESTABLISHED, 49 ENCRYPTION_REESTABLISHED,
50 // HANDSHAKE_CONFIRMED, in a client, indicates the the server has accepted 50 // HANDSHAKE_CONFIRMED, in a client, indicates the the server has accepted
51 // our handshake. In a server it indicates that a full, valid client hello 51 // our handshake. In a server it indicates that a full, valid client hello
52 // has been received. (Client and server.) 52 // has been received. (Client and server.)
53 HANDSHAKE_CONFIRMED, 53 HANDSHAKE_CONFIRMED,
54 }; 54 };
55 55
56 QuicSession(QuicConnection* connection, const QuicConfig& config); 56 QuicSession(QuicConnection* connection, const QuicConfig& config);
57 void InitializeSession();
57 58
58 virtual ~QuicSession(); 59 virtual ~QuicSession();
59 60
60 // QuicConnectionVisitorInterface methods: 61 // QuicConnectionVisitorInterface methods:
61 virtual void OnStreamFrames( 62 virtual void OnStreamFrames(
62 const std::vector<QuicStreamFrame>& frames) OVERRIDE; 63 const std::vector<QuicStreamFrame>& frames) OVERRIDE;
63 virtual void OnRstStream(const QuicRstStreamFrame& frame) OVERRIDE; 64 virtual void OnRstStream(const QuicRstStreamFrame& frame) OVERRIDE;
64 virtual void OnGoAway(const QuicGoAwayFrame& frame) OVERRIDE; 65 virtual void OnGoAway(const QuicGoAwayFrame& frame) OVERRIDE;
65 virtual void OnWindowUpdateFrames( 66 virtual void OnWindowUpdateFrames(
66 const std::vector<QuicWindowUpdateFrame>& frames) OVERRIDE; 67 const std::vector<QuicWindowUpdateFrame>& frames) OVERRIDE;
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
321 322
322 // Used for session level flow control. 323 // Used for session level flow control.
323 scoped_ptr<QuicFlowController> flow_controller_; 324 scoped_ptr<QuicFlowController> flow_controller_;
324 325
325 DISALLOW_COPY_AND_ASSIGN(QuicSession); 326 DISALLOW_COPY_AND_ASSIGN(QuicSession);
326 }; 327 };
327 328
328 } // namespace net 329 } // namespace net
329 330
330 #endif // NET_QUIC_QUIC_SESSION_H_ 331 #endif // NET_QUIC_QUIC_SESSION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698