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

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

Issue 10879058: Experiment to make net_error_list more greppable Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: " Created 8 years, 4 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « net/base/net_error_list.h ('k') | net/base/net_errors.cc » ('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 <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/platform_file.h" 11 #include "base/platform_file.h"
12 #include "net/base/net_export.h" 12 #include "net/base/net_export.h"
13 13
14 namespace net { 14 namespace net {
15 15
16 // Error domain of the net module's error codes. 16 // Error domain of the net module's error codes.
17 NET_EXPORT extern const char kErrorDomain[]; 17 NET_EXPORT extern const char kErrorDomain[];
18 18
19 // Error values are negative. 19 // Error values are negative.
20 enum Error { 20 enum Error {
21 // No error. 21 // No error.
22 OK = 0, 22 OK = 0,
23 23
24 #define NET_ERROR(label, value) ERR_ ## label = value, 24 #define NET_ERROR(label, value) label = value,
25 #include "net/base/net_error_list.h" 25 #include "net/base/net_error_list.h"
26 #undef NET_ERROR 26 #undef NET_ERROR
27 27
28 // The value of the first certificate error code. 28 // The value of the first certificate error code.
29 ERR_CERT_BEGIN = ERR_CERT_COMMON_NAME_INVALID, 29 ERR_CERT_BEGIN = ERR_CERT_COMMON_NAME_INVALID,
30 }; 30 };
31 31
32 // Returns a textual representation of the error code for logging purposes. 32 // Returns a textual representation of the error code for logging purposes.
33 NET_EXPORT const char* ErrorToString(int error); 33 NET_EXPORT const char* ErrorToString(int error);
34 34
(...skipping 16 matching lines...) Expand all
51 // error code that is not followed immediately by a valid error code. 51 // error code that is not followed immediately by a valid error code.
52 std::vector<int> GetAllErrorCodesForUma(); 52 std::vector<int> GetAllErrorCodesForUma();
53 53
54 // A convenient function to translate platform file error to net error code. 54 // A convenient function to translate platform file error to net error code.
55 NET_EXPORT Error PlatformFileErrorToNetError( 55 NET_EXPORT Error PlatformFileErrorToNetError(
56 base::PlatformFileError file_error); 56 base::PlatformFileError file_error);
57 57
58 } // namespace net 58 } // namespace net
59 59
60 #endif // NET_BASE_NET_ERRORS_H__ 60 #endif // NET_BASE_NET_ERRORS_H__
OLDNEW
« no previous file with comments | « net/base/net_error_list.h ('k') | net/base/net_errors.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698