OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |