| 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);
|
| };
|
|
|
|
|