Fix breakages in https://codereview.chromium.org/1155713003/
[chromium-blink-merge.git] / ios / web / web_state / error_translation_util.h
blob857b4aa604fa4b02717c938ec988eb26241bbe86
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.
5 #ifndef IOS_WEB_WEB_STATE_ERROR_TRANSLATION_UTIL_H_
6 #define IOS_WEB_WEB_STATE_ERROR_TRANSLATION_UTIL_H_
8 #import <Foundation/Foundation.h>
10 namespace web {
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
14 // its underlying error. If there is no viable translation, the original error
15 // is returned.
16 NSError* NetErrorFromError(NSError* error);
18 } // namespace web
20 #endif // IOS_WEB_WEB_STATE_ERROR_TRANSLATION_UTIL_H_