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

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

Issue 734063004: Update from https://crrev.com/304418 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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/tools/quic/quic_dispatcher.cc ('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 29 matching lines...) Expand all
40 40
41 virtual void OnConnectionClosed(QuicConnectionId connection_id, 41 virtual void OnConnectionClosed(QuicConnectionId connection_id,
42 QuicErrorCode error) = 0; 42 QuicErrorCode error) = 0;
43 virtual void OnWriteBlocked(QuicBlockedWriterInterface* blocked_writer) = 0; 43 virtual void OnWriteBlocked(QuicBlockedWriterInterface* blocked_writer) = 0;
44 }; 44 };
45 45
46 class QuicServerSession : public QuicSession { 46 class QuicServerSession : public QuicSession {
47 public: 47 public:
48 QuicServerSession(const QuicConfig& config, 48 QuicServerSession(const QuicConfig& config,
49 QuicConnection* connection, 49 QuicConnection* connection,
50 QuicServerSessionVisitor* visitor, 50 QuicServerSessionVisitor* visitor);
51 bool is_secure);
52 51
53 // 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.
54 void OnConnectionClosed(QuicErrorCode error, bool from_peer) override; 53 void OnConnectionClosed(QuicErrorCode error, bool from_peer) override;
55 void OnWriteBlocked() override; 54 void OnWriteBlocked() override;
56 55
57 // Sends a server config update to the client, containing new bandwidth 56 // Sends a server config update to the client, containing new bandwidth
58 // estimate. 57 // estimate.
59 void OnCongestionWindowChange(QuicTime now) override; 58 void OnCongestionWindowChange(QuicTime now) override;
60 59
61 ~QuicServerSession() override; 60 ~QuicServerSession() override;
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 // Number of packets sent to the peer, at the time we last sent a SCUP. 105 // Number of packets sent to the peer, at the time we last sent a SCUP.
107 int64 last_scup_sequence_number_; 106 int64 last_scup_sequence_number_;
108 107
109 DISALLOW_COPY_AND_ASSIGN(QuicServerSession); 108 DISALLOW_COPY_AND_ASSIGN(QuicServerSession);
110 }; 109 };
111 110
112 } // namespace tools 111 } // namespace tools
113 } // namespace net 112 } // namespace net
114 113
115 #endif // NET_TOOLS_QUIC_QUIC_SERVER_SESSION_H_ 114 #endif // NET_TOOLS_QUIC_QUIC_SERVER_SESSION_H_
OLDNEW
« no previous file with comments | « net/tools/quic/quic_dispatcher.cc ('k') | net/tools/quic/quic_server_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698