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

Unified Diff: net/base/net_errors.h

Issue 6975027: Add metrics for DHCP WPAD feature. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add tracking of unhandled DHCP API errors. Created 9 years, 7 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/net_errors.h
diff --git a/net/base/net_errors.h b/net/base/net_errors.h
index 5ae8b2716b721a689eccfdb51e793a9149564a05..83139955cdc554a5c1cb9108fc9cfea92cb55dd5 100644
--- a/net/base/net_errors.h
+++ b/net/base/net_errors.h
@@ -6,6 +6,8 @@
#define NET_BASE_NET_ERRORS_H__
#pragma once
+#include <vector>
+
#include "base/basictypes.h"
namespace net {
@@ -39,6 +41,14 @@ inline bool IsCertificateError(int error) {
// Map system error code to Error.
Error MapSystemError(int os_error);
+// Returns a list of all the possible net error codes (not counting OK). This
+// is intended for use with UMA histograms that are reporting the result of
+// an action that is represented as a net error code.
+//
+// Note that the error codes are all positive (since histograms expect positive
+// sample values).
+std::vector<int> GetAllErrorCodesForUma();
+
} // namespace net
#endif // NET_BASE_NET_ERRORS_H__

Powered by Google App Engine
This is Rietveld 408576698