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

Unified Diff: ppapi/thunk/ppb_audio_input_thunk.cc

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
« no previous file with comments | « ppapi/thunk/ppb_audio_input_api.h ('k') | ppapi/thunk/ppb_audio_input_trusted_thunk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/thunk/ppb_audio_input_thunk.cc
diff --git a/ppapi/thunk/ppb_audio_input_thunk.cc b/ppapi/thunk/ppb_audio_input_thunk.cc
index f3cd13acc3995da854c7986a7fa1a70ce743d6bb..94d978df98ee2e476fbb77bd9ec5b5924791977e 100644
--- a/ppapi/thunk/ppb_audio_input_thunk.cc
+++ b/ppapi/thunk/ppb_audio_input_thunk.cc
@@ -18,19 +18,7 @@ namespace {
typedef EnterResource<PPB_AudioInput_API> EnterAudioInput;
-PP_Resource Create0_1(PP_Instance instance,
- PP_Resource config,
- PPB_AudioInput_Callback audio_input_callback,
- void* user_data) {
- EnterResourceCreation enter(instance);
- if (enter.failed())
- return 0;
-
- return enter.functions()->CreateAudioInput0_1(
- instance, config, audio_input_callback, user_data);
-}
-
-PP_Resource Create0_2(PP_Instance instance) {
+PP_Resource Create(PP_Instance instance) {
EnterResourceCreation enter(instance);
if (enter.failed())
return 0;
@@ -107,16 +95,8 @@ void Close(PP_Resource audio_input) {
enter.object()->Close();
}
-const PPB_AudioInput_Dev_0_1 g_ppb_audioinput_0_1_thunk = {
- &Create0_1,
- &IsAudioInput,
- &GetCurrentConfig,
- &StartCapture,
- &StopCapture
-};
-
const PPB_AudioInput_Dev_0_2 g_ppb_audioinput_0_2_thunk = {
- &Create0_2,
+ &Create,
&IsAudioInput,
&EnumerateDevices,
&Open,
@@ -128,10 +108,6 @@ const PPB_AudioInput_Dev_0_2 g_ppb_audioinput_0_2_thunk = {
} // namespace
-const PPB_AudioInput_Dev_0_1* GetPPB_AudioInput_Dev_0_1_Thunk() {
- return &g_ppb_audioinput_0_1_thunk;
-}
-
const PPB_AudioInput_Dev_0_2* GetPPB_AudioInput_Dev_0_2_Thunk() {
return &g_ppb_audioinput_0_2_thunk;
}
« no previous file with comments | « ppapi/thunk/ppb_audio_input_api.h ('k') | ppapi/thunk/ppb_audio_input_trusted_thunk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698