| OLD | NEW |
| 1 // Copyright (c) 2011 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 // 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 |
| 11 namespace net { | 11 namespace net { |
| (...skipping 17 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 // Gets a description for the source of a file error. |
| 40 const char* GetFileErrorSourceName(FileErrorSource source); |
| 41 |
| 39 } // namespace net | 42 } // namespace net |
| 40 | 43 |
| 41 #endif // NET_BASE_FILE_STREAM_METRICS_H_ | 44 #endif // NET_BASE_FILE_STREAM_METRICS_H_ |
| OLD | NEW |