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

Side by Side Diff: webkit/plugins/ppapi/plugin_delegate.h

Issue 9129007: Work on improving PpbAudioConfig:RecommendSampleFrameCount (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 10 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
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 WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ 5 #ifndef WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_
6 #define WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ 6 #define WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after
318 // object. 318 // object.
319 virtual PlatformVideoCapture* CreateVideoCapture( 319 virtual PlatformVideoCapture* CreateVideoCapture(
320 const std::string& device_id, 320 const std::string& device_id,
321 PlatformVideoCaptureEventHandler* handler) = 0; 321 PlatformVideoCaptureEventHandler* handler) = 0;
322 322
323 // The caller will own the pointer returned from this. 323 // The caller will own the pointer returned from this.
324 virtual PlatformVideoDecoder* CreateVideoDecoder( 324 virtual PlatformVideoDecoder* CreateVideoDecoder(
325 media::VideoDecodeAccelerator::Client* client, 325 media::VideoDecodeAccelerator::Client* client,
326 int32 command_buffer_route_id) = 0; 326 int32 command_buffer_route_id) = 0;
327 327
328 // Get audio hardware output sample rate.
329 virtual uint32_t GetAudioHardwareOutputSampleRate() = 0;
330
331 // Get audio hardware output buffer size.
332 virtual uint32_t GetAudioHardwareOutputBufferSize() = 0;
333
328 // The caller is responsible for calling Shutdown() on the returned pointer 334 // The caller is responsible for calling Shutdown() on the returned pointer
329 // to clean up the corresponding resources allocated during this call. 335 // to clean up the corresponding resources allocated during this call.
330 virtual PlatformAudio* CreateAudio(uint32_t sample_rate, 336 virtual PlatformAudio* CreateAudio(uint32_t sample_rate,
331 uint32_t sample_count, 337 uint32_t sample_count,
332 PlatformAudioCommonClient* client) = 0; 338 PlatformAudioCommonClient* client) = 0;
333 339
334 // The caller is responsible for calling Shutdown() on the returned pointer 340 // The caller is responsible for calling Shutdown() on the returned pointer
335 // to clean up the corresponding resources allocated during this call. 341 // to clean up the corresponding resources allocated during this call.
336 virtual PlatformAudioInput* CreateAudioInput(uint32_t sample_rate, 342 virtual PlatformAudioInput* CreateAudioInput(uint32_t sample_rate,
337 uint32_t sample_count, 343 uint32_t sample_count,
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
555 // Enumerates devices of the specified type. The request ID passed into the 561 // Enumerates devices of the specified type. The request ID passed into the
556 // callback will be the same as the return value. 562 // callback will be the same as the return value.
557 virtual int EnumerateDevices(PP_DeviceType_Dev type, 563 virtual int EnumerateDevices(PP_DeviceType_Dev type,
558 const EnumerateDevicesCallback& callback) = 0; 564 const EnumerateDevicesCallback& callback) = 0;
559 }; 565 };
560 566
561 } // namespace ppapi 567 } // namespace ppapi
562 } // namespace webkit 568 } // namespace webkit
563 569
564 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ 570 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698