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

Unified Diff: net/http/http_proxy_client_socket_pool.h

Issue 517693002: Add embedder-specific headers to HTTP CONNECT tunnel request (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments from mef and mmenke Created 6 years, 3 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/http/http_proxy_client_socket_pool.h
diff --git a/net/http/http_proxy_client_socket_pool.h b/net/http/http_proxy_client_socket_pool.h
index a26c05f6603c9fbd1590eeac54682e8a830dbded..6a6a98d373ebda1db46b700a5bd42045e878bc21 100644
--- a/net/http/http_proxy_client_socket_pool.h
+++ b/net/http/http_proxy_client_socket_pool.h
@@ -28,6 +28,7 @@ namespace net {
class HostResolver;
class HttpAuthCache;
class HttpAuthHandlerFactory;
+class ProxyDelegate;
class SSLClientSocketPool;
class SSLSocketParams;
class SpdySessionPool;
@@ -51,7 +52,8 @@ class NET_EXPORT_PRIVATE HttpProxySocketParams
HttpAuthCache* http_auth_cache,
HttpAuthHandlerFactory* http_auth_handler_factory,
SpdySessionPool* spdy_session_pool,
- bool tunnel);
+ bool tunnel,
+ ProxyDelegate* proxy_delegate);
const scoped_refptr<TransportSocketParams>& transport_params() const {
return transport_params_;
@@ -73,6 +75,10 @@ class NET_EXPORT_PRIVATE HttpProxySocketParams
bool tunnel() const { return tunnel_; }
bool ignore_limits() const { return ignore_limits_; }
+ ProxyDelegate* proxy_delegate() const {
+ return proxy_delegate_;
+ }
+
private:
friend class base::RefCounted<HttpProxySocketParams>;
~HttpProxySocketParams();
@@ -87,6 +93,7 @@ class NET_EXPORT_PRIVATE HttpProxySocketParams
HttpAuthHandlerFactory* const http_auth_handler_factory_;
const bool tunnel_;
bool ignore_limits_;
+ ProxyDelegate* proxy_delegate_;
DISALLOW_COPY_AND_ASSIGN(HttpProxySocketParams);
};
@@ -186,6 +193,7 @@ class NET_EXPORT_PRIVATE HttpProxyClientSocketPool
HostResolver* host_resolver,
TransportClientSocketPool* transport_pool,
SSLClientSocketPool* ssl_pool,
+ const ProxyDelegate* proxy_delegate,
NetLog* net_log);
virtual ~HttpProxyClientSocketPool();
@@ -251,6 +259,7 @@ class NET_EXPORT_PRIVATE HttpProxyClientSocketPool
TransportClientSocketPool* transport_pool,
SSLClientSocketPool* ssl_pool,
HostResolver* host_resolver,
+ const ProxyDelegate* proxy_delegate,
NetLog* net_log);
// ClientSocketPoolBase::ConnectJobFactory methods.
@@ -265,6 +274,7 @@ class NET_EXPORT_PRIVATE HttpProxyClientSocketPool
TransportClientSocketPool* const transport_pool_;
SSLClientSocketPool* const ssl_pool_;
HostResolver* const host_resolver_;
+ const ProxyDelegate* proxy_delegate_;
NetLog* net_log_;
base::TimeDelta timeout_;

Powered by Google App Engine
This is Rietveld 408576698