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

Side by Side Diff: net/tools/quic/quic_server_session.h

Issue 182523002: Land Recent QUIC Changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed rch's comments in Patch set 1 of CL 181463007 Created 6 years, 9 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
« no previous file with comments | « net/tools/quic/quic_server.h ('k') | net/tools/quic/quic_server_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) 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 server specific QuicSession subclass. 5 // A server specific QuicSession subclass.
6 6
7 #ifndef NET_TOOLS_QUIC_QUIC_SERVER_SESSION_H_ 7 #ifndef NET_TOOLS_QUIC_QUIC_SERVER_SESSION_H_
8 #define NET_TOOLS_QUIC_QUIC_SERVER_SESSION_H_ 8 #define NET_TOOLS_QUIC_QUIC_SERVER_SESSION_H_
9 9
10 #include <set> 10 #include <set>
(...skipping 20 matching lines...) Expand all
31 class QuicServerSessionPeer; 31 class QuicServerSessionPeer;
32 } // namespace test 32 } // namespace test
33 33
34 // An interface from the session to the entity owning the session. 34 // An interface from the session to the entity owning the session.
35 // This lets the session notify its owner (the Dispatcher) when the connection 35 // This lets the session notify its owner (the Dispatcher) when the connection
36 // is closed or blocked. 36 // is closed or blocked.
37 class QuicServerSessionVisitor { 37 class QuicServerSessionVisitor {
38 public: 38 public:
39 virtual ~QuicServerSessionVisitor() {} 39 virtual ~QuicServerSessionVisitor() {}
40 40
41 virtual void OnConnectionClosed(QuicGuid guid, QuicErrorCode error) = 0; 41 virtual void OnConnectionClosed(QuicConnectionId connection_id,
42 QuicErrorCode error) = 0;
42 virtual void OnWriteBlocked(QuicBlockedWriterInterface* writer) = 0; 43 virtual void OnWriteBlocked(QuicBlockedWriterInterface* writer) = 0;
43 }; 44 };
44 45
45 class QuicServerSession : public QuicSession { 46 class QuicServerSession : public QuicSession {
46 public: 47 public:
47 QuicServerSession(const QuicConfig& config, 48 QuicServerSession(const QuicConfig& config,
48 QuicConnection *connection, 49 QuicConnection *connection,
49 QuicServerSessionVisitor* visitor); 50 QuicServerSessionVisitor* visitor);
50 51
51 // Override the base class to notify the owner of the connection close. 52 // Override the base class to notify the owner of the connection close.
(...skipping 28 matching lines...) Expand all
80 scoped_ptr<QuicCryptoServerStream> crypto_stream_; 81 scoped_ptr<QuicCryptoServerStream> crypto_stream_;
81 QuicServerSessionVisitor* visitor_; 82 QuicServerSessionVisitor* visitor_;
82 83
83 DISALLOW_COPY_AND_ASSIGN(QuicServerSession); 84 DISALLOW_COPY_AND_ASSIGN(QuicServerSession);
84 }; 85 };
85 86
86 } // namespace tools 87 } // namespace tools
87 } // namespace net 88 } // namespace net
88 89
89 #endif // NET_TOOLS_QUIC_QUIC_SERVER_SESSION_H_ 90 #endif // NET_TOOLS_QUIC_QUIC_SERVER_SESSION_H_
OLDNEW
« no previous file with comments | « net/tools/quic/quic_server.h ('k') | net/tools/quic/quic_server_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698