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

Unified Diff: net/base/layered_network_delegate.h

Issue 1680893002: Moving proxy resolution logic out of NetworkDelegate and into ProxyDelegate for DataReductionProxy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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/layered_network_delegate.h
diff --git a/net/base/layered_network_delegate.h b/net/base/layered_network_delegate.h
index 9f0928e7d1b3d43ee4bae02a72421b54b2e660cb..24c85e2ea683babc2efe955d101de35dc3367457 100644
--- a/net/base/layered_network_delegate.h
+++ b/net/base/layered_network_delegate.h
@@ -36,25 +36,20 @@ class URLRequest;
class NET_EXPORT LayeredNetworkDelegate : public NetworkDelegate {
public:
explicit LayeredNetworkDelegate(
scoped_ptr<NetworkDelegate> nested_network_delegate);
~LayeredNetworkDelegate() override;
// NetworkDelegate implementation:
int OnBeforeURLRequest(URLRequest* request,
const CompletionCallback& callback,
GURL* new_url) final;
- void OnResolveProxy(const GURL& url,
- int load_flags,
- const ProxyService& proxy_service,
- ProxyInfo* result) final;
- void OnProxyFallback(const ProxyServer& bad_proxy, int net_error) final;
int OnBeforeSendHeaders(URLRequest* request,
const CompletionCallback& callback,
HttpRequestHeaders* headers) final;
void OnBeforeSendProxyHeaders(URLRequest* request,
const ProxyInfo& proxy_info,
HttpRequestHeaders* headers) final;
void OnSendHeaders(URLRequest* request,
const HttpRequestHeaders& headers) final;
int OnHeadersReceived(
URLRequest* request,
@@ -88,28 +83,20 @@ class NET_EXPORT LayeredNetworkDelegate : public NetworkDelegate {
bool OnCancelURLRequestWithPolicyViolatingReferrerHeader(
const URLRequest& request,
const GURL& target_url,
const GURL& referrer_url) const final;
protected:
virtual void OnBeforeURLRequestInternal(URLRequest* request,
const CompletionCallback& callback,
GURL* new_url);
- virtual void OnResolveProxyInternal(const GURL& url,
- int load_flags,
- const ProxyService& proxy_service,
- ProxyInfo* result);
-
- virtual void OnProxyFallbackInternal(const ProxyServer& bad_proxy,
- int net_error);
-
virtual void OnBeforeSendHeadersInternal(URLRequest* request,
const CompletionCallback& callback,
HttpRequestHeaders* headers);
virtual void OnBeforeSendProxyHeadersInternal(URLRequest* request,
const ProxyInfo& proxy_info,
HttpRequestHeaders* headers);
virtual void OnSendHeadersInternal(URLRequest* request,
const HttpRequestHeaders& headers);

Powered by Google App Engine
This is Rietveld 408576698