OLD | NEW |
1 // Copyright (c) 2012 The Native Client Authors. All rights reserved. | 1 // Copyright (c) 2012 The Native Client 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 #ifndef PACKAGES_LIBRARIES_NACL_MOUNTS_BASE_SOCKET_SUBSYSTEM_H_ | 5 #ifndef PACKAGES_LIBRARIES_NACL_MOUNTS_BASE_SOCKET_SUBSYSTEM_H_ |
6 #define PACKAGES_LIBRARIES_NACL_MOUNTS_BASE_SOCKET_SUBSYSTEM_H_ | 6 #define PACKAGES_LIBRARIES_NACL_MOUNTS_BASE_SOCKET_SUBSYSTEM_H_ |
7 | 7 |
8 #include <errno.h> | 8 #include <errno.h> |
9 #include <stdarg.h> | 9 #include <stdarg.h> |
10 #include <stdio.h> | 10 #include <stdio.h> |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 | 68 |
69 uint32_t AddHostAddress(const char* name, uint32_t addr); | 69 uint32_t AddHostAddress(const char* name, uint32_t addr); |
70 addrinfo* CreateAddrInfo(const PP_NetAddress_Private& addr, | 70 addrinfo* CreateAddrInfo(const PP_NetAddress_Private& addr, |
71 const addrinfo* hints, | 71 const addrinfo* hints, |
72 const char* name); | 72 const char* name); |
73 bool GetHostPort(const sockaddr* serv_addr, socklen_t addrlen, | 73 bool GetHostPort(const sockaddr* serv_addr, socklen_t addrlen, |
74 std::string* hostname, uint16_t* port); | 74 std::string* hostname, uint16_t* port); |
75 void Resolve(int32_t result, GetAddrInfoParams* params, int32_t* pres); | 75 void Resolve(int32_t result, GetAddrInfoParams* params, int32_t* pres); |
76 void OnResolve(int32_t result, GetAddrInfoParams* params, int32_t* pres); | 76 void OnResolve(int32_t result, GetAddrInfoParams* params, int32_t* pres); |
77 | 77 |
78 pp::CompletionCallbackFactory<SocketSubSystem, ThreadSafeRefCount> factory_; | 78 pp::CompletionCallbackFactory<SocketSubSystem> factory_; |
79 pp::HostResolverPrivate* host_resolver_; | 79 pp::HostResolverPrivate* host_resolver_; |
80 | 80 |
81 DISALLOW_COPY_AND_ASSIGN(SocketSubSystem); | 81 DISALLOW_COPY_AND_ASSIGN(SocketSubSystem); |
82 }; | 82 }; |
83 | 83 |
84 #endif // PACKAGES_LIBRARIES_NACL_MOUNTS_BASE_SOCKET_SUBSYSTEM_H_ | 84 #endif // PACKAGES_LIBRARIES_NACL_MOUNTS_BASE_SOCKET_SUBSYSTEM_H_ |
85 | 85 |
OLD | NEW |