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

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

Issue 8574029: Microphone support for Pepper Flash. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased 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"
13 #include "ppapi/proxy/ppb_audio_proxy.h" 14 #include "ppapi/proxy/ppb_audio_proxy.h"
14 #include "ppapi/proxy/ppb_buffer_proxy.h" 15 #include "ppapi/proxy/ppb_buffer_proxy.h"
15 #include "ppapi/proxy/ppb_broker_proxy.h" 16 #include "ppapi/proxy/ppb_broker_proxy.h"
16 #include "ppapi/proxy/ppb_context_3d_proxy.h" 17 #include "ppapi/proxy/ppb_context_3d_proxy.h"
17 #include "ppapi/proxy/ppb_file_chooser_proxy.h" 18 #include "ppapi/proxy/ppb_file_chooser_proxy.h"
18 #include "ppapi/proxy/ppb_file_ref_proxy.h" 19 #include "ppapi/proxy/ppb_file_ref_proxy.h"
19 #include "ppapi/proxy/ppb_file_system_proxy.h" 20 #include "ppapi/proxy/ppb_file_system_proxy.h"
20 #include "ppapi/proxy/ppb_flash_menu_proxy.h" 21 #include "ppapi/proxy/ppb_flash_menu_proxy.h"
21 #include "ppapi/proxy/ppb_flash_net_connector_proxy.h" 22 #include "ppapi/proxy/ppb_flash_net_connector_proxy.h"
22 #include "ppapi/proxy/ppb_font_proxy.h" 23 #include "ppapi/proxy/ppb_font_proxy.h"
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 uint32_t sample_frame_count) { 77 uint32_t sample_frame_count) {
77 return AudioConfigImpl::CreateAsProxy( 78 return AudioConfigImpl::CreateAsProxy(
78 instance, sample_rate, sample_frame_count); 79 instance, sample_rate, sample_frame_count);
79 } 80 }
80 81
81 PP_Resource ResourceCreationProxy::CreateAudioTrusted(PP_Instance instance) { 82 PP_Resource ResourceCreationProxy::CreateAudioTrusted(PP_Instance instance) {
82 // Proxied plugins can't created trusted audio devices. 83 // Proxied plugins can't created trusted audio devices.
83 return 0; 84 return 0;
84 } 85 }
85 86
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
86 PP_Resource ResourceCreationProxy::CreateBroker(PP_Instance instance) { 103 PP_Resource ResourceCreationProxy::CreateBroker(PP_Instance instance) {
87 return PPB_Broker_Proxy::CreateProxyResource(instance); 104 return PPB_Broker_Proxy::CreateProxyResource(instance);
88 } 105 }
89 106
90 PP_Resource ResourceCreationProxy::CreateBuffer(PP_Instance instance, 107 PP_Resource ResourceCreationProxy::CreateBuffer(PP_Instance instance,
91 uint32_t size) { 108 uint32_t size) {
92 return PPB_Buffer_Proxy::CreateProxyResource(instance, size); 109 return PPB_Buffer_Proxy::CreateProxyResource(instance, size);
93 } 110 }
94 111
95 PP_Resource ResourceCreationProxy::CreateContext3D( 112 PP_Resource ResourceCreationProxy::CreateContext3D(
(...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after
417 *result_image_handle = dispatcher()->ShareHandleWithRemote(ih, false); 434 *result_image_handle = dispatcher()->ShareHandleWithRemote(ih, false);
418 #else 435 #else
419 *result_image_handle = ImageData::HandleFromInt(handle); 436 *result_image_handle = ImageData::HandleFromInt(handle);
420 #endif 437 #endif
421 } 438 }
422 } 439 }
423 } 440 }
424 441
425 } // namespace proxy 442 } // namespace proxy
426 } // namespace ppapi 443 } // 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