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

Unified Diff: net/spdy/spdy_session_pool.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/spdy/spdy_session_pool.h
diff --git a/net/spdy/spdy_session_pool.h b/net/spdy/spdy_session_pool.h
index 09df36536e26a9e45355fc517665bd4757b3e64b..282c242599ae63900ae6d8dd9967388e7fe085aa 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"
@@ -126,6 +127,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
@@ -218,6 +223,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

Powered by Google App Engine
This is Rietveld 408576698