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

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

Issue 693943003: Update from https://crrev.com/302630 (Closed) Base URL: git@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/quic/quic_sent_packet_manager_test.cc ('k') | net/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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_QUIC_QUIC_SERVER_SESSION_H_ 7 #ifndef NET_QUIC_QUIC_SERVER_SESSION_H_
8 #define NET_QUIC_QUIC_SERVER_SESSION_H_ 8 #define NET_QUIC_QUIC_SERVER_SESSION_H_
9 9
10 #include <set> 10 #include <set>
11 #include <vector> 11 #include <vector>
12 12
13 #include "base/basictypes.h" 13 #include "base/basictypes.h"
14 #include "base/containers/hash_tables.h" 14 #include "base/containers/hash_tables.h"
15 #include "base/memory/scoped_ptr.h" 15 #include "base/memory/scoped_ptr.h"
16 #include "net/quic/quic_crypto_server_stream.h" 16 #include "net/quic/quic_crypto_server_stream.h"
17 #include "net/quic/quic_per_connection_packet_writer.h" 17 #include "net/quic/quic_per_connection_packet_writer.h"
18 #include "net/quic/quic_protocol.h" 18 #include "net/quic/quic_protocol.h"
19 #include "net/quic/quic_session.h" 19 #include "net/quic/quic_session.h"
20 20
21 namespace net { 21 namespace net {
22 22
23 namespace test {
24 class QuicServerSessionPeer;
25 } // namespace test
26
23 class QuicBlockedWriterInterface; 27 class QuicBlockedWriterInterface;
24 class QuicConfig; 28 class QuicConfig;
25 class QuicConnection; 29 class QuicConnection;
26 class QuicCryptoServerConfig; 30 class QuicCryptoServerConfig;
27 class ReliableQuicStream; 31 class ReliableQuicStream;
28 32
29 namespace test {
30 class QuicServerSessionPeer;
31 } // namespace test
32
33 // An interface from the session to the entity owning the session. 33 // An interface from the session to the entity owning the session.
34 // This lets the session notify its owner (the Dispatcher) when the connection 34 // This lets the session notify its owner (the Dispatcher) when the connection
35 // is closed or blocked. 35 // is closed or blocked.
36 class QuicServerSessionVisitor { 36 class QuicServerSessionVisitor {
37 public: 37 public:
38 virtual ~QuicServerSessionVisitor() {} 38 virtual ~QuicServerSessionVisitor() {}
39 39
40 virtual void OnConnectionClosed(QuicConnectionId connection_id, 40 virtual void OnConnectionClosed(QuicConnectionId connection_id,
41 QuicErrorCode error) = 0; 41 QuicErrorCode error) = 0;
42 virtual void OnWriteBlocked(QuicBlockedWriterInterface* blocked_writer) = 0; 42 virtual void OnWriteBlocked(QuicBlockedWriterInterface* blocked_writer) = 0;
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 QuicServerSessionVisitor* visitor_; 92 QuicServerSessionVisitor* visitor_;
93 93
94 // The most recent bandwidth estimate sent to the client. 94 // The most recent bandwidth estimate sent to the client.
95 QuicBandwidth bandwidth_estimate_sent_to_client_; 95 QuicBandwidth bandwidth_estimate_sent_to_client_;
96 96
97 // Text describing server location. Sent to the client as part of the bandwith 97 // Text describing server location. Sent to the client as part of the bandwith
98 // estimate in the source-address token. Optional, can be left empty. 98 // estimate in the source-address token. Optional, can be left empty.
99 string serving_region_; 99 string serving_region_;
100 100
101 // Time at which we send the last SCUP to the client. 101 // Time at which we send the last SCUP to the client.
102 QuicTime last_server_config_update_time_; 102 QuicTime last_scup_time_;
103
104 // Number of packets sent to the peer, at the time we last sent a SCUP.
105 int64 last_scup_sequence_number_;
103 106
104 DISALLOW_COPY_AND_ASSIGN(QuicServerSession); 107 DISALLOW_COPY_AND_ASSIGN(QuicServerSession);
105 }; 108 };
106 109
107 } // namespace net 110 } // namespace net
108 111
109 #endif // NET_QUIC_QUIC_SERVER_SESSION_H_ 112 #endif // NET_QUIC_QUIC_SERVER_SESSION_H_
OLDNEW
« no previous file with comments | « net/quic/quic_sent_packet_manager_test.cc ('k') | net/quic/quic_server_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698