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

Unified Diff: net/http/http_network_session.h

Issue 2521573006: Server push cancellation: change the ownership of ServerPushDelegate to HttpNetworkSession. (Closed)
Patch Set: address comments Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | net/http/http_network_session.cc » ('j') | net/quic/chromium/quic_chromium_client_session.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_network_session.h
diff --git a/net/http/http_network_session.h b/net/http/http_network_session.h
index f45ea432d5f02a251f33f045a6cd5ff5fdcc6174..086b97154e7995d608a607d6ed224645106c2914 100644
--- a/net/http/http_network_session.h
+++ b/net/http/http_network_session.h
@@ -270,6 +270,8 @@ class NET_EXPORT HttpNetworkSession
bool IsProtocolEnabled(NextProto protocol) const;
+ void SetServerPushDelegate(std::unique_ptr<ServerPushDelegate> push_delegate);
+
// Populates |*alpn_protos| with protocols to be used with ALPN.
void GetAlpnProtos(NextProtoVector* alpn_protos) const;
@@ -304,6 +306,7 @@ class NET_EXPORT HttpNetworkSession
SSLClientAuthCache ssl_client_auth_cache_;
std::unique_ptr<ClientSocketPoolManager> normal_socket_pool_manager_;
std::unique_ptr<ClientSocketPoolManager> websocket_socket_pool_manager_;
+ std::unique_ptr<ServerPushDelegate> push_delegate_;
QuicStreamFactory quic_stream_factory_;
SpdySessionPool spdy_session_pool_;
std::unique_ptr<HttpStreamFactory> http_stream_factory_;
« no previous file with comments | « no previous file | net/http/http_network_session.cc » ('j') | net/quic/chromium/quic_chromium_client_session.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698