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

Unified Diff: ppapi/cpp/dev/audio_input_dev.h

Issue 11366038: Rewrite PPB_AudioInput_Dev to use the new-style host/resource. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 1 month 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/cpp/dev/audio_input_dev.h
diff --git a/ppapi/cpp/dev/audio_input_dev.h b/ppapi/cpp/dev/audio_input_dev.h
index 1c80f4db5ee4fd07c15277cec02f865bc823263d..7d92cf94eb7a34a0f20d0c26533e7ffc8ae6dd94 100644
--- a/ppapi/cpp/dev/audio_input_dev.h
+++ b/ppapi/cpp/dev/audio_input_dev.h
@@ -22,20 +22,7 @@ class AudioInput_Dev : public Resource {
/// An empty constructor for an AudioInput resource.
AudioInput_Dev();
- /// This constructor tries to create an audio input resource using the v0.2
- /// interface, and falls back on the v0.1 interface if that is not available.
- /// Please use the 2-parameter Open() if you used this constructor.
- ///
- /// Note: This constructor is deprecated. Unless your code has to deal with
- /// browsers that only support the v0.1 interface, please use the 1-parameter
- /// constructor instead.
- AudioInput_Dev(const InstanceHandle& instance,
- const AudioConfig& config,
- PPB_AudioInput_Callback callback,
- void* user_data);
-
- /// This constructor uses the v0.2 interface to create an audio input
- /// resource. Please use the 5-parameter Open() if you used this constructor.
+ /// Constructor to create an audio input resource.
explicit AudioInput_Dev(const InstanceHandle& instance);
virtual ~AudioInput_Dev();
@@ -65,16 +52,6 @@ class AudioInput_Dev : public Resource {
/// If |device_ref| is null (i.e., is_null() returns true), the default device
/// will be used.
- /// In order to maintain backward compatibility, this method doesn't have
- /// input parameters config, audio_input_callback and user_data. Instead, it
- /// uses those values stored when the 4-parameter constructor was called.
- ///
- /// Note: This method is deprecated. Unless your code has to deal with
- /// browsers that only support the v0.1 interface, please use the other
- /// Open().
- int32_t Open(const DeviceRef_Dev& device_ref,
- const CompletionCallback& callback);
-
int32_t Open(const DeviceRef_Dev& device_ref,
const AudioConfig& config,
PPB_AudioInput_Callback audio_input_callback,

Powered by Google App Engine
This is Rietveld 408576698