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

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 shared declaration of GetPPB_TCPServerSocketPrivate_0_1_Thunk. Created 8 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
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 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 PPB_ResourceArray_Shared::InitAsProxy(), instance, elements, size); 257 PPB_ResourceArray_Shared::InitAsProxy(), instance, elements, size);
258 return object->GetReference(); 258 return object->GetReference();
259 } 259 }
260 260
261 PP_Resource ResourceCreationProxy::CreateScrollbar(PP_Instance instance, 261 PP_Resource ResourceCreationProxy::CreateScrollbar(PP_Instance instance,
262 PP_Bool vertical) { 262 PP_Bool vertical) {
263 NOTIMPLEMENTED(); // Not proxied yet. 263 NOTIMPLEMENTED(); // Not proxied yet.
264 return 0; 264 return 0;
265 } 265 }
266 266
267 PP_Resource ResourceCreationProxy::CreateTCPServerSocketPrivate(
268 PP_Instance instance) {
269 // TODO (ygorshenin): implement this
270 return static_cast<PP_Resource>(0);
271 }
272
267 PP_Resource ResourceCreationProxy::CreateTCPSocketPrivate( 273 PP_Resource ResourceCreationProxy::CreateTCPSocketPrivate(
268 PP_Instance instance) { 274 PP_Instance instance) {
269 return PPB_TCPSocket_Private_Proxy::CreateProxyResource(instance); 275 return PPB_TCPSocket_Private_Proxy::CreateProxyResource(instance);
270 } 276 }
271 277
272 PP_Resource ResourceCreationProxy::CreateTransport(PP_Instance instance, 278 PP_Resource ResourceCreationProxy::CreateTransport(PP_Instance instance,
273 const char* name, 279 const char* name,
274 PP_TransportType type) { 280 PP_TransportType type) {
275 NOTIMPLEMENTED(); // Not proxied yet. 281 NOTIMPLEMENTED(); // Not proxied yet.
276 return 0; 282 return 0;
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 bool ResourceCreationProxy::Send(IPC::Message* msg) { 344 bool ResourceCreationProxy::Send(IPC::Message* msg) {
339 return dispatcher()->Send(msg); 345 return dispatcher()->Send(msg);
340 } 346 }
341 347
342 bool ResourceCreationProxy::OnMessageReceived(const IPC::Message& msg) { 348 bool ResourceCreationProxy::OnMessageReceived(const IPC::Message& msg) {
343 return false; 349 return false;
344 } 350 }
345 351
346 } // namespace proxy 352 } // namespace proxy
347 } // namespace ppapi 353 } // namespace ppapi
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698