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

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

Issue 1874613002: relnote: add connection option "SPSH" to indicate whether client wants to do server push or not, wh… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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/end_to_end_test.cc ('k') | net/tools/quic/quic_server_session_base.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_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);
};
« no previous file with comments | « net/tools/quic/end_to_end_test.cc ('k') | net/tools/quic/quic_server_session_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698