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

Unified Diff: net/spdy/spdy_session_pool.h

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/spdy/spdy_session.cc ('k') | net/spdy/spdy_session_pool.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/spdy_session_pool.h
diff --git a/net/spdy/spdy_session_pool.h b/net/spdy/spdy_session_pool.h
index 744f2c0eb5542bf3368541c5181b077be37631f6..940cde636fbcdb22bd1276a22f2982bdd7e30a67 100644
--- a/net/spdy/spdy_session_pool.h
+++ b/net/spdy/spdy_session_pool.h
@@ -23,6 +23,7 @@
#include "net/cert/cert_database.h"
#include "net/proxy/proxy_config.h"
#include "net/proxy/proxy_server.h"
+#include "net/spdy/server_push_delegate.h"
#include "net/spdy/spdy_session_key.h"
#include "net/ssl/ssl_config_service.h"
@@ -131,6 +132,10 @@ class NET_EXPORT SpdySessionPool
return http_server_properties_;
}
+ void set_server_push_delegate(ServerPushDelegate* push_delegate) {
+ push_delegate_ = push_delegate;
+ }
+
// NetworkChangeNotifier::IPAddressObserver methods:
// We flush all idle sessions and release references to the active ones so
@@ -226,6 +231,7 @@ class NET_EXPORT SpdySessionPool
size_t session_max_recv_window_size_;
size_t stream_max_recv_window_size_;
TimeFunc time_func_;
+ ServerPushDelegate* push_delegate_;
// Determines if a proxy is a trusted SPDY proxy, which is allowed to push
// resources from origins that are different from those of their associated
« no previous file with comments | « net/spdy/spdy_session.cc ('k') | net/spdy/spdy_session_pool.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698