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

Unified Diff: media/base/pipeline_status.h

Issue 10582026: Add UMA reporting for GpuVideoDecoder::Initialize status. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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 | « media/base/media_log.cc ('k') | media/base/pipeline_status.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/pipeline_status.h
diff --git a/media/base/pipeline_status.h b/media/base/pipeline_status.h
index 842b18d470fbb375c569aabb31fbe6b948486c60..8f1a6774afba2e9ed99d36fd46023ef85a5235d0 100644
--- a/media/base/pipeline_status.h
+++ b/media/base/pipeline_status.h
@@ -7,6 +7,8 @@
#include "base/callback.h"
+#include <string>
+
namespace media {
// Status states for pipeline. All codes except PIPELINE_OK indicate errors.
@@ -29,10 +31,16 @@ enum PipelineStatus {
DEMUXER_ERROR_NO_SUPPORTED_STREAMS,
// Decoder related errors.
DECODER_ERROR_NOT_SUPPORTED,
+ PIPELINE_STATUS_MAX, // Must be greater than all other values logged.
};
typedef base::Callback<void(PipelineStatus)> PipelineStatusCB;
+// Wrap & return a callback around |cb| which reports its argument to UMA under
+// the requested |name|.
+PipelineStatusCB CreateUMAReportingPipelineCB(const std::string& name,
+ const PipelineStatusCB& cb);
+
// TODO(scherkus): this should be moved alongside host interface definitions.
struct PipelineStatistics {
PipelineStatistics()
« no previous file with comments | « media/base/media_log.cc ('k') | media/base/pipeline_status.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698