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

Side by Side Diff: components/cronet/android/url_request_error.cc

Issue 2069303002: Add new Cronet exception class for QUIC errors (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: header Created 4 years, 5 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "components/cronet/android/url_request_error.h" 5 #include "components/cronet/android/url_request_error.h"
6 6
7 #include "net/base/net_errors.h" 7 #include "net/base/net_errors.h"
8 8
9 namespace cronet { 9 namespace cronet {
10 10
(...skipping 10 matching lines...) Expand all
21 case net::ERR_CONNECTION_CLOSED: 21 case net::ERR_CONNECTION_CLOSED:
22 return CONNECTION_CLOSED; 22 return CONNECTION_CLOSED;
23 case net::ERR_CONNECTION_TIMED_OUT: 23 case net::ERR_CONNECTION_TIMED_OUT:
24 return CONNECTION_TIMED_OUT; 24 return CONNECTION_TIMED_OUT;
25 case net::ERR_CONNECTION_REFUSED: 25 case net::ERR_CONNECTION_REFUSED:
26 return CONNECTION_REFUSED; 26 return CONNECTION_REFUSED;
27 case net::ERR_CONNECTION_RESET: 27 case net::ERR_CONNECTION_RESET:
28 return CONNECTION_RESET; 28 return CONNECTION_RESET;
29 case net::ERR_ADDRESS_UNREACHABLE: 29 case net::ERR_ADDRESS_UNREACHABLE:
30 return ADDRESS_UNREACHABLE; 30 return ADDRESS_UNREACHABLE;
31 case net::ERR_QUIC_PROTOCOL_ERROR:
32 return QUIC_PROTOCOL_FAILED;
31 default: 33 default:
32 return OTHER; 34 return OTHER;
33 } 35 }
34 } 36 }
35 37
36 } // namespace cronet 38 } // namespace cronet
OLDNEW
« no previous file with comments | « components/cronet/android/url_request_error.h ('k') | net/test/url_request/url_request_failed_job.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698