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

Side by Side Diff: content/renderer/pepper/content_decryptor_delegate.h

Issue 826783003: Renaming "AudioBuffers" to "AudioFrames" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixing Build errors Created 5 years, 11 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 CONTENT_RENDERER_PEPPER_CONTENT_DECRYPTOR_DELEGATE_H_ 5 #ifndef CONTENT_RENDERER_PEPPER_CONTENT_DECRYPTOR_DELEGATE_H_
6 #define CONTENT_RENDERER_PEPPER_CONTENT_DECRYPTOR_DELEGATE_H_ 6 #define CONTENT_RENDERER_PEPPER_CONTENT_DECRYPTOR_DELEGATE_H_
7 7
8 #include <map> 8 #include <map>
9 #include <queue> 9 #include <queue>
10 #include <string> 10 #include <string>
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 189
190 void FreeBuffer(uint32_t buffer_id); 190 void FreeBuffer(uint32_t buffer_id);
191 191
192 void SetBufferToFreeInTrackingInfo(PP_DecryptTrackingInfo* tracking_info); 192 void SetBufferToFreeInTrackingInfo(PP_DecryptTrackingInfo* tracking_info);
193 193
194 // Deserializes audio data stored in |audio_frames| into individual audio 194 // Deserializes audio data stored in |audio_frames| into individual audio
195 // buffers in |frames|. Returns true upon success. 195 // buffers in |frames|. Returns true upon success.
196 bool DeserializeAudioFrames(PP_Resource audio_frames, 196 bool DeserializeAudioFrames(PP_Resource audio_frames,
197 size_t data_size, 197 size_t data_size,
198 media::SampleFormat sample_format, 198 media::SampleFormat sample_format,
199 media::Decryptor::AudioBuffers* frames); 199 media::Decryptor::AudioFrames* frames);
200 200
201 void SatisfyAllPendingCallbacksOnError(); 201 void SatisfyAllPendingCallbacksOnError();
202 202
203 // Takes ownership of |promise| and returns an identifier to be passed via 203 // Takes ownership of |promise| and returns an identifier to be passed via
204 // Pepper. 204 // Pepper.
205 uint32_t SavePromise(scoped_ptr<media::CdmPromise> promise); 205 uint32_t SavePromise(scoped_ptr<media::CdmPromise> promise);
206 206
207 // Find the promise for a specified |promise_id|. Caller is responsible to 207 // Find the promise for a specified |promise_id|. Caller is responsible to
208 // delete the CdmPromise<> once done with it. 208 // delete the CdmPromise<> once done with it.
209 scoped_ptr<media::CdmPromise> TakePromise(uint32_t promise_id); 209 scoped_ptr<media::CdmPromise> TakePromise(uint32_t promise_id);
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 257
258 base::WeakPtr<ContentDecryptorDelegate> weak_this_; 258 base::WeakPtr<ContentDecryptorDelegate> weak_this_;
259 base::WeakPtrFactory<ContentDecryptorDelegate> weak_ptr_factory_; 259 base::WeakPtrFactory<ContentDecryptorDelegate> weak_ptr_factory_;
260 260
261 DISALLOW_COPY_AND_ASSIGN(ContentDecryptorDelegate); 261 DISALLOW_COPY_AND_ASSIGN(ContentDecryptorDelegate);
262 }; 262 };
263 263
264 } // namespace content 264 } // namespace content
265 265
266 #endif // CONTENT_RENDERER_PEPPER_CONTENT_DECRYPTOR_DELEGATE_H_ 266 #endif // CONTENT_RENDERER_PEPPER_CONTENT_DECRYPTOR_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/renderer/media/crypto/ppapi_decryptor.cc ('k') | content/renderer/pepper/content_decryptor_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698