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

Side by Side Diff: ios/web/web_state/error_translation_util.h

Issue 1178063007: Updated error translation logic. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
« no previous file with comments | « base/ios/ns_error_util.mm ('k') | ios/web/web_state/error_translation_util.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 IOS_WEB_WEB_STATE_ERROR_TRANSLATION_UTIL_H_ 5 #ifndef IOS_WEB_WEB_STATE_ERROR_TRANSLATION_UTIL_H_
6 #define IOS_WEB_WEB_STATE_ERROR_TRANSLATION_UTIL_H_ 6 #define IOS_WEB_WEB_STATE_ERROR_TRANSLATION_UTIL_H_
7 7
8 #import <Foundation/Foundation.h> 8 #import <Foundation/Foundation.h>
9 9
10 namespace web { 10 namespace web {
11 11
12 // Translates iOS-specific errors into their net error equivalent. If a valid 12 // Translates iOS-specific errors into their net error equivalent. If a valid
13 // translation is found, a copy of |error| is returned with the translation as 13 // translation is found, a copy of |error| is returned with the translation as
14 // its underlying error. If there is no viable translation, the original error 14 // its final underlying error. If there is no viable translation, the original
15 // is returned. 15 // error is returned.
16 NSError* NetErrorFromError(NSError* error); 16 NSError* NetErrorFromError(NSError* error);
17 17
18 } // namespace web 18 } // namespace web
19 19
20 #endif // IOS_WEB_WEB_STATE_ERROR_TRANSLATION_UTIL_H_ 20 #endif // IOS_WEB_WEB_STATE_ERROR_TRANSLATION_UTIL_H_
OLDNEW
« no previous file with comments | « base/ios/ns_error_util.mm ('k') | ios/web/web_state/error_translation_util.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698