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

Unified Diff: net/spdy/spdy_session_pool.h

Issue 1547273003: Set trusted SPDY proxy dynamically on per-profile basis (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated based on design doc discussion Created 4 years, 11 months 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 0b0f97edb81d0c26d3e117a1c51238efe2070340..1a47e425e2b0cf63eff13016dac3e64bb1169b83 100644
--- a/net/spdy/spdy_session_pool.h
+++ b/net/spdy/spdy_session_pool.h
@@ -34,6 +34,7 @@ class BoundNetLog;
class ClientSocketHandle;
class HostResolver;
class HttpServerProperties;
+class ProxyDelegate;
class SpdySession;
class TransportSecurityState;
@@ -60,7 +61,7 @@ class NET_EXPORT SpdySessionPool
size_t stream_max_recv_window_size,
size_t initial_max_concurrent_streams,
SpdySessionPool::TimeFunc time_func,
- const std::string& trusted_spdy_proxy);
+ const ProxyDelegate* proxy_delegate);
~SpdySessionPool() override;
// In the functions below, a session is "available" if this pool has
@@ -217,9 +218,10 @@ class NET_EXPORT SpdySessionPool
size_t initial_max_concurrent_streams_;
TimeFunc time_func_;
- // This SPDY proxy is allowed to push resources from origins that are
- // different from those of their associated streams.
- HostPortPair trusted_spdy_proxy_;
+ // Verifies if a given proxy is a trusted SPDY proxy which is allowed to push
+ // resources from origins that are different from those of their associated
+ // streams in non-incognito sessions. May be NULL.
+ const ProxyDelegate* proxy_delegate_;
bengr 2016/01/26 23:23:26 // Determines if a proxy is a trusted SPDY proxy,
tbansal1 2016/01/27 00:13:34 Done.
DISALLOW_COPY_AND_ASSIGN(SpdySessionPool);
};

Powered by Google App Engine
This is Rietveld 408576698