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

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: Fixed Posix error. 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..4ce178c4c2f299a567802965c4ef434dab443f1f 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 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