Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef IOS_WEB_PUBLIC_WEB_STATE_ERROR_TRANSLATION_UTIL_H_ | |
| 6 #define IOS_WEB_PUBLIC_WEB_STATE_ERROR_TRANSLATION_UTIL_H_ | |
| 7 | |
| 8 #import <Foundation/Foundation.h> | |
| 9 | |
| 10 namespace web { | |
| 11 | |
| 12 // Iterates through |error|'s underlying errors and returns the first error for | |
| 13 // which there is no underlying error. | |
| 14 NSError* GetUltimateUnderlyingErrorForError(NSError* error); | |
|
Eugene But (OOO till 7-30)
2015/06/19 00:52:01
NIT: How about Final instead of Ultimate?
Eugene But (OOO till 7-30)
2015/06/19 00:52:01
NIT: s/For/From
kkhorimoto
2015/06/23 20:33:58
Done.
| |
| 15 | |
| 16 // Translates iOS-specific errors into their net error equivalent. If a valid | |
| 17 // translation is found, a copy of |error| is returned with the translation as | |
| 18 // its ultimate underlying error. If there is no viable translation, the | |
| 19 // original error is returned. | |
| 20 NSError* NetErrorFromError(NSError* error); | |
|
Eugene But (OOO till 7-30)
2015/06/19 00:52:01
I believe this method should not be a part of web'
kkhorimoto
2015/06/23 20:33:58
The main reason I moved these files to the public
| |
| 21 | |
| 22 } // namespace web | |
| 23 | |
| 24 #endif // IOS_WEB_PUBLIC_WEB_STATE_ERROR_TRANSLATION_UTIL_H_ | |
| OLD | NEW |