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

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

Issue 9693024: Add the PPAPI X509 Certificate interface and implementation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 9 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/plugin_dispatcher.h" 10 #include "ppapi/proxy/plugin_dispatcher.h"
(...skipping 15 matching lines...) Expand all
26 #include "ppapi/proxy/ppb_host_resolver_private_proxy.h" 26 #include "ppapi/proxy/ppb_host_resolver_private_proxy.h"
27 #include "ppapi/proxy/ppb_image_data_proxy.h" 27 #include "ppapi/proxy/ppb_image_data_proxy.h"
28 #include "ppapi/proxy/ppb_network_monitor_private_proxy.h" 28 #include "ppapi/proxy/ppb_network_monitor_private_proxy.h"
29 #include "ppapi/proxy/ppb_talk_private_proxy.h" 29 #include "ppapi/proxy/ppb_talk_private_proxy.h"
30 #include "ppapi/proxy/ppb_tcp_server_socket_private_proxy.h" 30 #include "ppapi/proxy/ppb_tcp_server_socket_private_proxy.h"
31 #include "ppapi/proxy/ppb_tcp_socket_private_proxy.h" 31 #include "ppapi/proxy/ppb_tcp_socket_private_proxy.h"
32 #include "ppapi/proxy/ppb_udp_socket_private_proxy.h" 32 #include "ppapi/proxy/ppb_udp_socket_private_proxy.h"
33 #include "ppapi/proxy/ppb_url_loader_proxy.h" 33 #include "ppapi/proxy/ppb_url_loader_proxy.h"
34 #include "ppapi/proxy/ppb_video_capture_proxy.h" 34 #include "ppapi/proxy/ppb_video_capture_proxy.h"
35 #include "ppapi/proxy/ppb_video_decoder_proxy.h" 35 #include "ppapi/proxy/ppb_video_decoder_proxy.h"
36 #include "ppapi/proxy/ppb_x509_certificate_private_proxy.h"
36 #include "ppapi/shared_impl/api_id.h" 37 #include "ppapi/shared_impl/api_id.h"
37 #include "ppapi/shared_impl/function_group_base.h" 38 #include "ppapi/shared_impl/function_group_base.h"
38 #include "ppapi/shared_impl/host_resource.h" 39 #include "ppapi/shared_impl/host_resource.h"
39 #include "ppapi/shared_impl/ppb_audio_config_shared.h" 40 #include "ppapi/shared_impl/ppb_audio_config_shared.h"
40 #include "ppapi/shared_impl/ppb_input_event_shared.h" 41 #include "ppapi/shared_impl/ppb_input_event_shared.h"
41 #include "ppapi/shared_impl/ppb_resource_array_shared.h" 42 #include "ppapi/shared_impl/ppb_resource_array_shared.h"
42 #include "ppapi/shared_impl/ppb_url_request_info_shared.h" 43 #include "ppapi/shared_impl/ppb_url_request_info_shared.h"
43 #include "ppapi/shared_impl/private/ppb_browser_font_trusted_shared.h" 44 #include "ppapi/shared_impl/private/ppb_browser_font_trusted_shared.h"
44 #include "ppapi/shared_impl/var.h" 45 #include "ppapi/shared_impl/var.h"
45 #include "ppapi/thunk/enter.h" 46 #include "ppapi/thunk/enter.h"
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after
363 data.event_time_stamp = time_stamp; 364 data.event_time_stamp = time_stamp;
364 data.event_modifiers = modifiers; 365 data.event_modifiers = modifiers;
365 data.wheel_delta = *wheel_delta; 366 data.wheel_delta = *wheel_delta;
366 data.wheel_ticks = *wheel_ticks; 367 data.wheel_ticks = *wheel_ticks;
367 data.wheel_scroll_by_page = PP_ToBool(scroll_by_page); 368 data.wheel_scroll_by_page = PP_ToBool(scroll_by_page);
368 369
369 return (new PPB_InputEvent_Shared(OBJECT_IS_PROXY, 370 return (new PPB_InputEvent_Shared(OBJECT_IS_PROXY,
370 instance, data))->GetReference(); 371 instance, data))->GetReference();
371 } 372 }
372 373
374 #if !defined(OS_NACL)
375 PP_Resource ResourceCreationProxy::CreateX509CertificatePrivate(
376 PP_Instance instance) {
377 return PPB_X509Certificate_Private_Proxy::CreateProxyResource(instance);
378 }
379 #endif
380
381
373 bool ResourceCreationProxy::Send(IPC::Message* msg) { 382 bool ResourceCreationProxy::Send(IPC::Message* msg) {
374 return dispatcher()->Send(msg); 383 return dispatcher()->Send(msg);
375 } 384 }
376 385
377 bool ResourceCreationProxy::OnMessageReceived(const IPC::Message& msg) { 386 bool ResourceCreationProxy::OnMessageReceived(const IPC::Message& msg) {
378 return false; 387 return false;
379 } 388 }
380 389
381 } // namespace proxy 390 } // namespace proxy
382 } // namespace ppapi 391 } // namespace ppapi
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698