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

Unified Diff: media/base/pipeline_status.h

Issue 10824283: Make explicit the PipelineStatus enum values and warn that they are logged to UMA. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 | no next file » | 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 cfce0b4f70622c2996f2cc7139d874cce23df8f3..0d9049480bedb45485c115ef99f09dbcf0a8047c 100644
--- a/media/base/pipeline_status.h
+++ b/media/base/pipeline_status.h
@@ -12,26 +12,27 @@
namespace media {
// Status states for pipeline. All codes except PIPELINE_OK indicate errors.
+// Logged to UMA, so never reuse a value, always add new/greater ones!
scherkus (not reviewing) 2012/08/13 21:08:59 is this only logged for GpuVideoDecoder::Initializ
Ami GONE FROM CHROMIUM 2012/08/13 21:23:54 Today, yes.
scherkus (not reviewing) 2012/08/14 21:40:30 Should VideoDecoders have their own status codes /
Ami GONE FROM CHROMIUM 2012/08/14 21:43:28 My rule of thumb is that if you're not going to ha
scherkus (not reviewing) 2012/08/15 01:03:44 Think about it from WMPI's perspective and http://
// TODO(vrk/scherkus): Trim the unused status codes. (crbug.com/126070)
enum PipelineStatus {
- PIPELINE_OK,
- PIPELINE_ERROR_URL_NOT_FOUND,
- PIPELINE_ERROR_NETWORK,
- PIPELINE_ERROR_DECODE,
- PIPELINE_ERROR_DECRYPT,
- PIPELINE_ERROR_ABORT,
- PIPELINE_ERROR_INITIALIZATION_FAILED,
- PIPELINE_ERROR_REQUIRED_FILTER_MISSING,
- PIPELINE_ERROR_COULD_NOT_RENDER,
- PIPELINE_ERROR_READ,
- PIPELINE_ERROR_OPERATION_PENDING,
- PIPELINE_ERROR_INVALID_STATE,
+ PIPELINE_OK = 0,
+ PIPELINE_ERROR_URL_NOT_FOUND = 1,
+ PIPELINE_ERROR_NETWORK = 2,
+ PIPELINE_ERROR_DECODE = 3,
+ PIPELINE_ERROR_DECRYPT = 4,
+ PIPELINE_ERROR_ABORT = 5,
+ PIPELINE_ERROR_INITIALIZATION_FAILED = 6,
+ PIPELINE_ERROR_REQUIRED_FILTER_MISSING = 7,
+ PIPELINE_ERROR_COULD_NOT_RENDER = 8,
+ PIPELINE_ERROR_READ = 9,
+ PIPELINE_ERROR_OPERATION_PENDING = 10,
+ PIPELINE_ERROR_INVALID_STATE = 11,
// Demuxer related errors.
- DEMUXER_ERROR_COULD_NOT_OPEN,
- DEMUXER_ERROR_COULD_NOT_PARSE,
- DEMUXER_ERROR_NO_SUPPORTED_STREAMS,
+ DEMUXER_ERROR_COULD_NOT_OPEN = 12,
+ DEMUXER_ERROR_COULD_NOT_PARSE = 13,
+ DEMUXER_ERROR_NO_SUPPORTED_STREAMS = 14,
// Decoder related errors.
- DECODER_ERROR_NOT_SUPPORTED,
+ DECODER_ERROR_NOT_SUPPORTED = 15,
PIPELINE_STATUS_MAX, // Must be greater than all other values logged.
};
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698