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

Unified Diff: net/quic/chromium/quic_stream_factory.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
Index: net/quic/chromium/quic_stream_factory.h
diff --git a/net/quic/chromium/quic_stream_factory.h b/net/quic/chromium/quic_stream_factory.h
index afe0836afaba889415e66b55fdf4428b785eb156..e1964fb19617d8607ae367b7a4a8f646e11748db 100644
--- a/net/quic/chromium/quic_stream_factory.h
+++ b/net/quic/chromium/quic_stream_factory.h
@@ -378,6 +378,10 @@ class NET_EXPORT_PRIVATE QuicStreamFactory
void set_quic_server_info_factory(
QuicServerInfoFactory* quic_server_info_factory);
+ void set_server_push_delegate(ServerPushDelegate* push_delegate) {
+ push_delegate_ = push_delegate;
+ }
+
bool enable_connection_racing() const { return enable_connection_racing_; }
void set_enable_connection_racing(bool enable_connection_racing) {
enable_connection_racing_ = enable_connection_racing;
@@ -502,6 +506,7 @@ class NET_EXPORT_PRIVATE QuicStreamFactory
HostResolver* host_resolver_;
ClientSocketFactory* client_socket_factory_;
HttpServerProperties* http_server_properties_;
+ ServerPushDelegate* push_delegate_;
ProxyDelegate* proxy_delegate_;
TransportSecurityState* transport_security_state_;
CTVerifier* cert_transparency_verifier_;

Powered by Google App Engine
This is Rietveld 408576698