OLD | NEW |
---|---|
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 Loading... | |
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. | |
bengr
2014/06/05 17:26:24
More specifically, "Bypass the proxy because we go
Not at Google. Contact bengr
2014/06/05 17:51:53
Done.
| |
296 PROXY_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 Loading... | |
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_ |
OLD | NEW |