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

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

Issue 10699066: Add PPB_ImageData and PPB_Graphics2D to the untrusted NaCl build of the proxy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 5 months 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/thunk/interfaces_ppb_public_stable.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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"
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 } 177 }
178 178
179 PP_Resource ResourceCreationProxy::CreateImageData(PP_Instance instance, 179 PP_Resource ResourceCreationProxy::CreateImageData(PP_Instance instance,
180 PP_ImageDataFormat format, 180 PP_ImageDataFormat format,
181 const PP_Size& size, 181 const PP_Size& size,
182 PP_Bool init_to_zero) { 182 PP_Bool init_to_zero) {
183 return PPB_ImageData_Proxy::CreateProxyResource(instance, format, size, 183 return PPB_ImageData_Proxy::CreateProxyResource(instance, format, size,
184 init_to_zero); 184 init_to_zero);
185 } 185 }
186 186
187 PP_Resource ResourceCreationProxy::CreateGraphics2D(PP_Instance instance,
188 const PP_Size& size,
189 PP_Bool is_always_opaque) {
190 return PPB_Graphics2D_Proxy::CreateProxyResource(instance, size,
191 is_always_opaque);
192 }
193
187 #if !defined(OS_NACL) 194 #if !defined(OS_NACL)
188 PP_Resource ResourceCreationProxy::CreateAudioTrusted(PP_Instance instance) { 195 PP_Resource ResourceCreationProxy::CreateAudioTrusted(PP_Instance instance) {
189 // Proxied plugins can't create trusted audio devices. 196 // Proxied plugins can't create trusted audio devices.
190 return 0; 197 return 0;
191 } 198 }
192 199
193 PP_Resource ResourceCreationProxy::CreateAudioInput0_1( 200 PP_Resource ResourceCreationProxy::CreateAudioInput0_1(
194 PP_Instance instance, 201 PP_Instance instance,
195 PP_Resource config_id, 202 PP_Resource config_id,
196 PPB_AudioInput_Callback audio_input_callback, 203 PPB_AudioInput_Callback audio_input_callback,
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 PP_Instance instance, 253 PP_Instance instance,
247 const PP_Flash_Menu* menu_data) { 254 const PP_Flash_Menu* menu_data) {
248 return PPB_Flash_Menu_Proxy::CreateProxyResource(instance, menu_data); 255 return PPB_Flash_Menu_Proxy::CreateProxyResource(instance, menu_data);
249 } 256 }
250 257
251 PP_Resource ResourceCreationProxy::CreateFlashMessageLoop( 258 PP_Resource ResourceCreationProxy::CreateFlashMessageLoop(
252 PP_Instance instance) { 259 PP_Instance instance) {
253 return PPB_Flash_MessageLoop_Proxy::CreateProxyResource(instance); 260 return PPB_Flash_MessageLoop_Proxy::CreateProxyResource(instance);
254 } 261 }
255 262
256 PP_Resource ResourceCreationProxy::CreateGraphics2D(PP_Instance instance,
257 const PP_Size& size,
258 PP_Bool is_always_opaque) {
259 return PPB_Graphics2D_Proxy::CreateProxyResource(instance, size,
260 is_always_opaque);
261 }
262
263 PP_Resource ResourceCreationProxy::CreateHostResolverPrivate( 263 PP_Resource ResourceCreationProxy::CreateHostResolverPrivate(
264 PP_Instance instance) { 264 PP_Instance instance) {
265 return PPB_HostResolver_Private_Proxy::CreateProxyResource(instance); 265 return PPB_HostResolver_Private_Proxy::CreateProxyResource(instance);
266 } 266 }
267 267
268 PP_Resource ResourceCreationProxy::CreateNetworkMonitor( 268 PP_Resource ResourceCreationProxy::CreateNetworkMonitor(
269 PP_Instance instance, 269 PP_Instance instance,
270 PPB_NetworkMonitor_Callback callback, 270 PPB_NetworkMonitor_Callback callback,
271 void* user_data) { 271 void* user_data) {
272 return PPB_NetworkMonitor_Private_Proxy::CreateProxyResource( 272 return PPB_NetworkMonitor_Private_Proxy::CreateProxyResource(
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
349 bool ResourceCreationProxy::Send(IPC::Message* msg) { 349 bool ResourceCreationProxy::Send(IPC::Message* msg) {
350 return dispatcher()->Send(msg); 350 return dispatcher()->Send(msg);
351 } 351 }
352 352
353 bool ResourceCreationProxy::OnMessageReceived(const IPC::Message& msg) { 353 bool ResourceCreationProxy::OnMessageReceived(const IPC::Message& msg) {
354 return false; 354 return false;
355 } 355 }
356 356
357 } // namespace proxy 357 } // namespace proxy
358 } // namespace ppapi 358 } // namespace ppapi
OLDNEW
« no previous file with comments | « ppapi/proxy/resource_creation_proxy.h ('k') | ppapi/thunk/interfaces_ppb_public_stable.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698