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

Side by Side Diff: net/base/net_errors.h

Issue 1535363003: Switch to standard integer types in net/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: stddef Created 5 years 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 | « net/base/mock_file_stream.h ('k') | net/base/net_module.h » ('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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 NET_BASE_NET_ERRORS_H__ 5 #ifndef NET_BASE_NET_ERRORS_H__
6 #define NET_BASE_NET_ERRORS_H__ 6 #define NET_BASE_NET_ERRORS_H__
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/basictypes.h"
12 #include "base/files/file.h" 11 #include "base/files/file.h"
13 #include "base/logging.h" 12 #include "base/logging.h"
14 #include "net/base/net_export.h" 13 #include "net/base/net_export.h"
15 14
16 namespace net { 15 namespace net {
17 16
18 // Error domain of the net module's error codes. 17 // Error domain of the net module's error codes.
19 NET_EXPORT extern const char kErrorDomain[]; 18 NET_EXPORT extern const char kErrorDomain[];
20 19
21 // Error values are negative. 20 // Error values are negative.
(...skipping 25 matching lines...) Expand all
47 46
48 // Map system error code to Error. 47 // Map system error code to Error.
49 NET_EXPORT Error MapSystemError(logging::SystemErrorCode os_error); 48 NET_EXPORT Error MapSystemError(logging::SystemErrorCode os_error);
50 49
51 // A convenient function to translate file error to net error code. 50 // A convenient function to translate file error to net error code.
52 NET_EXPORT Error FileErrorToNetError(base::File::Error file_error); 51 NET_EXPORT Error FileErrorToNetError(base::File::Error file_error);
53 52
54 } // namespace net 53 } // namespace net
55 54
56 #endif // NET_BASE_NET_ERRORS_H__ 55 #endif // NET_BASE_NET_ERRORS_H__
OLDNEW
« no previous file with comments | « net/base/mock_file_stream.h ('k') | net/base/net_module.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698