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

Unified Diff: ppapi/proxy/resource_creation_proxy.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/proxy/resource_creation_proxy.h ('k') | ppapi/shared_impl/ppb_audio_input_shared.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/proxy/resource_creation_proxy.cc
diff --git a/ppapi/proxy/resource_creation_proxy.cc b/ppapi/proxy/resource_creation_proxy.cc
index cb260d959663787ed469be6457d1bb628352aff2..339bf17231aa0516281b97f8593aced00757a6c2 100644
--- a/ppapi/proxy/resource_creation_proxy.cc
+++ b/ppapi/proxy/resource_creation_proxy.cc
@@ -7,6 +7,7 @@
#include "ppapi/c/pp_errors.h"
#include "ppapi/c/pp_size.h"
#include "ppapi/c/trusted/ppb_image_data_trusted.h"
+#include "ppapi/proxy/audio_input_resource.h"
#include "ppapi/proxy/connection.h"
#include "ppapi/proxy/file_chooser_resource.h"
#include "ppapi/proxy/flash_device_id_resource.h"
@@ -16,7 +17,6 @@
#include "ppapi/proxy/plugin_proxy_delegate.h"
#include "ppapi/proxy/plugin_resource_tracker.h"
#include "ppapi/proxy/ppapi_messages.h"
-#include "ppapi/proxy/ppb_audio_input_proxy.h"
#include "ppapi/proxy/ppb_audio_proxy.h"
#include "ppapi/proxy/ppb_buffer_proxy.h"
#include "ppapi/proxy/ppb_broker_proxy.h"
@@ -268,19 +268,9 @@ PP_Resource ResourceCreationProxy::CreateX509CertificatePrivate(
}
#if !defined(OS_NACL)
-PP_Resource ResourceCreationProxy::CreateAudioInput0_1(
- PP_Instance instance,
- PP_Resource config_id,
- PPB_AudioInput_Callback audio_input_callback,
- void* user_data) {
- return PPB_AudioInput_Proxy::CreateProxyResource0_1(instance, config_id,
- audio_input_callback,
- user_data);
-}
-
PP_Resource ResourceCreationProxy::CreateAudioInput(
PP_Instance instance) {
- return PPB_AudioInput_Proxy::CreateProxyResource(instance);
+ return (new AudioInputResource(GetConnection(), instance))->GetReference();
}
PP_Resource ResourceCreationProxy::CreateBroker(PP_Instance instance) {
« no previous file with comments | « ppapi/proxy/resource_creation_proxy.h ('k') | ppapi/shared_impl/ppb_audio_input_shared.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698