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

Unified Diff: net/tools/quic/quic_server_session.h

Issue 497553004: Landing Recent QUIC Changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase with TOT Created 6 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/tools/quic/quic_dispatcher.h ('k') | net/tools/quic/quic_server_session.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/quic/quic_server_session.h
diff --git a/net/tools/quic/quic_server_session.h b/net/tools/quic/quic_server_session.h
index 7c4dfb294f40662444e75c95dc63e49dbca4cce9..87f82d9ebde6a4eb7daedb561f8479d0b7ac7bc1 100644
--- a/net/tools/quic/quic_server_session.h
+++ b/net/tools/quic/quic_server_session.h
@@ -53,6 +53,10 @@ class QuicServerSession : public QuicSession {
virtual void OnConnectionClosed(QuicErrorCode error, bool from_peer) OVERRIDE;
virtual void OnWriteBlocked() OVERRIDE;
+ // Sends a server config update to the client, containing new bandwidth
+ // estimate.
+ virtual void OnCongestionWindowChange(QuicTime now) OVERRIDE;
+
virtual ~QuicServerSession();
virtual void InitializeSession(const QuicCryptoServerConfig& crypto_config);
@@ -64,6 +68,10 @@ class QuicServerSession : public QuicSession {
// Override base class to process FEC config received from client.
virtual void OnConfigNegotiated() OVERRIDE;
+ void set_serving_region(string serving_region) {
+ serving_region_ = serving_region;
+ }
+
protected:
// QuicSession methods:
virtual QuicDataStream* CreateIncomingDataStream(QuicStreamId id) OVERRIDE;
@@ -84,6 +92,16 @@ class QuicServerSession : public QuicSession {
scoped_ptr<QuicCryptoServerStream> crypto_stream_;
QuicServerSessionVisitor* visitor_;
+ // The most recent bandwidth estimate sent to the client.
+ QuicBandwidth bandwidth_estimate_sent_to_client_;
+
+ // Text describing server location. Sent to the client as part of the bandwith
+ // estimate in the source-address token. Optional, can be left empty.
+ string serving_region_;
+
+ // Time at which we send the last SCUP to the client.
+ QuicTime last_server_config_update_time_;
+
DISALLOW_COPY_AND_ASSIGN(QuicServerSession);
};
« no previous file with comments | « net/tools/quic/quic_dispatcher.h ('k') | net/tools/quic/quic_server_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698