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

Side by Side Diff: webkit/plugins/ppapi/ppb_tcp_server_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: Added documentation for PPB_TCPServerSocket_Private methods, Create method became async. 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef WEBKIT_PLUGINS_PPAPI_PPB_TCP_SERVER_SOCKET_PRIVATE_IMPL_H_
6 #define WEBKIT_PLUGINS_PPAPI_PPB_TCP_SERVER_SOCKET_PRIVATE_IMPL_H_
7
8 #include "base/compiler_specific.h"
9 #include "ppapi/shared_impl/private/ppb_tcp_server_socket_shared.h"
10
11 namespace webkit {
12 namespace ppapi {
13
14 class PPB_TCPServerSocket_Private_Impl
15 : public ::ppapi::PPB_TCPServerSocket_Shared {
16 public:
17 static int32_t CreateResource(PP_Instance instance,
18 PP_Resource* tcp_server_socket,
19 PP_CompletionCallback callback);
20
21 virtual void OnAcceptCompleted(
22 bool succeeded,
23 uint32 tcp_socket_id,
24 const PP_NetAddress_Private& local_addr,
25 const PP_NetAddress_Private& remote_addr) OVERRIDE;
26
27 virtual void SendInitialize() OVERRIDE;
28 virtual void SendListen(const PP_NetAddress_Private& addr,
29 int32_t backlog) OVERRIDE;
30 virtual void SendAccept() OVERRIDE;
31 virtual void SendStopListening() OVERRIDE;
32
33 private:
34 PPB_TCPServerSocket_Private_Impl(PP_Instance instance);
35 virtual ~PPB_TCPServerSocket_Private_Impl();
36
37 DISALLOW_COPY_AND_ASSIGN(PPB_TCPServerSocket_Private_Impl);
38 };
39
40 } // namespace ppapi
41 } // namespace webkit
42
43 #endif // WEBKIT_PLUGINS_PPAPI_PPB_TCP_SERVER_SOCKET_PRIVATE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698