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

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

Issue 473513002: Keep track of network error in ProxyRetryInfo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Minor formatting. Created 6 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/network_delegate.h" 5 #include "net/base/network_delegate.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "net/base/load_flags.h" 8 #include "net/base/load_flags.h"
9 #include "net/base/net_errors.h" 9 #include "net/base/net_errors.h"
10 #include "net/proxy/proxy_info.h" 10 #include "net/proxy/proxy_info.h"
(...skipping 12 matching lines...) Expand all
23 23
24 void NetworkDelegate::NotifyResolveProxy(const GURL& url, int load_flags, 24 void NetworkDelegate::NotifyResolveProxy(const GURL& url, int load_flags,
25 ProxyInfo* result) { 25 ProxyInfo* result) {
26 DCHECK(CalledOnValidThread()); 26 DCHECK(CalledOnValidThread());
27 DCHECK(result); 27 DCHECK(result);
28 OnResolveProxy(url, load_flags, result); 28 OnResolveProxy(url, load_flags, result);
29 } 29 }
30 30
31 void NetworkDelegate::NotifyProxyFallback( 31 void NetworkDelegate::NotifyProxyFallback(
32 const ProxyServer& bad_proxy, 32 const ProxyServer& bad_proxy,
33 int net_error, 33 int net_error) {
34 bool did_fallback) {
35 DCHECK(CalledOnValidThread()); 34 DCHECK(CalledOnValidThread());
36 OnProxyFallback(bad_proxy, net_error, did_fallback); 35 OnProxyFallback(bad_proxy, net_error);
37 } 36 }
38 37
39 int NetworkDelegate::NotifyBeforeSendHeaders( 38 int NetworkDelegate::NotifyBeforeSendHeaders(
40 URLRequest* request, const CompletionCallback& callback, 39 URLRequest* request, const CompletionCallback& callback,
41 HttpRequestHeaders* headers) { 40 HttpRequestHeaders* headers) {
42 DCHECK(CalledOnValidThread()); 41 DCHECK(CalledOnValidThread());
43 DCHECK(headers); 42 DCHECK(headers);
44 DCHECK(!callback.is_null()); 43 DCHECK(!callback.is_null());
45 return OnBeforeSendHeaders(request, callback, headers); 44 return OnBeforeSendHeaders(request, callback, headers);
46 } 45 }
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 const CompletionCallback& callback, 167 const CompletionCallback& callback,
169 GURL* new_url) { 168 GURL* new_url) {
170 return OK; 169 return OK;
171 } 170 }
172 171
173 void NetworkDelegate::OnResolveProxy(const GURL& url, int load_flags, 172 void NetworkDelegate::OnResolveProxy(const GURL& url, int load_flags,
174 ProxyInfo* result) { 173 ProxyInfo* result) {
175 } 174 }
176 175
177 void NetworkDelegate::OnProxyFallback(const ProxyServer& bad_proxy, 176 void NetworkDelegate::OnProxyFallback(const ProxyServer& bad_proxy,
178 int net_error, 177 int net_error) {
179 bool did_fallback) {
180 } 178 }
181 179
182 int NetworkDelegate::OnBeforeSendHeaders(URLRequest* request, 180 int NetworkDelegate::OnBeforeSendHeaders(URLRequest* request,
183 const CompletionCallback& callback, 181 const CompletionCallback& callback,
184 HttpRequestHeaders* headers) { 182 HttpRequestHeaders* headers) {
185 return OK; 183 return OK;
186 } 184 }
187 185
188 void NetworkDelegate::OnBeforeSendProxyHeaders( 186 void NetworkDelegate::OnBeforeSendProxyHeaders(
189 URLRequest* request, 187 URLRequest* request,
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 return false; 257 return false;
260 } 258 }
261 259
262 int NetworkDelegate::OnBeforeSocketStreamConnect( 260 int NetworkDelegate::OnBeforeSocketStreamConnect(
263 SocketStream* socket, 261 SocketStream* socket,
264 const CompletionCallback& callback) { 262 const CompletionCallback& callback) {
265 return OK; 263 return OK;
266 } 264 }
267 265
268 } // namespace net 266 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698