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

Side by Side 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 unified diff | Download patch
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
60 int LayeredNetworkDelegate::OnBeforeSendHeaders( 33 int LayeredNetworkDelegate::OnBeforeSendHeaders(
61 URLRequest* request, 34 URLRequest* request,
62 const CompletionCallback& callback, 35 const CompletionCallback& callback,
63 HttpRequestHeaders* headers) { 36 HttpRequestHeaders* headers) {
64 OnBeforeSendHeadersInternal(request, callback, headers); 37 OnBeforeSendHeadersInternal(request, callback, headers);
65 return nested_network_delegate_->NotifyBeforeSendHeaders(request, callback, 38 return nested_network_delegate_->NotifyBeforeSendHeaders(request, callback,
66 headers); 39 headers);
67 } 40 }
68 41
69 void LayeredNetworkDelegate::OnBeforeSendHeadersInternal( 42 void LayeredNetworkDelegate::OnBeforeSendHeadersInternal(
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 } 253 }
281 254
282 void LayeredNetworkDelegate:: 255 void LayeredNetworkDelegate::
283 OnCancelURLRequestWithPolicyViolatingReferrerHeaderInternal( 256 OnCancelURLRequestWithPolicyViolatingReferrerHeaderInternal(
284 const URLRequest& request, 257 const URLRequest& request,
285 const GURL& target_url, 258 const GURL& target_url,
286 const GURL& referrer_url) const { 259 const GURL& referrer_url) const {
287 } 260 }
288 261
289 } // namespace net 262 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698