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

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: Simplified the UMA error statistics gathering. Created 9 years, 4 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
Index: net/base/file_stream.h
diff --git a/net/base/file_stream.h b/net/base/file_stream.h
index da42afb944603336fd170ae90016f2cd95633b62..8003dc9d3db01165bd83eee6b29caeeddb85b251 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.
int Flush();
+ // Turns on UMA error statistics gathering.
+ void EnableRecording();
cbentzel 2011/08/16 13:36:02 Nit: EnableErrorRecording? or EnableErrorReporting
ahendrickson 2011/08/17 20:12:04 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);
};

Powered by Google App Engine
This is Rietveld 408576698