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

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

Issue 365153003: Pepper: add PPB_VideoEncoder interface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update API to prevent the user from dealing with buffer management Created 6 years, 5 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"
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after
378 PP_Resource ResourceCreationProxy::CreateVideoDecoder(PP_Instance instance) { 378 PP_Resource ResourceCreationProxy::CreateVideoDecoder(PP_Instance instance) {
379 return (new VideoDecoderResource(GetConnection(), instance))->GetReference(); 379 return (new VideoDecoderResource(GetConnection(), instance))->GetReference();
380 } 380 }
381 381
382 PP_Resource ResourceCreationProxy::CreateVideoDestination( 382 PP_Resource ResourceCreationProxy::CreateVideoDestination(
383 PP_Instance instance) { 383 PP_Instance instance) {
384 return (new VideoDestinationResource(GetConnection(), 384 return (new VideoDestinationResource(GetConnection(),
385 instance))->GetReference(); 385 instance))->GetReference();
386 } 386 }
387 387
388 PP_Resource ResourceCreationProxy::CreateVideoEncoder(PP_Instance instance) {
389 NOTIMPLEMENTED(); // Not proxied yet.
390 return 0;
391 }
392
388 PP_Resource ResourceCreationProxy::CreateVideoSource( 393 PP_Resource ResourceCreationProxy::CreateVideoSource(
389 PP_Instance instance) { 394 PP_Instance instance) {
390 return (new VideoSourceResource(GetConnection(), instance))->GetReference(); 395 return (new VideoSourceResource(GetConnection(), instance))->GetReference();
391 } 396 }
392 397
393 PP_Resource ResourceCreationProxy::CreateWebSocket(PP_Instance instance) { 398 PP_Resource ResourceCreationProxy::CreateWebSocket(PP_Instance instance) {
394 return (new WebSocketResource(GetConnection(), instance))->GetReference(); 399 return (new WebSocketResource(GetConnection(), instance))->GetReference();
395 } 400 }
396 401
397 PP_Resource ResourceCreationProxy::CreateX509CertificatePrivate( 402 PP_Resource ResourceCreationProxy::CreateX509CertificatePrivate(
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
492 bool ResourceCreationProxy::OnMessageReceived(const IPC::Message& msg) { 497 bool ResourceCreationProxy::OnMessageReceived(const IPC::Message& msg) {
493 return false; 498 return false;
494 } 499 }
495 500
496 Connection ResourceCreationProxy::GetConnection() { 501 Connection ResourceCreationProxy::GetConnection() {
497 return Connection(PluginGlobals::Get()->GetBrowserSender(), dispatcher()); 502 return Connection(PluginGlobals::Get()->GetBrowserSender(), dispatcher());
498 } 503 }
499 504
500 } // namespace proxy 505 } // namespace proxy
501 } // namespace ppapi 506 } // 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