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

Unified Diff: net/quic/chromium/quic_stream_factory.cc

Issue 2521573006: Server push cancellation: change the ownership of ServerPushDelegate to HttpNetworkSession. (Closed)
Patch Set: rebase Created 4 years 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/quic/chromium/quic_stream_factory.h ('k') | net/spdy/spdy_session.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/chromium/quic_stream_factory.cc
diff --git a/net/quic/chromium/quic_stream_factory.cc b/net/quic/chromium/quic_stream_factory.cc
index 92339d535a46b1133a0eca1d68ade0e8086ecf35..42b1195cef1adc705ff8d758fc1bc015cf5d1e80 100644
--- a/net/quic/chromium/quic_stream_factory.cc
+++ b/net/quic/chromium/quic_stream_factory.cc
@@ -746,6 +746,7 @@ QuicStreamFactory::QuicStreamFactory(
host_resolver_(host_resolver),
client_socket_factory_(client_socket_factory),
http_server_properties_(http_server_properties),
+ push_delegate_(nullptr),
proxy_delegate_(proxy_delegate),
transport_security_state_(transport_security_state),
cert_transparency_verifier_(cert_transparency_verifier),
@@ -1684,7 +1685,8 @@ int QuicStreamFactory::CreateSession(
server_id, yield_after_packets_, yield_after_duration_, cert_verify_flags,
config, &crypto_config_, network_connection_.GetDescription(),
dns_resolution_start_time, dns_resolution_end_time, &push_promise_index_,
- task_runner_, std::move(socket_performance_watcher), net_log.net_log());
+ push_delegate_, task_runner_, std::move(socket_performance_watcher),
+ net_log.net_log());
all_sessions_[*session] = key; // owning pointer
writer->set_delegate(*session);
« no previous file with comments | « net/quic/chromium/quic_stream_factory.h ('k') | net/spdy/spdy_session.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698