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

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

Issue 13771020: Add Pepper VideoReader and VideoWriter plumbing (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase, clean up some headers. Created 7 years, 7 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/proxy/video_destination_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/audio_input_resource.h" 10 #include "ppapi/proxy/audio_input_resource.h"
(...skipping 25 matching lines...) Expand all
36 #include "ppapi/proxy/ppb_url_loader_proxy.h" 36 #include "ppapi/proxy/ppb_url_loader_proxy.h"
37 #include "ppapi/proxy/ppb_video_decoder_proxy.h" 37 #include "ppapi/proxy/ppb_video_decoder_proxy.h"
38 #include "ppapi/proxy/ppb_x509_certificate_private_proxy.h" 38 #include "ppapi/proxy/ppb_x509_certificate_private_proxy.h"
39 #include "ppapi/proxy/printing_resource.h" 39 #include "ppapi/proxy/printing_resource.h"
40 #include "ppapi/proxy/talk_resource.h" 40 #include "ppapi/proxy/talk_resource.h"
41 #include "ppapi/proxy/truetype_font_resource.h" 41 #include "ppapi/proxy/truetype_font_resource.h"
42 #include "ppapi/proxy/udp_socket_private_resource.h" 42 #include "ppapi/proxy/udp_socket_private_resource.h"
43 #include "ppapi/proxy/url_request_info_resource.h" 43 #include "ppapi/proxy/url_request_info_resource.h"
44 #include "ppapi/proxy/url_response_info_resource.h" 44 #include "ppapi/proxy/url_response_info_resource.h"
45 #include "ppapi/proxy/video_capture_resource.h" 45 #include "ppapi/proxy/video_capture_resource.h"
46 #include "ppapi/proxy/video_destination_resource.h"
47 #include "ppapi/proxy/video_source_resource.h"
46 #include "ppapi/proxy/websocket_resource.h" 48 #include "ppapi/proxy/websocket_resource.h"
47 #include "ppapi/shared_impl/api_id.h" 49 #include "ppapi/shared_impl/api_id.h"
48 #include "ppapi/shared_impl/host_resource.h" 50 #include "ppapi/shared_impl/host_resource.h"
49 #include "ppapi/shared_impl/ppb_audio_config_shared.h" 51 #include "ppapi/shared_impl/ppb_audio_config_shared.h"
50 #include "ppapi/shared_impl/ppb_input_event_shared.h" 52 #include "ppapi/shared_impl/ppb_input_event_shared.h"
51 #include "ppapi/shared_impl/ppb_resource_array_shared.h" 53 #include "ppapi/shared_impl/ppb_resource_array_shared.h"
52 #include "ppapi/shared_impl/var.h" 54 #include "ppapi/shared_impl/var.h"
53 #include "ppapi/thunk/enter.h" 55 #include "ppapi/thunk/enter.h"
54 #include "ppapi/thunk/ppb_image_data_api.h" 56 #include "ppapi/thunk/ppb_image_data_api.h"
55 57
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after
383 } 385 }
384 386
385 PP_Resource ResourceCreationProxy::CreateVideoDecoder( 387 PP_Resource ResourceCreationProxy::CreateVideoDecoder(
386 PP_Instance instance, 388 PP_Instance instance,
387 PP_Resource context3d_id, 389 PP_Resource context3d_id,
388 PP_VideoDecoder_Profile profile) { 390 PP_VideoDecoder_Profile profile) {
389 return PPB_VideoDecoder_Proxy::CreateProxyResource( 391 return PPB_VideoDecoder_Proxy::CreateProxyResource(
390 instance, context3d_id, profile); 392 instance, context3d_id, profile);
391 } 393 }
392 394
395 PP_Resource ResourceCreationProxy::CreateVideoDestination(
396 PP_Instance instance) {
397 return (new VideoDestinationResource(GetConnection(),
398 instance))->GetReference();
399 }
400
401 PP_Resource ResourceCreationProxy::CreateVideoSource(
402 PP_Instance instance) {
403 return (new VideoSourceResource(GetConnection(), instance))->GetReference();
404 }
405
393 #endif // !defined(OS_NACL) 406 #endif // !defined(OS_NACL)
394 407
395 bool ResourceCreationProxy::Send(IPC::Message* msg) { 408 bool ResourceCreationProxy::Send(IPC::Message* msg) {
396 return dispatcher()->Send(msg); 409 return dispatcher()->Send(msg);
397 } 410 }
398 411
399 bool ResourceCreationProxy::OnMessageReceived(const IPC::Message& msg) { 412 bool ResourceCreationProxy::OnMessageReceived(const IPC::Message& msg) {
400 return false; 413 return false;
401 } 414 }
402 415
403 Connection ResourceCreationProxy::GetConnection() { 416 Connection ResourceCreationProxy::GetConnection() {
404 return Connection(PluginGlobals::Get()->GetBrowserSender(), dispatcher()); 417 return Connection(PluginGlobals::Get()->GetBrowserSender(), dispatcher());
405 } 418 }
406 419
407 } // namespace proxy 420 } // namespace proxy
408 } // namespace ppapi 421 } // namespace ppapi
OLDNEW
« no previous file with comments | « ppapi/proxy/resource_creation_proxy.h ('k') | ppapi/proxy/video_destination_resource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698