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

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

Issue 11492003: Encrypted Media: Support Audio Decrypt-Only. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: working and not hacky; need to update comments and tests Created 8 years 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 | Annotate | Revision Log
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 #include <string> 9 #include <string>
10 10
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 // This method can be called any time after Initialize{Audio|Video}Decoder() 197 // This method can be called any time after Initialize{Audio|Video}Decoder()
198 // has been called (with the correct stream type). 198 // has been called (with the correct stream type).
199 // After this operation, the decoder is set to an uninitialized state. 199 // After this operation, the decoder is set to an uninitialized state.
200 // The decoder can be reinitialized after it is uninitialized. 200 // The decoder can be reinitialized after it is uninitialized.
201 virtual void DeinitializeDecoder(StreamType stream_type) = 0; 201 virtual void DeinitializeDecoder(StreamType stream_type) = 0;
202 202
203 private: 203 private:
204 DISALLOW_COPY_AND_ASSIGN(Decryptor); 204 DISALLOW_COPY_AND_ASSIGN(Decryptor);
205 }; 205 };
206 206
207 // Callback to notify decryptor creation.
xhwang 2012/12/11 02:27:40 I moved this block here since it's duplicated in a
ddorwin 2012/12/11 05:13:34 I agree about the length (plus the lack of meaning
xhwang 2012/12/12 23:43:28 Renamed.
208 typedef base::Callback<void(Decryptor*)> DecryptorNotificationCB;
209 // Callback to request/cancel decryptor creation notification.
ddorwin 2012/12/11 05:13:34 "...notification of decryptor creation."
xhwang 2012/12/12 23:43:28 Done.
210 // Calling this callback with a non-null callback registers decryptor creation
211 // notification. When the decryptor is created, notification will be sent
212 // through the provided callback.
213 // Calling this callback with a null callback cancels previously registered
214 // decryptor creation notification. Any previously provided callback will be
215 // fired immediately with NULL.
216 typedef base::Callback<void(const DecryptorNotificationCB&)>
ddorwin 2012/12/11 05:13:34 This is a callback for a callback? Seems weird. Ma
xhwang 2012/12/11 19:43:04 The original naming (proposed by fischman) actuall
scherkus (not reviewing) 2012/12/11 20:52:15 Well this is actually setting / unsetting an obser
ddorwin 2012/12/12 00:30:25 Either of these SGTM. Combining scherkus's and xhw
xhwang 2012/12/12 23:43:28 Done.
217 RequestDecryptorNotificationCB;
218
207 } // namespace media 219 } // namespace media
208 220
209 #endif // MEDIA_BASE_DECRYPTOR_H_ 221 #endif // MEDIA_BASE_DECRYPTOR_H_
OLDNEW
« no previous file with comments | « media/base/audio_renderer.h ('k') | media/base/pipeline.h » ('j') | media/base/pipeline.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698