Index: net/base/net_errors.h |
diff --git a/net/base/net_errors.h b/net/base/net_errors.h |
index 12344e77609e2760ecff6ed754fdb7fc8dababb3..352d6805d5e324af042ab6b5fa3947c5ba3ccfc9 100644 |
--- a/net/base/net_errors.h |
+++ b/net/base/net_errors.h |
@@ -8,6 +8,7 @@ |
#include <vector> |
#include "base/basictypes.h" |
+#include "base/platform_file.h" |
#include "net/base/net_export.h" |
namespace net { |
@@ -50,6 +51,9 @@ NET_EXPORT Error MapSystemError(int os_error); |
// error code that is not followed immediately by a valid error code. |
std::vector<int> GetAllErrorCodesForUma(); |
+// A convenient function to translate platform file error to net error code. |
+int PlatformFileErrorToNetError(base::PlatformFileError file_error); |
willchan no longer on Chromium
2012/07/20 16:12:59
How about returning a net::Error instead? I think
nhiroki (google)
2012/07/24 13:07:57
Done.
|
+ |
} // namespace net |
#endif // NET_BASE_NET_ERRORS_H__ |