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

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

Issue 859313002: Pepper: Define PPB_VideoEncoder API + Implementation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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/proxy/video_encoder_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"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 #include "ppapi/proxy/tcp_socket_resource.h" 43 #include "ppapi/proxy/tcp_socket_resource.h"
44 #include "ppapi/proxy/truetype_font_resource.h" 44 #include "ppapi/proxy/truetype_font_resource.h"
45 #include "ppapi/proxy/udp_socket_private_resource.h" 45 #include "ppapi/proxy/udp_socket_private_resource.h"
46 #include "ppapi/proxy/udp_socket_resource.h" 46 #include "ppapi/proxy/udp_socket_resource.h"
47 #include "ppapi/proxy/url_loader_resource.h" 47 #include "ppapi/proxy/url_loader_resource.h"
48 #include "ppapi/proxy/url_request_info_resource.h" 48 #include "ppapi/proxy/url_request_info_resource.h"
49 #include "ppapi/proxy/url_response_info_resource.h" 49 #include "ppapi/proxy/url_response_info_resource.h"
50 #include "ppapi/proxy/video_capture_resource.h" 50 #include "ppapi/proxy/video_capture_resource.h"
51 #include "ppapi/proxy/video_decoder_resource.h" 51 #include "ppapi/proxy/video_decoder_resource.h"
52 #include "ppapi/proxy/video_destination_resource.h" 52 #include "ppapi/proxy/video_destination_resource.h"
53 #include "ppapi/proxy/video_encoder_resource.h"
53 #include "ppapi/proxy/video_source_resource.h" 54 #include "ppapi/proxy/video_source_resource.h"
54 #include "ppapi/proxy/websocket_resource.h" 55 #include "ppapi/proxy/websocket_resource.h"
55 #include "ppapi/shared_impl/api_id.h" 56 #include "ppapi/shared_impl/api_id.h"
56 #include "ppapi/shared_impl/host_resource.h" 57 #include "ppapi/shared_impl/host_resource.h"
57 #include "ppapi/shared_impl/ppb_audio_config_shared.h" 58 #include "ppapi/shared_impl/ppb_audio_config_shared.h"
58 #include "ppapi/shared_impl/ppb_audio_shared.h" 59 #include "ppapi/shared_impl/ppb_audio_shared.h"
59 #include "ppapi/shared_impl/ppb_input_event_shared.h" 60 #include "ppapi/shared_impl/ppb_input_event_shared.h"
60 #include "ppapi/shared_impl/var.h" 61 #include "ppapi/shared_impl/var.h"
61 #include "ppapi/thunk/enter.h" 62 #include "ppapi/thunk/enter.h"
62 #include "ppapi/thunk/ppb_image_data_api.h" 63 #include "ppapi/thunk/ppb_image_data_api.h"
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after
380 PP_Resource ResourceCreationProxy::CreateVideoDecoder(PP_Instance instance) { 381 PP_Resource ResourceCreationProxy::CreateVideoDecoder(PP_Instance instance) {
381 return (new VideoDecoderResource(GetConnection(), instance))->GetReference(); 382 return (new VideoDecoderResource(GetConnection(), instance))->GetReference();
382 } 383 }
383 384
384 PP_Resource ResourceCreationProxy::CreateVideoDestination( 385 PP_Resource ResourceCreationProxy::CreateVideoDestination(
385 PP_Instance instance) { 386 PP_Instance instance) {
386 return (new VideoDestinationResource(GetConnection(), 387 return (new VideoDestinationResource(GetConnection(),
387 instance))->GetReference(); 388 instance))->GetReference();
388 } 389 }
389 390
391 PP_Resource ResourceCreationProxy::CreateVideoEncoder(PP_Instance instance) {
392 return (new VideoEncoderResource(GetConnection(), instance))->GetReference();
393 }
394
390 PP_Resource ResourceCreationProxy::CreateVideoSource( 395 PP_Resource ResourceCreationProxy::CreateVideoSource(
391 PP_Instance instance) { 396 PP_Instance instance) {
392 return (new VideoSourceResource(GetConnection(), instance))->GetReference(); 397 return (new VideoSourceResource(GetConnection(), instance))->GetReference();
393 } 398 }
394 399
395 PP_Resource ResourceCreationProxy::CreateWebSocket(PP_Instance instance) { 400 PP_Resource ResourceCreationProxy::CreateWebSocket(PP_Instance instance) {
396 return (new WebSocketResource(GetConnection(), instance))->GetReference(); 401 return (new WebSocketResource(GetConnection(), instance))->GetReference();
397 } 402 }
398 403
399 PP_Resource ResourceCreationProxy::CreateX509CertificatePrivate( 404 PP_Resource ResourceCreationProxy::CreateX509CertificatePrivate(
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
494 bool ResourceCreationProxy::OnMessageReceived(const IPC::Message& msg) { 499 bool ResourceCreationProxy::OnMessageReceived(const IPC::Message& msg) {
495 return false; 500 return false;
496 } 501 }
497 502
498 Connection ResourceCreationProxy::GetConnection() { 503 Connection ResourceCreationProxy::GetConnection() {
499 return Connection(PluginGlobals::Get()->GetBrowserSender(), dispatcher()); 504 return Connection(PluginGlobals::Get()->GetBrowserSender(), dispatcher());
500 } 505 }
501 506
502 } // namespace proxy 507 } // namespace proxy
503 } // namespace ppapi 508 } // namespace ppapi
OLDNEW
« no previous file with comments | « ppapi/proxy/resource_creation_proxy.h ('k') | ppapi/proxy/video_encoder_resource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698