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

Unified Diff: ipc/attachment_broker_privileged.h

Issue 1281103002: Add UMA metrics to log attachment broker errors. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove unused enum. Created 5 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
« no previous file with comments | « no previous file | ipc/attachment_broker_privileged.cc » ('j') | tools/metrics/histograms/histograms.xml » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ipc/attachment_broker_privileged.h
diff --git a/ipc/attachment_broker_privileged.h b/ipc/attachment_broker_privileged.h
index e8c675574c500a4766395e20bcff60e167c8e9d0..e1a4799e95d8dcbcd15298fa29a4b418c9029d2f 100644
--- a/ipc/attachment_broker_privileged.h
+++ b/ipc/attachment_broker_privileged.h
@@ -36,6 +36,20 @@ class IPC_EXPORT AttachmentBrokerPrivileged : public IPC::AttachmentBroker {
// Returns nullptr if no sender is found.
Sender* GetSenderWithProcessId(base::ProcessId id);
+ // Errors that can be reported by subclasses.
+ // These match tools/metrics/histograms.xml
Ilya Sherman 2015/08/11 21:22:16 nit: Please document that this enum should be trea
erikchen 2015/09/19 01:21:56 Done.
+ enum UMAError {
+ // The brokerable attachment did not have a destination process.
+ NO_DESTINATION = 0,
+ // The brokerable attachment had a destination, but the broker did not have
+ // a channel of communication with that process.
+ DESTINATION_NOT_FOUND,
+ MAX_VALUE
Ilya Sherman 2015/08/11 21:22:16 nit: "MAX_VALUE" is a little unclear out of contex
erikchen 2015/09/19 01:21:55 Done.
+ };
+
+ // Emits an UMA metric.
+ void LogError(UMAError error);
+
private:
std::vector<Endpoint*> endpoints_;
DISALLOW_COPY_AND_ASSIGN(AttachmentBrokerPrivileged);
« no previous file with comments | « no previous file | ipc/attachment_broker_privileged.cc » ('j') | tools/metrics/histograms/histograms.xml » ('J')

Powered by Google App Engine
This is Rietveld 408576698