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

Unified Diff: media/filters/decrypting_video_decoder.h

Issue 11342031: Add DecryptingDemuxerStream. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 1 month 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/filters/decrypting_demuxer_stream_unittest.cc ('k') | media/filters/decrypting_video_decoder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/decrypting_video_decoder.h
diff --git a/media/filters/decrypting_video_decoder.h b/media/filters/decrypting_video_decoder.h
index d2fb04ba3ab8ca6f6273d2effe58ab14b4b9e42d..ac9136e1fec167209ff87c8305acf7cf31204cf5 100644
--- a/media/filters/decrypting_video_decoder.h
+++ b/media/filters/decrypting_video_decoder.h
@@ -65,7 +65,7 @@ class MEDIA_EXPORT DecryptingVideoDecoder : public VideoDecoder {
// For a detailed state diagram please see this link: http://goo.gl/8jAok
// TODO(xhwang): Add a ASCII state diagram in this file after this class
// stabilizes.
- enum DecoderState {
+ enum State {
kUninitialized = 0,
kDecryptorRequested,
kPendingDecoderInit,
@@ -114,8 +114,8 @@ class MEDIA_EXPORT DecryptingVideoDecoder : public VideoDecoder {
Decryptor::Status status,
const scoped_refptr<VideoFrame>& frame);
- // Callback for the |decryptor_| to notify the DecryptingVideoDecoder that
- // a new key has been added.
+ // Callback for the |decryptor_| to notify this object that a new key has been
+ // added.
void OnKeyAdded();
// Reset decoder and call |reset_cb_|.
@@ -129,8 +129,7 @@ class MEDIA_EXPORT DecryptingVideoDecoder : public VideoDecoder {
scoped_refptr<base::MessageLoopProxy> message_loop_;
- // Current state of the DecryptingVideoDecoder.
- DecoderState state_;
+ State state_;
PipelineStatusCB init_cb_;
StatisticsCB statistics_cb_;
@@ -153,7 +152,7 @@ class MEDIA_EXPORT DecryptingVideoDecoder : public VideoDecoder {
// If this variable is true and kNoKey is returned then we need to try
// decrypting/decoding again in case the newly added key is the correct
// decryption key.
- bool key_added_while_pending_decode_;
+ bool key_added_while_decode_pending_;
// A unique ID to trace Decryptor::DecryptAndDecodeVideo() call and the
// matching DecryptCB call (in DoDeliverFrame()).
« no previous file with comments | « media/filters/decrypting_demuxer_stream_unittest.cc ('k') | media/filters/decrypting_video_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698