| 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/c/trusted/ppb_image_data_trusted.h" | 9 #include "ppapi/c/trusted/ppb_image_data_trusted.h" |
| 10 #include "ppapi/proxy/plugin_dispatcher.h" | 10 #include "ppapi/proxy/plugin_dispatcher.h" |
| (...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 263 PPB_ResourceArray_Shared::InitAsProxy(), instance, elements, size); | 263 PPB_ResourceArray_Shared::InitAsProxy(), instance, elements, size); |
| 264 return object->GetReference(); | 264 return object->GetReference(); |
| 265 } | 265 } |
| 266 | 266 |
| 267 PP_Resource ResourceCreationProxy::CreateScrollbar(PP_Instance instance, | 267 PP_Resource ResourceCreationProxy::CreateScrollbar(PP_Instance instance, |
| 268 PP_Bool vertical) { | 268 PP_Bool vertical) { |
| 269 NOTIMPLEMENTED(); // Not proxied yet. | 269 NOTIMPLEMENTED(); // Not proxied yet. |
| 270 return 0; | 270 return 0; |
| 271 } | 271 } |
| 272 | 272 |
| 273 int32_t ResourceCreationProxy::CreateTCPServerSocketPrivate( |
| 274 PP_Instance instance, |
| 275 PP_Resource* tcp_server_socket, |
| 276 PP_CompletionCallback callback) { |
| 277 // TODO (ygorshenin): implement this |
| 278 return 0; |
| 279 } |
| 280 |
| 273 PP_Resource ResourceCreationProxy::CreateTCPSocketPrivate( | 281 PP_Resource ResourceCreationProxy::CreateTCPSocketPrivate( |
| 274 PP_Instance instance) { | 282 PP_Instance instance) { |
| 275 return PPB_TCPSocket_Private_Proxy::CreateProxyResource(instance); | 283 return PPB_TCPSocket_Private_Proxy::CreateProxyResource(instance); |
| 276 } | 284 } |
| 277 | 285 |
| 278 PP_Resource ResourceCreationProxy::CreateTransport(PP_Instance instance, | 286 PP_Resource ResourceCreationProxy::CreateTransport(PP_Instance instance, |
| 279 const char* name, | 287 const char* name, |
| 280 PP_TransportType type) { | 288 PP_TransportType type) { |
| 281 NOTIMPLEMENTED(); // Not proxied yet. | 289 NOTIMPLEMENTED(); // Not proxied yet. |
| 282 return 0; | 290 return 0; |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 344 bool ResourceCreationProxy::Send(IPC::Message* msg) { | 352 bool ResourceCreationProxy::Send(IPC::Message* msg) { |
| 345 return dispatcher()->Send(msg); | 353 return dispatcher()->Send(msg); |
| 346 } | 354 } |
| 347 | 355 |
| 348 bool ResourceCreationProxy::OnMessageReceived(const IPC::Message& msg) { | 356 bool ResourceCreationProxy::OnMessageReceived(const IPC::Message& msg) { |
| 349 return false; | 357 return false; |
| 350 } | 358 } |
| 351 | 359 |
| 352 } // namespace proxy | 360 } // namespace proxy |
| 353 } // namespace ppapi | 361 } // namespace ppapi |
| OLD | NEW |