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

Unified Diff: net/base/layered_network_delegate.cc

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.cc
diff --git a/net/base/layered_network_delegate.cc b/net/base/layered_network_delegate.cc
index 9fe37196ccdaa73c3635baf863f3a1aaffce072c..d97496205f92e78029e7eb7e023e9f782efaf560 100644
--- a/net/base/layered_network_delegate.cc
+++ b/net/base/layered_network_delegate.cc
@@ -23,47 +23,20 @@ int LayeredNetworkDelegate::OnBeforeURLRequest(
return nested_network_delegate_->NotifyBeforeURLRequest(request, callback,
new_url);
}
void LayeredNetworkDelegate::OnBeforeURLRequestInternal(
URLRequest* request,
const CompletionCallback& callback,
GURL* new_url) {
}
-void LayeredNetworkDelegate::OnResolveProxy(const GURL& url,
- int load_flags,
- const ProxyService& proxy_service,
- ProxyInfo* result) {
- OnResolveProxyInternal(url, load_flags, proxy_service, result);
- nested_network_delegate_->NotifyResolveProxy(url, load_flags, proxy_service,
- result);
-}
-
-void LayeredNetworkDelegate::OnResolveProxyInternal(
- const GURL& url,
- int load_flags,
- const ProxyService& proxy_service,
- ProxyInfo* result) {
-}
-
-void LayeredNetworkDelegate::OnProxyFallback(const ProxyServer& bad_proxy,
- int net_error) {
- OnProxyFallbackInternal(bad_proxy, net_error);
- nested_network_delegate_->NotifyProxyFallback(bad_proxy, net_error);
-}
-
-void LayeredNetworkDelegate::OnProxyFallbackInternal(
- const ProxyServer& bad_proxy,
- int net_error) {
-}
-
int LayeredNetworkDelegate::OnBeforeSendHeaders(
URLRequest* request,
const CompletionCallback& callback,
HttpRequestHeaders* headers) {
OnBeforeSendHeadersInternal(request, callback, headers);
return nested_network_delegate_->NotifyBeforeSendHeaders(request, callback,
headers);
}
void LayeredNetworkDelegate::OnBeforeSendHeadersInternal(

Powered by Google App Engine
This is Rietveld 408576698