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

Unified Diff: net/base/test_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
Index: net/base/test_proxy_delegate.h
diff --git a/net/base/test_proxy_delegate.h b/net/base/test_proxy_delegate.h
index 0a045a1722892a08d22ad2c286a4e9249d4b536c..6fa02016e076f1e6f380aafae58dc493f04c29d0 100644
--- a/net/base/test_proxy_delegate.h
+++ b/net/base/test_proxy_delegate.h
@@ -65,6 +65,17 @@ class TestProxyDelegate : public ProxyDelegate {
const HostPortPair& proxy_server,
const HttpResponseHeaders& response_headers) override;
bool IsTrustedSpdyProxy(const net::ProxyServer& proxy_server) override;
+ void GetAlternativeProxy(
+ const GURL& url,
+ const ProxyServer& resolved_proxy_server,
+ ProxyServer* alternative_proxy_server) const override;
+ void OnAlternativeProxyBroken(
+ const ProxyServer& alternative_proxy_server) override;
+
+ void SetAlternativeProxy(const ProxyServer& alternative_proxy_server);
RyanSturm 2016/08/19 19:03:23 Can this be inlined like alternative_proxy_server(
tbansal1 2016/08/20 01:53:39 Done.
+ const ProxyServer& alternative_proxy_server() const {
+ return alternative_proxy_server_;
+ }
private:
bool on_before_tunnel_request_called_;
@@ -76,6 +87,7 @@ class TestProxyDelegate : public ProxyDelegate {
HostPortPair on_tunnel_headers_received_origin_;
HostPortPair on_tunnel_headers_received_proxy_server_;
std::string on_tunnel_headers_received_status_line_;
+ ProxyServer alternative_proxy_server_;
};
} // namespace net

Powered by Google App Engine
This is Rietveld 408576698