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

Unified Diff: net/base/proxy_delegate.h

Issue 2260623002: Race TCP connection to proxies with QUIC connections (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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
« no previous file with comments | « no previous file | net/base/test_proxy_delegate.h » ('j') | net/base/test_proxy_delegate.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/proxy_delegate.h
diff --git a/net/base/proxy_delegate.h b/net/base/proxy_delegate.h
index ab6b2445f54bb3a4005a43b137e13110496ff5ee..1c5d60ac5ef86dcba5b27e9392ab07cbfb902a94 100644
--- a/net/base/proxy_delegate.h
+++ b/net/base/proxy_delegate.h
@@ -68,6 +68,21 @@ class NET_EXPORT ProxyDelegate {
// allowed to push cross-origin resources.
virtual bool IsTrustedSpdyProxy(const net::ProxyServer& proxy_server) = 0;
+ // GetAlternativeProxy is called after the proxy is resolved but before the
RyanSturm 2016/08/19 19:03:23 s/GetAlternativeProxy is called/Called
tbansal1 2016/08/20 01:53:39 Done.
+ // connection is established. |resolved_proxy_server| is the proxy server
+ // resolved by the proxy service for fetching |url|. GetAlternativeProxy
RyanSturm 2016/08/19 19:03:23 s/GetAlternativeProxy should set/ Sets
tbansal1 2016/08/20 01:53:39 Done.
+ // should set |alternative_proxy_server| to an alternative proxy server, if
+ // one is available to fetch |url|. |alternative_proxy_server| is owned by
+ // the caller, and is guaranteed to be non-null.
+ virtual void GetAlternativeProxy(
+ const GURL& url,
+ const ProxyServer& resolved_proxy_server,
+ ProxyServer* alternative_proxy_server) const {}
+
+ // Notifies the ProxyDelegate that |alternative_proxy_server| is broken.
+ virtual void OnAlternativeProxyBroken(
+ const ProxyServer& alternative_proxy_server) {}
+
private:
DISALLOW_COPY_AND_ASSIGN(ProxyDelegate);
};
« no previous file with comments | « no previous file | net/base/test_proxy_delegate.h » ('j') | net/base/test_proxy_delegate.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698