Chromium Code Reviews

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

Issue 1726303003: ppapi: PPB_VpnProvider: Define API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove GetUnbindEvent Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
« no previous file with comments | « ppapi/proxy/resource_creation_proxy.h ('k') | ppapi/shared_impl/resource.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 "build/build_config.h" 7 #include "build/build_config.h"
8 #include "ppapi/c/pp_errors.h" 8 #include "ppapi/c/pp_errors.h"
9 #include "ppapi/c/pp_size.h" 9 #include "ppapi/c/pp_size.h"
10 #include "ppapi/proxy/audio_encoder_resource.h" 10 #include "ppapi/proxy/audio_encoder_resource.h"
(...skipping 391 matching lines...)
402 402
403 PP_Resource ResourceCreationProxy::CreateVideoEncoder(PP_Instance instance) { 403 PP_Resource ResourceCreationProxy::CreateVideoEncoder(PP_Instance instance) {
404 return (new VideoEncoderResource(GetConnection(), instance))->GetReference(); 404 return (new VideoEncoderResource(GetConnection(), instance))->GetReference();
405 } 405 }
406 406
407 PP_Resource ResourceCreationProxy::CreateVideoSource( 407 PP_Resource ResourceCreationProxy::CreateVideoSource(
408 PP_Instance instance) { 408 PP_Instance instance) {
409 return (new VideoSourceResource(GetConnection(), instance))->GetReference(); 409 return (new VideoSourceResource(GetConnection(), instance))->GetReference();
410 } 410 }
411 411
412 PP_Resource ResourceCreationProxy::CreateVpnProvider(PP_Instance instance) {
413 return 0;
414 }
415
412 PP_Resource ResourceCreationProxy::CreateWebSocket(PP_Instance instance) { 416 PP_Resource ResourceCreationProxy::CreateWebSocket(PP_Instance instance) {
413 return (new WebSocketResource(GetConnection(), instance))->GetReference(); 417 return (new WebSocketResource(GetConnection(), instance))->GetReference();
414 } 418 }
415 419
416 PP_Resource ResourceCreationProxy::CreateX509CertificatePrivate( 420 PP_Resource ResourceCreationProxy::CreateX509CertificatePrivate(
417 PP_Instance instance) { 421 PP_Instance instance) {
418 return PPB_X509Certificate_Private_Proxy::CreateProxyResource(instance); 422 return PPB_X509Certificate_Private_Proxy::CreateProxyResource(instance);
419 } 423 }
420 424
421 #if !defined(OS_NACL) 425 #if !defined(OS_NACL)
(...skipping 79 matching lines...)
501 bool ResourceCreationProxy::OnMessageReceived(const IPC::Message& msg) { 505 bool ResourceCreationProxy::OnMessageReceived(const IPC::Message& msg) {
502 return false; 506 return false;
503 } 507 }
504 508
505 Connection ResourceCreationProxy::GetConnection() { 509 Connection ResourceCreationProxy::GetConnection() {
506 return Connection(PluginGlobals::Get()->GetBrowserSender(), dispatcher()); 510 return Connection(PluginGlobals::Get()->GetBrowserSender(), dispatcher());
507 } 511 }
508 512
509 } // namespace proxy 513 } // namespace proxy
510 } // namespace ppapi 514 } // namespace ppapi
OLDNEW
« no previous file with comments | « ppapi/proxy/resource_creation_proxy.h ('k') | ppapi/shared_impl/resource.h » ('j') | no next file with comments »

Powered by Google App Engine