OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium 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 PPAPI_PROXY_TCP_SOCKET_PRIVATE_RESOURCE_H_ | 5 #ifndef PPAPI_PROXY_TCP_SOCKET_PRIVATE_RESOURCE_H_ |
6 #define PPAPI_PROXY_TCP_SOCKET_PRIVATE_RESOURCE_H_ | 6 #define PPAPI_PROXY_TCP_SOCKET_PRIVATE_RESOURCE_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "ppapi/proxy/tcp_socket_resource_base.h" | 10 #include "ppapi/proxy/tcp_socket_resource_base.h" |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 int32_t bytes_to_read, | 52 int32_t bytes_to_read, |
53 scoped_refptr<TrackedCallback> callback) OVERRIDE; | 53 scoped_refptr<TrackedCallback> callback) OVERRIDE; |
54 virtual int32_t Write(const char* buffer, | 54 virtual int32_t Write(const char* buffer, |
55 int32_t bytes_to_write, | 55 int32_t bytes_to_write, |
56 scoped_refptr<TrackedCallback> callback) OVERRIDE; | 56 scoped_refptr<TrackedCallback> callback) OVERRIDE; |
57 virtual void Disconnect() OVERRIDE; | 57 virtual void Disconnect() OVERRIDE; |
58 virtual int32_t SetOption(PP_TCPSocketOption_Private name, | 58 virtual int32_t SetOption(PP_TCPSocketOption_Private name, |
59 const PP_Var& value, | 59 const PP_Var& value, |
60 scoped_refptr<TrackedCallback> callback) OVERRIDE; | 60 scoped_refptr<TrackedCallback> callback) OVERRIDE; |
61 | 61 |
| 62 // TCPSocketResourceBase implementation. |
| 63 virtual PP_Resource CreateAcceptedSocket( |
| 64 int pending_host_id, |
| 65 const PP_NetAddress_Private& local_addr, |
| 66 const PP_NetAddress_Private& remote_addr) OVERRIDE; |
| 67 |
62 private: | 68 private: |
63 DISALLOW_COPY_AND_ASSIGN(TCPSocketPrivateResource); | 69 DISALLOW_COPY_AND_ASSIGN(TCPSocketPrivateResource); |
64 }; | 70 }; |
65 | 71 |
66 } // namespace proxy | 72 } // namespace proxy |
67 } // namespace ppapi | 73 } // namespace ppapi |
68 | 74 |
69 #endif // PPAPI_PROXY_TCP_SOCKET_PRIVATE_RESOURCE_H_ | 75 #endif // PPAPI_PROXY_TCP_SOCKET_PRIVATE_RESOURCE_H_ |
OLD | NEW |