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

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

Issue 24039002: Pepper API implementation for output protection. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: fix build for non-chromeos Created 7 years, 2 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/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/proxy/audio_input_resource.h" 9 #include "ppapi/proxy/audio_input_resource.h"
10 #include "ppapi/proxy/connection.h" 10 #include "ppapi/proxy/connection.h"
11 #include "ppapi/proxy/ext_crx_file_system_private_resource.h" 11 #include "ppapi/proxy/ext_crx_file_system_private_resource.h"
12 #include "ppapi/proxy/file_chooser_resource.h" 12 #include "ppapi/proxy/file_chooser_resource.h"
13 #include "ppapi/proxy/file_io_resource.h" 13 #include "ppapi/proxy/file_io_resource.h"
14 #include "ppapi/proxy/file_ref_resource.h" 14 #include "ppapi/proxy/file_ref_resource.h"
15 #include "ppapi/proxy/file_system_resource.h" 15 #include "ppapi/proxy/file_system_resource.h"
16 #include "ppapi/proxy/flash_drm_resource.h" 16 #include "ppapi/proxy/flash_drm_resource.h"
17 #include "ppapi/proxy/flash_font_file_resource.h" 17 #include "ppapi/proxy/flash_font_file_resource.h"
18 #include "ppapi/proxy/flash_menu_resource.h" 18 #include "ppapi/proxy/flash_menu_resource.h"
19 #include "ppapi/proxy/graphics_2d_resource.h" 19 #include "ppapi/proxy/graphics_2d_resource.h"
20 #include "ppapi/proxy/host_resolver_private_resource.h" 20 #include "ppapi/proxy/host_resolver_private_resource.h"
21 #include "ppapi/proxy/host_resolver_resource.h" 21 #include "ppapi/proxy/host_resolver_resource.h"
22 #include "ppapi/proxy/net_address_resource.h" 22 #include "ppapi/proxy/net_address_resource.h"
23 #include "ppapi/proxy/network_monitor_resource.h" 23 #include "ppapi/proxy/network_monitor_resource.h"
24 #include "ppapi/proxy/output_protection_resource.h"
24 #include "ppapi/proxy/platform_verification_private_resource.h" 25 #include "ppapi/proxy/platform_verification_private_resource.h"
25 #include "ppapi/proxy/plugin_dispatcher.h" 26 #include "ppapi/proxy/plugin_dispatcher.h"
26 #include "ppapi/proxy/plugin_globals.h" 27 #include "ppapi/proxy/plugin_globals.h"
27 #include "ppapi/proxy/plugin_resource_tracker.h" 28 #include "ppapi/proxy/plugin_resource_tracker.h"
28 #include "ppapi/proxy/ppapi_messages.h" 29 #include "ppapi/proxy/ppapi_messages.h"
29 #include "ppapi/proxy/ppb_audio_proxy.h" 30 #include "ppapi/proxy/ppb_audio_proxy.h"
30 #include "ppapi/proxy/ppb_broker_proxy.h" 31 #include "ppapi/proxy/ppb_broker_proxy.h"
31 #include "ppapi/proxy/ppb_buffer_proxy.h" 32 #include "ppapi/proxy/ppb_buffer_proxy.h"
32 #include "ppapi/proxy/ppb_flash_message_loop_proxy.h" 33 #include "ppapi/proxy/ppb_flash_message_loop_proxy.h"
33 #include "ppapi/proxy/ppb_graphics_3d_proxy.h" 34 #include "ppapi/proxy/ppb_graphics_3d_proxy.h"
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 return (new NetAddressResource(GetConnection(), instance, 307 return (new NetAddressResource(GetConnection(), instance,
307 private_addr))->GetReference(); 308 private_addr))->GetReference();
308 } 309 }
309 310
310 PP_Resource ResourceCreationProxy::CreateNetworkMonitor( 311 PP_Resource ResourceCreationProxy::CreateNetworkMonitor(
311 PP_Instance instance) { 312 PP_Instance instance) {
312 return (new NetworkMonitorResource(GetConnection(), instance))-> 313 return (new NetworkMonitorResource(GetConnection(), instance))->
313 GetReference(); 314 GetReference();
314 } 315 }
315 316
317 PP_Resource ResourceCreationProxy::CreateOutputProtectionPrivate(
318 PP_Instance instance) {
319 return (new OutputProtectionResource(GetConnection(), instance))->
320 GetReference();
321 }
322
316 PP_Resource ResourceCreationProxy::CreatePrinting(PP_Instance instance) { 323 PP_Resource ResourceCreationProxy::CreatePrinting(PP_Instance instance) {
317 return (new PrintingResource(GetConnection(), instance))->GetReference(); 324 return (new PrintingResource(GetConnection(), instance))->GetReference();
318 } 325 }
319 326
320 PP_Resource ResourceCreationProxy::CreateTCPServerSocketPrivate( 327 PP_Resource ResourceCreationProxy::CreateTCPServerSocketPrivate(
321 PP_Instance instance) { 328 PP_Instance instance) {
322 return (new TCPServerSocketPrivateResource(GetConnection(), instance))-> 329 return (new TCPServerSocketPrivateResource(GetConnection(), instance))->
323 GetReference(); 330 GetReference();
324 } 331 }
325 332
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
465 bool ResourceCreationProxy::OnMessageReceived(const IPC::Message& msg) { 472 bool ResourceCreationProxy::OnMessageReceived(const IPC::Message& msg) {
466 return false; 473 return false;
467 } 474 }
468 475
469 Connection ResourceCreationProxy::GetConnection() { 476 Connection ResourceCreationProxy::GetConnection() {
470 return Connection(PluginGlobals::Get()->GetBrowserSender(), dispatcher()); 477 return Connection(PluginGlobals::Get()->GetBrowserSender(), dispatcher());
471 } 478 }
472 479
473 } // namespace proxy 480 } // namespace proxy
474 } // namespace ppapi 481 } // 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