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

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

Issue 848863002: PPAPI: implement GetSupportedPreviewSizes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix typo: int32->int32_t Created 5 years, 10 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/compositor_resource.h" 10 #include "ppapi/proxy/compositor_resource.h"
11 #include "ppapi/proxy/connection.h" 11 #include "ppapi/proxy/connection.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/image_capture_resource.h"
22 #include "ppapi/proxy/media_stream_video_track_resource.h" 23 #include "ppapi/proxy/media_stream_video_track_resource.h"
23 #include "ppapi/proxy/net_address_resource.h" 24 #include "ppapi/proxy/net_address_resource.h"
24 #include "ppapi/proxy/network_monitor_resource.h" 25 #include "ppapi/proxy/network_monitor_resource.h"
25 #include "ppapi/proxy/output_protection_resource.h" 26 #include "ppapi/proxy/output_protection_resource.h"
26 #include "ppapi/proxy/platform_verification_private_resource.h" 27 #include "ppapi/proxy/platform_verification_private_resource.h"
27 #include "ppapi/proxy/plugin_dispatcher.h" 28 #include "ppapi/proxy/plugin_dispatcher.h"
28 #include "ppapi/proxy/plugin_globals.h" 29 #include "ppapi/proxy/plugin_globals.h"
29 #include "ppapi/proxy/plugin_resource_tracker.h" 30 #include "ppapi/proxy/plugin_resource_tracker.h"
30 #include "ppapi/proxy/ppapi_messages.h" 31 #include "ppapi/proxy/ppapi_messages.h"
31 #include "ppapi/proxy/ppb_audio_proxy.h" 32 #include "ppapi/proxy/ppb_audio_proxy.h"
(...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after
451 if (!flash_menu->Initialize(menu_data)) 452 if (!flash_menu->Initialize(menu_data))
452 return 0; 453 return 0;
453 return flash_menu->GetReference(); 454 return flash_menu->GetReference();
454 } 455 }
455 456
456 PP_Resource ResourceCreationProxy::CreateFlashMessageLoop( 457 PP_Resource ResourceCreationProxy::CreateFlashMessageLoop(
457 PP_Instance instance) { 458 PP_Instance instance) {
458 return PPB_Flash_MessageLoop_Proxy::CreateProxyResource(instance); 459 return PPB_Flash_MessageLoop_Proxy::CreateProxyResource(instance);
459 } 460 }
460 461
462 PP_Resource ResourceCreationProxy::CreateImageCapturePrivate(
463 PP_Instance instance) {
464 return (new ImageCaptureResource(GetConnection(), instance))->GetReference();
465 }
466
461 PP_Resource ResourceCreationProxy::CreatePlatformVerificationPrivate( 467 PP_Resource ResourceCreationProxy::CreatePlatformVerificationPrivate(
462 PP_Instance instance) { 468 PP_Instance instance) {
463 return (new PlatformVerificationPrivateResource(GetConnection(), instance))-> 469 return (new PlatformVerificationPrivateResource(GetConnection(), instance))->
464 GetReference(); 470 GetReference();
465 } 471 }
466 472
467 PP_Resource ResourceCreationProxy::CreateScrollbar(PP_Instance instance, 473 PP_Resource ResourceCreationProxy::CreateScrollbar(PP_Instance instance,
468 PP_Bool vertical) { 474 PP_Bool vertical) {
469 NOTIMPLEMENTED(); // Not proxied yet. 475 NOTIMPLEMENTED(); // Not proxied yet.
470 return 0; 476 return 0;
(...skipping 28 matching lines...) Expand all
499 bool ResourceCreationProxy::OnMessageReceived(const IPC::Message& msg) { 505 bool ResourceCreationProxy::OnMessageReceived(const IPC::Message& msg) {
500 return false; 506 return false;
501 } 507 }
502 508
503 Connection ResourceCreationProxy::GetConnection() { 509 Connection ResourceCreationProxy::GetConnection() {
504 return Connection(PluginGlobals::Get()->GetBrowserSender(), dispatcher()); 510 return Connection(PluginGlobals::Get()->GetBrowserSender(), dispatcher());
505 } 511 }
506 512
507 } // namespace proxy 513 } // namespace proxy
508 } // 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
This is Rietveld 408576698