blob: 6533e618dd0fbd527f2b9ee38cb346d1fe3b42b0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
// 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.
#ifndef WEBKIT_PLUGINS_PPAPI_PPB_TCP_SERVER_SOCKET_PRIVATE_IMPL_H_
#define WEBKIT_PLUGINS_PPAPI_PPB_TCP_SERVER_SOCKET_PRIVATE_IMPL_H_
#include "base/compiler_specific.h"
#include "ppapi/shared_impl/private/ppb_tcp_server_socket_shared.h"
namespace webkit {
namespace ppapi {
class PPB_TCPServerSocket_Private_Impl
: public ::ppapi::PPB_TCPServerSocket_Shared {
public:
static PP_Resource CreateResource(PP_Instance instance);
virtual void OnAcceptCompleted(
bool succeeded,
uint32 tcp_socket_id,
const PP_NetAddress_Private& local_addr,
const PP_NetAddress_Private& remote_addr) OVERRIDE;
virtual void SendListen(uint32_t temp_socket_id,
const PP_NetAddress_Private& addr,
int32_t backlog) OVERRIDE;
virtual void SendAccept() OVERRIDE;
virtual void SendStopListening() OVERRIDE;
private:
PPB_TCPServerSocket_Private_Impl(PP_Instance instance);
virtual ~PPB_TCPServerSocket_Private_Impl();
DISALLOW_COPY_AND_ASSIGN(PPB_TCPServerSocket_Private_Impl);
};
} // namespace ppapi
} // namespace webkit
#endif // WEBKIT_PLUGINS_PPAPI_PPB_TCP_SERVER_SOCKET_PRIVATE_IMPL_H_
|