OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 // File error statistics gathering. | 5 // File error statistics gathering. |
6 | 6 |
7 #ifndef NET_BASE_FILE_STREAM_METRICS_H_ | 7 #ifndef NET_BASE_FILE_STREAM_METRICS_H_ |
8 #define NET_BASE_FILE_STREAM_METRICS_H_ | 8 #define NET_BASE_FILE_STREAM_METRICS_H_ |
9 #pragma once | 9 #pragma once |
10 | 10 |
(...skipping 18 matching lines...) Expand all Loading... |
29 int MaxFileErrorUmaBucket(); | 29 int MaxFileErrorUmaBucket(); |
30 | 30 |
31 // The highest error value we want to individually report. | 31 // The highest error value we want to individually report. |
32 int MaxFileErrorUmaValue(); | 32 int MaxFileErrorUmaValue(); |
33 | 33 |
34 // |error| is a platform-specific error (Windows or Posix). | 34 // |error| is a platform-specific error (Windows or Posix). |
35 // |source| indicates the operation that resulted in the error. | 35 // |source| indicates the operation that resulted in the error. |
36 // |record| is a flag indicating that we are interested in this error. | 36 // |record| is a flag indicating that we are interested in this error. |
37 void RecordFileError(int error, FileErrorSource source, bool record); | 37 void RecordFileError(int error, FileErrorSource source, bool record); |
38 | 38 |
| 39 const char* GetFileErrorSourceName(FileErrorSource source); |
| 40 |
39 } // namespace net | 41 } // namespace net |
40 | 42 |
41 #endif // NET_BASE_FILE_STREAM_METRICS_H_ | 43 #endif // NET_BASE_FILE_STREAM_METRICS_H_ |
OLD | NEW |