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

Side by Side Diff: net/base/layered_network_delegate.cc

Issue 1735203002: Revert of Moving proxy resolution logic out of NetworkDelegate and into ProxyDelegate (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 unified diff | Download patch
« no previous file with comments | « net/base/layered_network_delegate.h ('k') | net/base/layered_network_delegate_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "net/base/layered_network_delegate.h" 5 #include "net/base/layered_network_delegate.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 namespace net { 9 namespace net {
10 10
(...skipping 12 matching lines...) Expand all
23 return nested_network_delegate_->NotifyBeforeURLRequest(request, callback, 23 return nested_network_delegate_->NotifyBeforeURLRequest(request, callback,
24 new_url); 24 new_url);
25 } 25 }
26 26
27 void LayeredNetworkDelegate::OnBeforeURLRequestInternal( 27 void LayeredNetworkDelegate::OnBeforeURLRequestInternal(
28 URLRequest* request, 28 URLRequest* request,
29 const CompletionCallback& callback, 29 const CompletionCallback& callback,
30 GURL* new_url) { 30 GURL* new_url) {
31 } 31 }
32 32
33 void LayeredNetworkDelegate::OnResolveProxy(const GURL& url,
34 int load_flags,
35 const ProxyService& proxy_service,
36 ProxyInfo* result) {
37 OnResolveProxyInternal(url, load_flags, proxy_service, result);
38 nested_network_delegate_->NotifyResolveProxy(url, load_flags, proxy_service,
39 result);
40 }
41
42 void LayeredNetworkDelegate::OnResolveProxyInternal(
43 const GURL& url,
44 int load_flags,
45 const ProxyService& proxy_service,
46 ProxyInfo* result) {
47 }
48
49 void LayeredNetworkDelegate::OnProxyFallback(const ProxyServer& bad_proxy,
50 int net_error) {
51 OnProxyFallbackInternal(bad_proxy, net_error);
52 nested_network_delegate_->NotifyProxyFallback(bad_proxy, net_error);
53 }
54
55 void LayeredNetworkDelegate::OnProxyFallbackInternal(
56 const ProxyServer& bad_proxy,
57 int net_error) {
58 }
59
33 int LayeredNetworkDelegate::OnBeforeSendHeaders( 60 int LayeredNetworkDelegate::OnBeforeSendHeaders(
34 URLRequest* request, 61 URLRequest* request,
35 const CompletionCallback& callback, 62 const CompletionCallback& callback,
36 HttpRequestHeaders* headers) { 63 HttpRequestHeaders* headers) {
37 OnBeforeSendHeadersInternal(request, callback, headers); 64 OnBeforeSendHeadersInternal(request, callback, headers);
38 return nested_network_delegate_->NotifyBeforeSendHeaders(request, callback, 65 return nested_network_delegate_->NotifyBeforeSendHeaders(request, callback,
39 headers); 66 headers);
40 } 67 }
41 68
42 void LayeredNetworkDelegate::OnBeforeSendHeadersInternal( 69 void LayeredNetworkDelegate::OnBeforeSendHeadersInternal(
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 } 280 }
254 281
255 void LayeredNetworkDelegate:: 282 void LayeredNetworkDelegate::
256 OnCancelURLRequestWithPolicyViolatingReferrerHeaderInternal( 283 OnCancelURLRequestWithPolicyViolatingReferrerHeaderInternal(
257 const URLRequest& request, 284 const URLRequest& request,
258 const GURL& target_url, 285 const GURL& target_url,
259 const GURL& referrer_url) const { 286 const GURL& referrer_url) const {
260 } 287 }
261 288
262 } // namespace net 289 } // namespace net
OLDNEW
« no previous file with comments | « net/base/layered_network_delegate.h ('k') | net/base/layered_network_delegate_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698