blob: ffd1353632c1766f8d8d84c1a535a48603ac817b (
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
42
|
// Copyright (c) 2011 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.
// TODO(viettrungluu): This (and the .cc file) contain C++ wrappers for some
// things in ppapi/c/private/ppb_flash.h. This is currently not used in (or even
// compiled with) Chromium.
#ifndef PPAPI_CPP_PRIVATE_FLASH_H_
#define PPAPI_CPP_PRIVATE_FLASH_H_
#include "ppapi/c/private/ppb_flash.h"
#include "ppapi/cpp/resource.h"
namespace pp {
class CompletionCallback;
class Instance;
namespace flash {
class NetConnector : public Resource {
public:
explicit NetConnector(const Instance& instance);
int32_t ConnectTcp(const char* host,
uint16_t port,
PP_FileHandle* socket_out,
PP_Flash_NetAddress* local_addr_out,
PP_Flash_NetAddress* remote_addr_out,
const CompletionCallback& cc);
int32_t ConnectTcpAddress(const PP_Flash_NetAddress* addr,
PP_FileHandle* socket_out,
PP_Flash_NetAddress* local_addr_out,
PP_Flash_NetAddress* remote_addr_out,
const CompletionCallback& cc);
};
} // namespace flash
} // namespace pp
#endif // PPAPI_CPP_PRIVATE_FLASH_H_
|