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

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

Issue 12638030: Make AudioDecoderConfig copyable. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « media/base/audio_decoder_config.cc ('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 #include <string> 9 #include <string>
10 10
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 virtual void CancelDecrypt(StreamType stream_type) = 0; 132 virtual void CancelDecrypt(StreamType stream_type) = 0;
133 133
134 // Indicates completion of audio/video decoder initialization. 134 // Indicates completion of audio/video decoder initialization.
135 // 135 //
136 // First Parameter: Indicates initialization success. 136 // First Parameter: Indicates initialization success.
137 // - Set to true if initialization was successful. False if an error occurred. 137 // - Set to true if initialization was successful. False if an error occurred.
138 typedef base::Callback<void(bool)> DecoderInitCB; 138 typedef base::Callback<void(bool)> DecoderInitCB;
139 139
140 // Initializes a decoder with the given |config|, executing the |init_cb| 140 // Initializes a decoder with the given |config|, executing the |init_cb|
141 // upon completion. 141 // upon completion.
142 virtual void InitializeAudioDecoder(scoped_ptr<AudioDecoderConfig> config, 142 virtual void InitializeAudioDecoder(const AudioDecoderConfig& config,
143 const DecoderInitCB& init_cb) = 0; 143 const DecoderInitCB& init_cb) = 0;
144 virtual void InitializeVideoDecoder(const VideoDecoderConfig& config, 144 virtual void InitializeVideoDecoder(const VideoDecoderConfig& config,
145 const DecoderInitCB& init_cb) = 0; 145 const DecoderInitCB& init_cb) = 0;
146 146
147 // Helper structure for managing multiple decoded audio buffers per input. 147 // Helper structure for managing multiple decoded audio buffers per input.
148 // TODO(xhwang): Rename this to AudioFrames. 148 // TODO(xhwang): Rename this to AudioFrames.
149 typedef std::list<scoped_refptr<DataBuffer> > AudioBuffers; 149 typedef std::list<scoped_refptr<DataBuffer> > AudioBuffers;
150 150
151 // Indicates completion of audio/video decrypt-and-decode operation. 151 // Indicates completion of audio/video decrypt-and-decode operation.
152 // 152 //
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 234
235 typedef base::Callback<void(const std::string& key_system, 235 typedef base::Callback<void(const std::string& key_system,
236 const std::string& session_id, 236 const std::string& session_id,
237 const std::string& type, 237 const std::string& type,
238 scoped_array<uint8> init_data, 238 scoped_array<uint8> init_data,
239 int init_data_size)> NeedKeyCB; 239 int init_data_size)> NeedKeyCB;
240 240
241 } // namespace media 241 } // namespace media
242 242
243 #endif // MEDIA_BASE_DECRYPTOR_H_ 243 #endif // MEDIA_BASE_DECRYPTOR_H_
OLDNEW
« no previous file with comments | « media/base/audio_decoder_config.cc ('k') | media/base/mock_filters.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698