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

Side by Side Diff: media/base/decryptor.h

Issue 1423163004: media: Replace DecryptorReadyCB with CdmReadyCB. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments addressed Created 5 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 unified diff | Download patch
« no previous file with comments | « media/base/cdm_context.h ('k') | media/base/mock_filters.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_BASE_DECRYPTOR_H_ 5 #ifndef MEDIA_BASE_DECRYPTOR_H_
6 #define MEDIA_BASE_DECRYPTOR_H_ 6 #define MEDIA_BASE_DECRYPTOR_H_
7 7
8 #include <list> 8 #include <list>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 // This method can be called any time after Initialize{Audio|Video}Decoder() 156 // This method can be called any time after Initialize{Audio|Video}Decoder()
157 // has been called (with the correct stream type). 157 // has been called (with the correct stream type).
158 // After this operation, the decoder is set to an uninitialized state. 158 // After this operation, the decoder is set to an uninitialized state.
159 // The decoder can be reinitialized after it is uninitialized. 159 // The decoder can be reinitialized after it is uninitialized.
160 virtual void DeinitializeDecoder(StreamType stream_type) = 0; 160 virtual void DeinitializeDecoder(StreamType stream_type) = 0;
161 161
162 private: 162 private:
163 DISALLOW_COPY_AND_ASSIGN(Decryptor); 163 DISALLOW_COPY_AND_ASSIGN(Decryptor);
164 }; 164 };
165 165
166 // Callback to notify that the decryptor has been completely attached into the
167 // pipeline. Parameter indicates whether the operation succeeded.
168 typedef base::Callback<void(bool)> DecryptorAttachedCB;
169
170 // Callback to notify that a decryptor is ready. DecryptorAttachedCB is called
171 // when the decryptor has been completely inserted into the pipeline.
172 typedef base::Callback<void(Decryptor*, const DecryptorAttachedCB&)>
173 DecryptorReadyCB;
174
175 // Callback to set/cancel a DecryptorReadyCB.
176 // Calling this callback with a non-null callback registers decryptor ready
177 // notification. When the decryptor is ready, notification will be sent
178 // through the provided callback.
179 // Calling this callback with a null callback cancels previously registered
180 // decryptor ready notification. Any previously provided callback will be
181 // fired immediately with NULL.
182 typedef base::Callback<void(const DecryptorReadyCB&)> SetDecryptorReadyCB;
183
184 } // namespace media 166 } // namespace media
185 167
186 #endif // MEDIA_BASE_DECRYPTOR_H_ 168 #endif // MEDIA_BASE_DECRYPTOR_H_
OLDNEW
« no previous file with comments | « media/base/cdm_context.h ('k') | media/base/mock_filters.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698