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

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

Issue 10916040: Add TCP and UDP proxies to NaCl IPC IRT build. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 3 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
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/connection.h" 10 #include "ppapi/proxy/connection.h"
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 220
221 PP_Resource ResourceCreationProxy::CreateGraphics3DRaw( 221 PP_Resource ResourceCreationProxy::CreateGraphics3DRaw(
222 PP_Instance instance, 222 PP_Instance instance,
223 PP_Resource share_context, 223 PP_Resource share_context,
224 const int32_t* attrib_list) { 224 const int32_t* attrib_list) {
225 // Not proxied. The raw creation function is used only in the implementation 225 // Not proxied. The raw creation function is used only in the implementation
226 // of the proxy on the host side. 226 // of the proxy on the host side.
227 return 0; 227 return 0;
228 } 228 }
229 229
230 PP_Resource ResourceCreationProxy::CreateHostResolverPrivate(
231 PP_Instance instance) {
232 return PPB_HostResolver_Private_Proxy::CreateProxyResource(instance);
233 }
234
235 PP_Resource ResourceCreationProxy::CreateTCPServerSocketPrivate(
236 PP_Instance instance) {
237 return PPB_TCPServerSocket_Private_Proxy::CreateProxyResource(instance);
238 }
239
240 PP_Resource ResourceCreationProxy::CreateTCPSocketPrivate(
241 PP_Instance instance) {
242 return PPB_TCPSocket_Private_Proxy::CreateProxyResource(instance);
243 }
244
245 PP_Resource ResourceCreationProxy::CreateUDPSocketPrivate(
246 PP_Instance instance) {
247 return PPB_UDPSocket_Private_Proxy::CreateProxyResource(instance);
248 }
249
250 PP_Resource ResourceCreationProxy::CreateX509CertificatePrivate(
251 PP_Instance instance) {
252 return PPB_X509Certificate_Private_Proxy::CreateProxyResource(instance);
253 }
254
230 #if !defined(OS_NACL) 255 #if !defined(OS_NACL)
231 PP_Resource ResourceCreationProxy::CreateAudioInput0_1( 256 PP_Resource ResourceCreationProxy::CreateAudioInput0_1(
232 PP_Instance instance, 257 PP_Instance instance,
233 PP_Resource config_id, 258 PP_Resource config_id,
234 PPB_AudioInput_Callback audio_input_callback, 259 PPB_AudioInput_Callback audio_input_callback,
235 void* user_data) { 260 void* user_data) {
236 return PPB_AudioInput_Proxy::CreateProxyResource0_1(instance, config_id, 261 return PPB_AudioInput_Proxy::CreateProxyResource0_1(instance, config_id,
237 audio_input_callback, 262 audio_input_callback,
238 user_data); 263 user_data);
239 } 264 }
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 PP_Instance instance, 309 PP_Instance instance,
285 const PP_Flash_Menu* menu_data) { 310 const PP_Flash_Menu* menu_data) {
286 return PPB_Flash_Menu_Proxy::CreateProxyResource(instance, menu_data); 311 return PPB_Flash_Menu_Proxy::CreateProxyResource(instance, menu_data);
287 } 312 }
288 313
289 PP_Resource ResourceCreationProxy::CreateFlashMessageLoop( 314 PP_Resource ResourceCreationProxy::CreateFlashMessageLoop(
290 PP_Instance instance) { 315 PP_Instance instance) {
291 return PPB_Flash_MessageLoop_Proxy::CreateProxyResource(instance); 316 return PPB_Flash_MessageLoop_Proxy::CreateProxyResource(instance);
292 } 317 }
293 318
294 PP_Resource ResourceCreationProxy::CreateHostResolverPrivate(
295 PP_Instance instance) {
296 return PPB_HostResolver_Private_Proxy::CreateProxyResource(instance);
297 }
298
299 PP_Resource ResourceCreationProxy::CreateNetworkMonitor( 319 PP_Resource ResourceCreationProxy::CreateNetworkMonitor(
300 PP_Instance instance, 320 PP_Instance instance,
301 PPB_NetworkMonitor_Callback callback, 321 PPB_NetworkMonitor_Callback callback,
302 void* user_data) { 322 void* user_data) {
303 return PPB_NetworkMonitor_Private_Proxy::CreateProxyResource( 323 return PPB_NetworkMonitor_Private_Proxy::CreateProxyResource(
304 instance, callback, user_data); 324 instance, callback, user_data);
305 } 325 }
306 326
307 PP_Resource ResourceCreationProxy::CreateScrollbar(PP_Instance instance, 327 PP_Resource ResourceCreationProxy::CreateScrollbar(PP_Instance instance,
308 PP_Bool vertical) { 328 PP_Bool vertical) {
309 NOTIMPLEMENTED(); // Not proxied yet. 329 NOTIMPLEMENTED(); // Not proxied yet.
310 return 0; 330 return 0;
311 } 331 }
312 332
313 PP_Resource ResourceCreationProxy::CreateTalk(PP_Instance instance) { 333 PP_Resource ResourceCreationProxy::CreateTalk(PP_Instance instance) {
314 return PPB_Talk_Private_Proxy::CreateProxyResource(instance); 334 return PPB_Talk_Private_Proxy::CreateProxyResource(instance);
315 } 335 }
316 336
317 PP_Resource ResourceCreationProxy::CreateTCPServerSocketPrivate(
318 PP_Instance instance) {
319 return PPB_TCPServerSocket_Private_Proxy::CreateProxyResource(instance);
320 }
321
322 PP_Resource ResourceCreationProxy::CreateTCPSocketPrivate(
323 PP_Instance instance) {
324 return PPB_TCPSocket_Private_Proxy::CreateProxyResource(instance);
325 }
326
327 PP_Resource ResourceCreationProxy::CreateUDPSocketPrivate(
328 PP_Instance instance) {
329 return PPB_UDPSocket_Private_Proxy::CreateProxyResource(instance);
330 }
331
332 PP_Resource ResourceCreationProxy::CreateVideoCapture(PP_Instance instance) { 337 PP_Resource ResourceCreationProxy::CreateVideoCapture(PP_Instance instance) {
333 return PPB_VideoCapture_Proxy::CreateProxyResource(instance); 338 return PPB_VideoCapture_Proxy::CreateProxyResource(instance);
334 } 339 }
335 340
336 PP_Resource ResourceCreationProxy::CreateVideoDecoder( 341 PP_Resource ResourceCreationProxy::CreateVideoDecoder(
337 PP_Instance instance, 342 PP_Instance instance,
338 PP_Resource context3d_id, 343 PP_Resource context3d_id,
339 PP_VideoDecoder_Profile profile) { 344 PP_VideoDecoder_Profile profile) {
340 return PPB_VideoDecoder_Proxy::CreateProxyResource( 345 return PPB_VideoDecoder_Proxy::CreateProxyResource(
341 instance, context3d_id, profile); 346 instance, context3d_id, profile);
342 } 347 }
343 348
344 PP_Resource ResourceCreationProxy::CreateVideoLayer( 349 PP_Resource ResourceCreationProxy::CreateVideoLayer(
345 PP_Instance instance, 350 PP_Instance instance,
346 PP_VideoLayerMode_Dev mode) { 351 PP_VideoLayerMode_Dev mode) {
347 NOTIMPLEMENTED(); 352 NOTIMPLEMENTED();
348 return 0; 353 return 0;
349 } 354 }
350 355
351 PP_Resource ResourceCreationProxy::CreateWebSocket(PP_Instance instance) { 356 PP_Resource ResourceCreationProxy::CreateWebSocket(PP_Instance instance) {
352 NOTIMPLEMENTED(); 357 NOTIMPLEMENTED();
353 return 0; 358 return 0;
354 } 359 }
355 360
356 PP_Resource ResourceCreationProxy::CreateX509CertificatePrivate(
357 PP_Instance instance) {
358 return PPB_X509Certificate_Private_Proxy::CreateProxyResource(instance);
359 }
360 #endif // !defined(OS_NACL) 361 #endif // !defined(OS_NACL)
361 362
362
363 bool ResourceCreationProxy::Send(IPC::Message* msg) { 363 bool ResourceCreationProxy::Send(IPC::Message* msg) {
364 return dispatcher()->Send(msg); 364 return dispatcher()->Send(msg);
365 } 365 }
366 366
367 bool ResourceCreationProxy::OnMessageReceived(const IPC::Message& msg) { 367 bool ResourceCreationProxy::OnMessageReceived(const IPC::Message& msg) {
368 return false; 368 return false;
369 } 369 }
370 370
371 Connection ResourceCreationProxy::GetConnection() { 371 Connection ResourceCreationProxy::GetConnection() {
372 return Connection( 372 return Connection(
373 PluginGlobals::Get()->plugin_proxy_delegate()->GetBrowserSender(), 373 PluginGlobals::Get()->plugin_proxy_delegate()->GetBrowserSender(),
374 dispatcher()); 374 dispatcher());
375 } 375 }
376 376
377 } // namespace proxy 377 } // namespace proxy
378 } // namespace ppapi 378 } // namespace ppapi
OLDNEW
« no previous file with comments | « ppapi/proxy/resource_creation_proxy.h ('k') | ppapi/shared_impl/private/ppb_host_resolver_shared.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698