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

Unified Diff: webkit/plugins/ppapi/ppb_tcp_socket_private_impl.h

Issue 9283022: Exposed Listen and Accept methods to plugin. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Sync. 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 side-by-side diff with in-line comments
Download patch
Index: webkit/plugins/ppapi/ppb_tcp_socket_private_impl.h
diff --git a/webkit/plugins/ppapi/ppb_tcp_socket_private_impl.h b/webkit/plugins/ppapi/ppb_tcp_socket_private_impl.h
index ba86518e03999fb564c4ec06fc00dcf2a52c09f1..fdc298c4d072c61dbca85015e3057a4d7159c75b 100644
--- a/webkit/plugins/ppapi/ppb_tcp_socket_private_impl.h
+++ b/webkit/plugins/ppapi/ppb_tcp_socket_private_impl.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -11,9 +11,16 @@
namespace webkit {
namespace ppapi {
+class PluginDelegate;
+
class PPB_TCPSocket_Private_Impl : public ::ppapi::TCPSocketPrivateImpl {
public:
static PP_Resource CreateResource(PP_Instance instance);
+ static PP_Resource CreateConnectedSocket(
+ PP_Instance instance,
+ uint32 socket_id,
+ const PP_NetAddress_Private& local_addr,
+ const PP_NetAddress_Private& remote_addr);
virtual void SendConnect(const std::string& host, uint16_t port) OVERRIDE;
virtual void SendConnectWithNetAddress(
@@ -28,6 +35,8 @@ class PPB_TCPSocket_Private_Impl : public ::ppapi::TCPSocketPrivateImpl {
PPB_TCPSocket_Private_Impl(PP_Instance instance, uint32 socket_id);
virtual ~PPB_TCPSocket_Private_Impl();
+ static PluginDelegate* GetPluginDelegate(PP_Instance instance);
+
DISALLOW_COPY_AND_ASSIGN(PPB_TCPSocket_Private_Impl);
};
« no previous file with comments | « webkit/plugins/ppapi/ppb_tcp_server_socket_private_impl.cc ('k') | webkit/plugins/ppapi/ppb_tcp_socket_private_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698