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

Side by Side Diff: ppapi/proxy/resource_creation_proxy.cc

Issue 8569003: Revert 110587 - Microphone support for Pepper Flash. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ppapi/proxy/resource_creation_proxy.h ('k') | ppapi/shared_impl/api_id.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #include "ppapi/proxy/resource_creation_proxy.h" 5 #include "ppapi/proxy/resource_creation_proxy.h"
6 6
7 #include "ppapi/c/pp_errors.h" 7 #include "ppapi/c/pp_errors.h"
8 #include "ppapi/c/pp_size.h" 8 #include "ppapi/c/pp_size.h"
9 #include "ppapi/c/trusted/ppb_image_data_trusted.h" 9 #include "ppapi/c/trusted/ppb_image_data_trusted.h"
10 #include "ppapi/proxy/plugin_dispatcher.h" 10 #include "ppapi/proxy/plugin_dispatcher.h"
11 #include "ppapi/proxy/plugin_resource_tracker.h" 11 #include "ppapi/proxy/plugin_resource_tracker.h"
12 #include "ppapi/proxy/ppapi_messages.h" 12 #include "ppapi/proxy/ppapi_messages.h"
13 #include "ppapi/proxy/ppb_audio_input_proxy.h"
14 #include "ppapi/proxy/ppb_audio_proxy.h" 13 #include "ppapi/proxy/ppb_audio_proxy.h"
15 #include "ppapi/proxy/ppb_buffer_proxy.h" 14 #include "ppapi/proxy/ppb_buffer_proxy.h"
16 #include "ppapi/proxy/ppb_broker_proxy.h" 15 #include "ppapi/proxy/ppb_broker_proxy.h"
17 #include "ppapi/proxy/ppb_context_3d_proxy.h" 16 #include "ppapi/proxy/ppb_context_3d_proxy.h"
18 #include "ppapi/proxy/ppb_file_chooser_proxy.h" 17 #include "ppapi/proxy/ppb_file_chooser_proxy.h"
19 #include "ppapi/proxy/ppb_file_ref_proxy.h" 18 #include "ppapi/proxy/ppb_file_ref_proxy.h"
20 #include "ppapi/proxy/ppb_file_system_proxy.h" 19 #include "ppapi/proxy/ppb_file_system_proxy.h"
21 #include "ppapi/proxy/ppb_flash_menu_proxy.h" 20 #include "ppapi/proxy/ppb_flash_menu_proxy.h"
22 #include "ppapi/proxy/ppb_flash_net_connector_proxy.h" 21 #include "ppapi/proxy/ppb_flash_net_connector_proxy.h"
23 #include "ppapi/proxy/ppb_font_proxy.h" 22 #include "ppapi/proxy/ppb_font_proxy.h"
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 uint32_t sample_frame_count) { 76 uint32_t sample_frame_count) {
78 return AudioConfigImpl::CreateAsProxy( 77 return AudioConfigImpl::CreateAsProxy(
79 instance, sample_rate, sample_frame_count); 78 instance, sample_rate, sample_frame_count);
80 } 79 }
81 80
82 PP_Resource ResourceCreationProxy::CreateAudioTrusted(PP_Instance instance) { 81 PP_Resource ResourceCreationProxy::CreateAudioTrusted(PP_Instance instance) {
83 // Proxied plugins can't created trusted audio devices. 82 // Proxied plugins can't created trusted audio devices.
84 return 0; 83 return 0;
85 } 84 }
86 85
87 PP_Resource ResourceCreationProxy::CreateAudioInput(
88 PP_Instance instance,
89 PP_Resource config_id,
90 PPB_Audio_Callback audio_input_callback,
91 void* user_data) {
92 return PPB_AudioInput_Proxy::CreateProxyResource(instance, config_id,
93 audio_input_callback,
94 user_data);
95 }
96
97 PP_Resource ResourceCreationProxy::CreateAudioInputTrusted(
98 PP_Instance instance) {
99 // Proxied plugins can't created trusted audio input devices.
100 return 0;
101 }
102
103 PP_Resource ResourceCreationProxy::CreateBroker(PP_Instance instance) { 86 PP_Resource ResourceCreationProxy::CreateBroker(PP_Instance instance) {
104 return PPB_Broker_Proxy::CreateProxyResource(instance); 87 return PPB_Broker_Proxy::CreateProxyResource(instance);
105 } 88 }
106 89
107 PP_Resource ResourceCreationProxy::CreateBuffer(PP_Instance instance, 90 PP_Resource ResourceCreationProxy::CreateBuffer(PP_Instance instance,
108 uint32_t size) { 91 uint32_t size) {
109 return PPB_Buffer_Proxy::CreateProxyResource(instance, size); 92 return PPB_Buffer_Proxy::CreateProxyResource(instance, size);
110 } 93 }
111 94
112 PP_Resource ResourceCreationProxy::CreateContext3D( 95 PP_Resource ResourceCreationProxy::CreateContext3D(
(...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after
434 *result_image_handle = dispatcher()->ShareHandleWithRemote(ih, false); 417 *result_image_handle = dispatcher()->ShareHandleWithRemote(ih, false);
435 #else 418 #else
436 *result_image_handle = ImageData::HandleFromInt(handle); 419 *result_image_handle = ImageData::HandleFromInt(handle);
437 #endif 420 #endif
438 } 421 }
439 } 422 }
440 } 423 }
441 424
442 } // namespace proxy 425 } // namespace proxy
443 } // namespace ppapi 426 } // namespace ppapi
OLDNEW
« no previous file with comments | « ppapi/proxy/resource_creation_proxy.h ('k') | ppapi/shared_impl/api_id.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698