Index: net/tools/quic/quic_server_session_base.h |
diff --git a/net/tools/quic/quic_server_session_base.h b/net/tools/quic/quic_server_session_base.h |
index 1f19de4d1160bab72dec7608bd4293420a462475..294dc480b5038b62bc59bd78ca22d1c4405563eb 100644 |
--- a/net/tools/quic/quic_server_session_base.h |
+++ b/net/tools/quic/quic_server_session_base.h |
@@ -89,6 +89,8 @@ class QuicServerSessionBase : public QuicSpdySession { |
serving_region_ = serving_region; |
} |
+ bool server_push_enabled() const { return server_push_enabled_; } |
+ |
protected: |
// QuicSession methods(override them with return type of QuicSpdyStream*): |
QuicCryptoServerStreamBase* GetCryptoStream() override; |
@@ -110,6 +112,8 @@ class QuicServerSessionBase : public QuicSpdySession { |
const QuicCryptoServerConfig* crypto_config() { return crypto_config_; } |
+ void set_server_push_enabled(bool enable) { server_push_enabled_ = enable; } |
+ |
private: |
friend class test::QuicServerSessionBasePeer; |
friend class test::QuicSimpleServerSessionPeer; |
@@ -145,6 +149,10 @@ class QuicServerSessionBase : public QuicSpdySession { |
int32_t BandwidthToCachedParameterBytesPerSecond( |
const QuicBandwidth& bandwidth); |
+ // Set during handshake. If true, resources in x-associated-content and link |
+ // headers will be pushed. see: go/gfe_server_push. |
+ bool server_push_enabled_; |
+ |
DISALLOW_COPY_AND_ASSIGN(QuicServerSessionBase); |
}; |