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

Unified Diff: net/base/file_stream.h

Issue 7583049: Record UMA statistics for file_stream operations. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed extra logging. Created 9 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/download/base_file.cc ('k') | net/base/file_stream_metrics.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/file_stream.h
diff --git a/net/base/file_stream.h b/net/base/file_stream.h
index a58557c754fff12b5ae3d12bb9643d0944ea9240..0a800b46d7f04ac2d7c8642ea703166f5223db86 100644
--- a/net/base/file_stream.h
+++ b/net/base/file_stream.h
@@ -132,6 +132,9 @@ class NET_EXPORT FileStream {
// This method should not be called if the stream was opened READ_ONLY.
virtual int Flush();
+ // Turns on UMA error statistics gathering.
+ void EnableErrorStatistics();
+
private:
class AsyncContext;
friend class AsyncContext;
@@ -143,6 +146,7 @@ class NET_EXPORT FileStream {
base::PlatformFile file_;
int open_flags_;
bool auto_closed_;
+ bool record_uma_;
DISALLOW_COPY_AND_ASSIGN(FileStream);
};
« no previous file with comments | « content/browser/download/base_file.cc ('k') | net/base/file_stream_metrics.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698