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

Side by Side Diff: net/proxy/proxy_service.h

Issue 314173002: Bypass data reduction proxy if no handler is found for a 407 error. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@benpatch
Patch Set: Added TODO as suggested by bengr. Created 6 years, 6 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 #ifndef NET_PROXY_PROXY_SERVICE_H_ 5 #ifndef NET_PROXY_PROXY_SERVICE_H_
6 #define NET_PROXY_PROXY_SERVICE_H_ 6 #define NET_PROXY_PROXY_SERVICE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 285
286 // Bypass the proxy because of any other error. 286 // Bypass the proxy because of any other error.
287 ERROR_BYPASS, 287 ERROR_BYPASS,
288 288
289 // Bypass the proxy because responses appear not to be coming via it. 289 // Bypass the proxy because responses appear not to be coming via it.
290 MISSING_VIA_HEADER, 290 MISSING_VIA_HEADER,
291 291
292 // Bypass the proxy because the proxy, not the origin, sent a 4xx response. 292 // Bypass the proxy because the proxy, not the origin, sent a 4xx response.
293 PROXY_4XX_BYPASS, 293 PROXY_4XX_BYPASS,
294 294
295 // Bypass the proxy because we got a 407 from the proxy without a challenge.
296 MALFORMED_407_BYPASS,
297
295 // This must always be last. 298 // This must always be last.
296 BYPASS_EVENT_TYPE_MAX 299 BYPASS_EVENT_TYPE_MAX
297 }; 300 };
298 301
299 // Records a |DataReductionProxyBypassEventType| for either the data reduction 302 // Records a |DataReductionProxyBypassEventType| for either the data reduction
300 // proxy (|is_primary| is true) or the data reduction proxy fallback. 303 // proxy (|is_primary| is true) or the data reduction proxy fallback.
301 void RecordDataReductionProxyBypassInfo( 304 void RecordDataReductionProxyBypassInfo(
302 bool is_primary, 305 bool is_primary,
303 const ProxyServer& proxy_server, 306 const ProxyServer& proxy_server,
304 DataReductionProxyBypassEventType bypass_type) const; 307 DataReductionProxyBypassEventType bypass_type) const;
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
492 495
493 base::WaitableEvent event_; 496 base::WaitableEvent event_;
494 CompletionCallback callback_; 497 CompletionCallback callback_;
495 ProxyInfo proxy_info_; 498 ProxyInfo proxy_info_;
496 int result_; 499 int result_;
497 }; 500 };
498 501
499 } // namespace net 502 } // namespace net
500 503
501 #endif // NET_PROXY_PROXY_SERVICE_H_ 504 #endif // NET_PROXY_PROXY_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698