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

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: Fixed copyright issue. 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
« no previous file with comments | « net/base/file_stream.h ('k') | net/base/file_stream_metrics.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) 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
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_
OLDNEW
« no previous file with comments | « net/base/file_stream.h ('k') | net/base/file_stream_metrics.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698