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

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

Issue 10826026: Add a printing resource (as a new style resource) to fetch the default print settings (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
« 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 "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 19 matching lines...) Expand all
30 #include "ppapi/proxy/ppb_image_data_proxy.h" 30 #include "ppapi/proxy/ppb_image_data_proxy.h"
31 #include "ppapi/proxy/ppb_network_monitor_private_proxy.h" 31 #include "ppapi/proxy/ppb_network_monitor_private_proxy.h"
32 #include "ppapi/proxy/ppb_talk_private_proxy.h" 32 #include "ppapi/proxy/ppb_talk_private_proxy.h"
33 #include "ppapi/proxy/ppb_tcp_server_socket_private_proxy.h" 33 #include "ppapi/proxy/ppb_tcp_server_socket_private_proxy.h"
34 #include "ppapi/proxy/ppb_tcp_socket_private_proxy.h" 34 #include "ppapi/proxy/ppb_tcp_socket_private_proxy.h"
35 #include "ppapi/proxy/ppb_udp_socket_private_proxy.h" 35 #include "ppapi/proxy/ppb_udp_socket_private_proxy.h"
36 #include "ppapi/proxy/ppb_url_loader_proxy.h" 36 #include "ppapi/proxy/ppb_url_loader_proxy.h"
37 #include "ppapi/proxy/ppb_video_capture_proxy.h" 37 #include "ppapi/proxy/ppb_video_capture_proxy.h"
38 #include "ppapi/proxy/ppb_video_decoder_proxy.h" 38 #include "ppapi/proxy/ppb_video_decoder_proxy.h"
39 #include "ppapi/proxy/ppb_x509_certificate_private_proxy.h" 39 #include "ppapi/proxy/ppb_x509_certificate_private_proxy.h"
40 #include "ppapi/proxy/printing_resource.h"
40 #include "ppapi/shared_impl/api_id.h" 41 #include "ppapi/shared_impl/api_id.h"
41 #include "ppapi/shared_impl/host_resource.h" 42 #include "ppapi/shared_impl/host_resource.h"
42 #include "ppapi/shared_impl/ppb_audio_config_shared.h" 43 #include "ppapi/shared_impl/ppb_audio_config_shared.h"
43 #include "ppapi/shared_impl/ppb_input_event_shared.h" 44 #include "ppapi/shared_impl/ppb_input_event_shared.h"
44 #include "ppapi/shared_impl/ppb_resource_array_shared.h" 45 #include "ppapi/shared_impl/ppb_resource_array_shared.h"
45 #include "ppapi/shared_impl/ppb_url_request_info_shared.h" 46 #include "ppapi/shared_impl/ppb_url_request_info_shared.h"
46 #include "ppapi/shared_impl/private/ppb_browser_font_trusted_shared.h" 47 #include "ppapi/shared_impl/private/ppb_browser_font_trusted_shared.h"
47 #include "ppapi/shared_impl/var.h" 48 #include "ppapi/shared_impl/var.h"
48 #include "ppapi/thunk/enter.h" 49 #include "ppapi/thunk/enter.h"
49 #include "ppapi/thunk/ppb_image_data_api.h" 50 #include "ppapi/thunk/ppb_image_data_api.h"
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
317 } 318 }
318 319
319 PP_Resource ResourceCreationProxy::CreateNetworkMonitor( 320 PP_Resource ResourceCreationProxy::CreateNetworkMonitor(
320 PP_Instance instance, 321 PP_Instance instance,
321 PPB_NetworkMonitor_Callback callback, 322 PPB_NetworkMonitor_Callback callback,
322 void* user_data) { 323 void* user_data) {
323 return PPB_NetworkMonitor_Private_Proxy::CreateProxyResource( 324 return PPB_NetworkMonitor_Private_Proxy::CreateProxyResource(
324 instance, callback, user_data); 325 instance, callback, user_data);
325 } 326 }
326 327
328 PP_Resource ResourceCreationProxy::CreatePrinting(PP_Instance instance) {
329 return (new PrintingResource(GetConnection(), instance))->GetReference();
330 }
331
327 PP_Resource ResourceCreationProxy::CreateScrollbar(PP_Instance instance, 332 PP_Resource ResourceCreationProxy::CreateScrollbar(PP_Instance instance,
328 PP_Bool vertical) { 333 PP_Bool vertical) {
329 NOTIMPLEMENTED(); // Not proxied yet. 334 NOTIMPLEMENTED(); // Not proxied yet.
330 return 0; 335 return 0;
331 } 336 }
332 337
333 PP_Resource ResourceCreationProxy::CreateTalk(PP_Instance instance) { 338 PP_Resource ResourceCreationProxy::CreateTalk(PP_Instance instance) {
334 return PPB_Talk_Private_Proxy::CreateProxyResource(instance); 339 return PPB_Talk_Private_Proxy::CreateProxyResource(instance);
335 } 340 }
336 341
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
369 } 374 }
370 375
371 Connection ResourceCreationProxy::GetConnection() { 376 Connection ResourceCreationProxy::GetConnection() {
372 return Connection( 377 return Connection(
373 PluginGlobals::Get()->plugin_proxy_delegate()->GetBrowserSender(), 378 PluginGlobals::Get()->plugin_proxy_delegate()->GetBrowserSender(),
374 dispatcher()); 379 dispatcher());
375 } 380 }
376 381
377 } // namespace proxy 382 } // namespace proxy
378 } // namespace ppapi 383 } // 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
This is Rietveld 408576698