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

Unified Diff: net/base/net_errors.h

Issue 10808043: Factor out common error-code conversion code for PlatformFileErrorToNetError. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Modified return value type. Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | net/base/net_errors.cc » ('j') | net/base/net_errors.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/net_errors.h
diff --git a/net/base/net_errors.h b/net/base/net_errors.h
index 12344e77609e2760ecff6ed754fdb7fc8dababb3..74faa20e21d7e046a7c5d3605a4043f2b3e1c534 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.
+net::Error PlatformFileErrorToNetError(base::PlatformFileError file_error);
willchan no longer on Chromium 2012/07/24 14:45:57 No need for net:: since we're in the net namespace
nhiroki (google) 2012/07/24 16:23:03 Done.
+
} // namespace net
#endif // NET_BASE_NET_ERRORS_H__
« no previous file with comments | « no previous file | net/base/net_errors.cc » ('j') | net/base/net_errors.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698