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

Unified Diff: media/filters/decrypting_audio_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/base/decryptor.h ('k') | media/filters/decrypting_audio_decoder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/decrypting_audio_decoder.h
diff --git a/media/filters/decrypting_audio_decoder.h b/media/filters/decrypting_audio_decoder.h
index 533b9a244905ab9c60766d58ec5766233d71df84..4fb08c8a50938869e33f7ecfa39eb87404cc24e5 100644
--- a/media/filters/decrypting_audio_decoder.h
+++ b/media/filters/decrypting_audio_decoder.h
@@ -68,7 +68,7 @@ class MEDIA_EXPORT DecryptingAudioDecoder : public AudioDecoder {
// TODO(xhwang): Add a ASCII state diagram in this file after this class
// stabilizes.
// TODO(xhwang): Update this diagram for DecryptingAudioDecoder.
- enum DecoderState {
+ enum State {
kUninitialized = 0,
kDecryptorRequested,
kPendingDecoderInit,
@@ -116,8 +116,8 @@ class MEDIA_EXPORT DecryptingAudioDecoder : public AudioDecoder {
Decryptor::Status status,
const Decryptor::AudioBuffers& frames);
- // Callback for the |decryptor_| to notify the DecryptingAudioDecoder that
- // a new key has been added.
+ // Callback for the |decryptor_| to notify this object that a new key has been
+ // added.
void OnKeyAdded();
// Resets decoder and calls |reset_cb_|.
@@ -135,8 +135,7 @@ class MEDIA_EXPORT DecryptingAudioDecoder : public AudioDecoder {
scoped_refptr<base::MessageLoopProxy> message_loop_;
- // Current state of the DecryptingAudioDecoder.
- DecoderState state_;
+ State state_;
PipelineStatusCB init_cb_;
StatisticsCB statistics_cb_;
@@ -159,7 +158,7 @@ class MEDIA_EXPORT DecryptingAudioDecoder : public AudioDecoder {
// 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_;
Decryptor::AudioBuffers queued_audio_frames_;
« no previous file with comments | « media/base/decryptor.h ('k') | media/filters/decrypting_audio_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698