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

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

Issue 1931513002: ppapi: PPB_VpnProvider: Implement Resource Stub (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@vpn-api-messages
Patch Set: Simplify OnReplyReceived. Fix Windows build. Created 4 years, 6 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
« no previous file with comments | « ppapi/proxy/BUILD.gn ('k') | ppapi/proxy/vpn_provider_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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 #include "ppapi/proxy/udp_socket_private_resource.h" 47 #include "ppapi/proxy/udp_socket_private_resource.h"
48 #include "ppapi/proxy/udp_socket_resource.h" 48 #include "ppapi/proxy/udp_socket_resource.h"
49 #include "ppapi/proxy/url_loader_resource.h" 49 #include "ppapi/proxy/url_loader_resource.h"
50 #include "ppapi/proxy/url_request_info_resource.h" 50 #include "ppapi/proxy/url_request_info_resource.h"
51 #include "ppapi/proxy/url_response_info_resource.h" 51 #include "ppapi/proxy/url_response_info_resource.h"
52 #include "ppapi/proxy/video_capture_resource.h" 52 #include "ppapi/proxy/video_capture_resource.h"
53 #include "ppapi/proxy/video_decoder_resource.h" 53 #include "ppapi/proxy/video_decoder_resource.h"
54 #include "ppapi/proxy/video_destination_resource.h" 54 #include "ppapi/proxy/video_destination_resource.h"
55 #include "ppapi/proxy/video_encoder_resource.h" 55 #include "ppapi/proxy/video_encoder_resource.h"
56 #include "ppapi/proxy/video_source_resource.h" 56 #include "ppapi/proxy/video_source_resource.h"
57 #include "ppapi/proxy/vpn_provider_resource.h"
57 #include "ppapi/proxy/websocket_resource.h" 58 #include "ppapi/proxy/websocket_resource.h"
58 #include "ppapi/shared_impl/api_id.h" 59 #include "ppapi/shared_impl/api_id.h"
59 #include "ppapi/shared_impl/host_resource.h" 60 #include "ppapi/shared_impl/host_resource.h"
60 #include "ppapi/shared_impl/ppb_audio_config_shared.h" 61 #include "ppapi/shared_impl/ppb_audio_config_shared.h"
61 #include "ppapi/shared_impl/ppb_audio_shared.h" 62 #include "ppapi/shared_impl/ppb_audio_shared.h"
62 #include "ppapi/shared_impl/ppb_input_event_shared.h" 63 #include "ppapi/shared_impl/ppb_input_event_shared.h"
63 #include "ppapi/shared_impl/var.h" 64 #include "ppapi/shared_impl/var.h"
64 #include "ppapi/thunk/enter.h" 65 #include "ppapi/thunk/enter.h"
65 #include "ppapi/thunk/ppb_image_data_api.h" 66 #include "ppapi/thunk/ppb_image_data_api.h"
66 67
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after
403 PP_Resource ResourceCreationProxy::CreateVideoEncoder(PP_Instance instance) { 404 PP_Resource ResourceCreationProxy::CreateVideoEncoder(PP_Instance instance) {
404 return (new VideoEncoderResource(GetConnection(), instance))->GetReference(); 405 return (new VideoEncoderResource(GetConnection(), instance))->GetReference();
405 } 406 }
406 407
407 PP_Resource ResourceCreationProxy::CreateVideoSource( 408 PP_Resource ResourceCreationProxy::CreateVideoSource(
408 PP_Instance instance) { 409 PP_Instance instance) {
409 return (new VideoSourceResource(GetConnection(), instance))->GetReference(); 410 return (new VideoSourceResource(GetConnection(), instance))->GetReference();
410 } 411 }
411 412
412 PP_Resource ResourceCreationProxy::CreateVpnProvider(PP_Instance instance) { 413 PP_Resource ResourceCreationProxy::CreateVpnProvider(PP_Instance instance) {
413 return 0; 414 return (new VpnProviderResource(GetConnection(), instance))->GetReference();
414 } 415 }
415 416
416 PP_Resource ResourceCreationProxy::CreateWebSocket(PP_Instance instance) { 417 PP_Resource ResourceCreationProxy::CreateWebSocket(PP_Instance instance) {
417 return (new WebSocketResource(GetConnection(), instance))->GetReference(); 418 return (new WebSocketResource(GetConnection(), instance))->GetReference();
418 } 419 }
419 420
420 PP_Resource ResourceCreationProxy::CreateX509CertificatePrivate( 421 PP_Resource ResourceCreationProxy::CreateX509CertificatePrivate(
421 PP_Instance instance) { 422 PP_Instance instance) {
422 return PPB_X509Certificate_Private_Proxy::CreateProxyResource(instance); 423 return PPB_X509Certificate_Private_Proxy::CreateProxyResource(instance);
423 } 424 }
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
505 bool ResourceCreationProxy::OnMessageReceived(const IPC::Message& msg) { 506 bool ResourceCreationProxy::OnMessageReceived(const IPC::Message& msg) {
506 return false; 507 return false;
507 } 508 }
508 509
509 Connection ResourceCreationProxy::GetConnection() { 510 Connection ResourceCreationProxy::GetConnection() {
510 return Connection(PluginGlobals::Get()->GetBrowserSender(), dispatcher()); 511 return Connection(PluginGlobals::Get()->GetBrowserSender(), dispatcher());
511 } 512 }
512 513
513 } // namespace proxy 514 } // namespace proxy
514 } // namespace ppapi 515 } // namespace ppapi
OLDNEW
« no previous file with comments | « ppapi/proxy/BUILD.gn ('k') | ppapi/proxy/vpn_provider_resource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698