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

Side by Side Diff: media/filters/decrypting_video_decoder.h

Issue 416333011: Allow setContentDecryptionModule() to get called when setting is done. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 5 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MEDIA_FILTERS_DECRYPTING_VIDEO_DECODER_H_ 5 #ifndef MEDIA_FILTERS_DECRYPTING_VIDEO_DECODER_H_
6 #define MEDIA_FILTERS_DECRYPTING_VIDEO_DECODER_H_ 6 #define MEDIA_FILTERS_DECRYPTING_VIDEO_DECODER_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "media/base/decryptor.h" 10 #include "media/base/decryptor.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 kDecryptorRequested, 49 kDecryptorRequested,
50 kPendingDecoderInit, 50 kPendingDecoderInit,
51 kIdle, 51 kIdle,
52 kPendingDecode, 52 kPendingDecode,
53 kWaitingForKey, 53 kWaitingForKey,
54 kDecodeFinished, 54 kDecodeFinished,
55 kError 55 kError
56 }; 56 };
57 57
58 // Callback for DecryptorHost::RequestDecryptor(). 58 // Callback for DecryptorHost::RequestDecryptor().
59 void SetDecryptor(Decryptor* decryptor); 59 void SetDecryptor(Decryptor* decryptor, base::Closure done_cb);
60 60
61 // Callback for Decryptor::InitializeVideoDecoder() during initialization. 61 // Callback for Decryptor::InitializeVideoDecoder() during initialization.
62 void FinishInitialization(bool success); 62 void FinishInitialization(bool success);
63 63
64 void DecodePendingBuffer(); 64 void DecodePendingBuffer();
65 65
66 // Callback for Decryptor::DecryptAndDecodeVideo(). 66 // Callback for Decryptor::DecryptAndDecodeVideo().
67 void DeliverFrame(int buffer_size, 67 void DeliverFrame(int buffer_size,
68 Decryptor::Status status, 68 Decryptor::Status status,
69 const scoped_refptr<VideoFrame>& frame); 69 const scoped_refptr<VideoFrame>& frame);
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 // NOTE: Weak pointers must be invalidated before all other member variables. 108 // NOTE: Weak pointers must be invalidated before all other member variables.
109 base::WeakPtrFactory<DecryptingVideoDecoder> weak_factory_; 109 base::WeakPtrFactory<DecryptingVideoDecoder> weak_factory_;
110 base::WeakPtr<DecryptingVideoDecoder> weak_this_; 110 base::WeakPtr<DecryptingVideoDecoder> weak_this_;
111 111
112 DISALLOW_COPY_AND_ASSIGN(DecryptingVideoDecoder); 112 DISALLOW_COPY_AND_ASSIGN(DecryptingVideoDecoder);
113 }; 113 };
114 114
115 } // namespace media 115 } // namespace media
116 116
117 #endif // MEDIA_FILTERS_DECRYPTING_VIDEO_DECODER_H_ 117 #endif // MEDIA_FILTERS_DECRYPTING_VIDEO_DECODER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698