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

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

Issue 9288084: Added Net logging to FileStream. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Clarified comments Created 8 years, 10 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
OLDNEW
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698