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

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

Issue 9283022: Exposed Listen and Accept methods to plugin. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Added Destroy message for initialized but cancelled sockets. Created 8 years, 10 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
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/plugin_dispatcher.h" 10 #include "ppapi/proxy/plugin_dispatcher.h"
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 PP_Resource ResourceCreationProxy::CreateTCPServerSocketPrivate(
274 PP_Instance instance) {
275 // TODO (ygorshenin): implement this
276 return 0;
277 }
278
273 PP_Resource ResourceCreationProxy::CreateTCPSocketPrivate( 279 PP_Resource ResourceCreationProxy::CreateTCPSocketPrivate(
274 PP_Instance instance) { 280 PP_Instance instance) {
275 return PPB_TCPSocket_Private_Proxy::CreateProxyResource(instance); 281 return PPB_TCPSocket_Private_Proxy::CreateProxyResource(instance);
276 } 282 }
277 283
278 PP_Resource ResourceCreationProxy::CreateTransport(PP_Instance instance, 284 PP_Resource ResourceCreationProxy::CreateTransport(PP_Instance instance,
279 const char* name, 285 const char* name,
280 PP_TransportType type) { 286 PP_TransportType type) {
281 NOTIMPLEMENTED(); // Not proxied yet. 287 NOTIMPLEMENTED(); // Not proxied yet.
282 return 0; 288 return 0;
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 bool ResourceCreationProxy::Send(IPC::Message* msg) { 350 bool ResourceCreationProxy::Send(IPC::Message* msg) {
345 return dispatcher()->Send(msg); 351 return dispatcher()->Send(msg);
346 } 352 }
347 353
348 bool ResourceCreationProxy::OnMessageReceived(const IPC::Message& msg) { 354 bool ResourceCreationProxy::OnMessageReceived(const IPC::Message& msg) {
349 return false; 355 return false;
350 } 356 }
351 357
352 } // namespace proxy 358 } // namespace proxy
353 } // namespace ppapi 359 } // namespace ppapi
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698