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

Unified Diff: ppapi/shared_impl/ppb_audio_input_shared.h

Issue 10837064: Corresponding change in Pepper since EnumerateDevices contract is changed. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: ppapi/shared_impl/ppb_audio_input_shared.h
===================================================================
--- ppapi/shared_impl/ppb_audio_input_shared.h (revision 148913)
+++ ppapi/shared_impl/ppb_audio_input_shared.h (working copy)
@@ -42,6 +42,7 @@
virtual int32_t EnumerateDevices(
PP_Resource* devices,
scoped_refptr<TrackedCallback> callback) OVERRIDE;
+ virtual int32_t StopEnumerateDevices(PP_Resource* devices) OVERRIDE;
virtual int32_t Open(const std::string& device_id,
PP_Resource config,
PPB_AudioInput_Callback audio_input_callback,
@@ -74,6 +75,7 @@
virtual int32_t InternalEnumerateDevices(
PP_Resource* devices,
scoped_refptr<TrackedCallback> callback) = 0;
+ virtual int32_t InternalStopEnumerateDevices(PP_Resource* devices) = 0;
virtual int32_t InternalOpen(const std::string& device_id,
PP_AudioSampleRate sample_rate,
uint32_t sample_frame_count,
@@ -155,8 +157,9 @@
ScopedPPResource config_;
// Output parameter of EnumerateDevices(). It should not be accessed after
- // |enumerate_devices_callback_| is run.
+ // StopEnumerateDevices is called.
PP_Resource* devices_;
+ int enumeration_request_id_;
ResourceObjectType resource_object_type_;

Powered by Google App Engine
This is Rietveld 408576698