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

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: rebase + android tweaks Created 6 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 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 kUninitialized = 0, 48 kUninitialized = 0,
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(). |decryptor_attached_cb| is
59 void SetDecryptor(Decryptor* decryptor); 59 // called when the decryptor has been completely attached to the pipeline.
60 void SetDecryptor(Decryptor* decryptor,
61 const DecryptorAttachedCB& decryptor_attached_cb);
60 62
61 // Callback for Decryptor::InitializeVideoDecoder() during initialization. 63 // Callback for Decryptor::InitializeVideoDecoder() during initialization.
62 void FinishInitialization(bool success); 64 void FinishInitialization(bool success);
63 65
64 void DecodePendingBuffer(); 66 void DecodePendingBuffer();
65 67
66 // Callback for Decryptor::DecryptAndDecodeVideo(). 68 // Callback for Decryptor::DecryptAndDecodeVideo().
67 void DeliverFrame(int buffer_size, 69 void DeliverFrame(int buffer_size,
68 Decryptor::Status status, 70 Decryptor::Status status,
69 const scoped_refptr<VideoFrame>& frame); 71 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. 110 // NOTE: Weak pointers must be invalidated before all other member variables.
109 base::WeakPtrFactory<DecryptingVideoDecoder> weak_factory_; 111 base::WeakPtrFactory<DecryptingVideoDecoder> weak_factory_;
110 base::WeakPtr<DecryptingVideoDecoder> weak_this_; 112 base::WeakPtr<DecryptingVideoDecoder> weak_this_;
111 113
112 DISALLOW_COPY_AND_ASSIGN(DecryptingVideoDecoder); 114 DISALLOW_COPY_AND_ASSIGN(DecryptingVideoDecoder);
113 }; 115 };
114 116
115 } // namespace media 117 } // namespace media
116 118
117 #endif // MEDIA_FILTERS_DECRYPTING_VIDEO_DECODER_H_ 119 #endif // MEDIA_FILTERS_DECRYPTING_VIDEO_DECODER_H_
OLDNEW
« 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