| 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_RESOURCE_H_ | 5 #ifndef PPAPI_PROXY_TCP_SOCKET_RESOURCE_H_ |
| 6 #define PPAPI_PROXY_TCP_SOCKET_RESOURCE_H_ | 6 #define PPAPI_PROXY_TCP_SOCKET_RESOURCE_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "ppapi/proxy/tcp_socket_resource_base.h" | 12 #include "ppapi/proxy/tcp_socket_resource_base.h" |
| 13 #include "ppapi/thunk/ppb_tcp_socket_api.h" | 13 #include "ppapi/thunk/ppb_tcp_socket_api.h" |
| 14 | 14 |
| 15 namespace ppapi { | 15 namespace ppapi { |
| 16 | 16 |
| 17 enum TCPSocketVersion; | |
| 18 | |
| 19 namespace proxy { | 17 namespace proxy { |
| 20 | 18 |
| 21 class PPAPI_PROXY_EXPORT TCPSocketResource : public thunk::PPB_TCPSocket_API, | 19 class PPAPI_PROXY_EXPORT TCPSocketResource : public thunk::PPB_TCPSocket_API, |
| 22 public TCPSocketResourceBase { | 20 public TCPSocketResourceBase { |
| 23 public: | 21 public: |
| 24 // C-tor used for new sockets created. | 22 // C-tor used for new sockets created. |
| 25 TCPSocketResource(Connection connection, | 23 TCPSocketResource(Connection connection, |
| 26 PP_Instance instance, | 24 PP_Instance instance, |
| 27 TCPSocketVersion version); | 25 TCPSocketVersion version); |
| 28 | 26 |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 const PP_NetAddress_Private& local_addr, | 69 const PP_NetAddress_Private& local_addr, |
| 72 const PP_NetAddress_Private& remote_addr); | 70 const PP_NetAddress_Private& remote_addr); |
| 73 | 71 |
| 74 DISALLOW_COPY_AND_ASSIGN(TCPSocketResource); | 72 DISALLOW_COPY_AND_ASSIGN(TCPSocketResource); |
| 75 }; | 73 }; |
| 76 | 74 |
| 77 } // namespace proxy | 75 } // namespace proxy |
| 78 } // namespace ppapi | 76 } // namespace ppapi |
| 79 | 77 |
| 80 #endif // PPAPI_PROXY_TCP_SOCKET_RESOURCE_H_ | 78 #endif // PPAPI_PROXY_TCP_SOCKET_RESOURCE_H_ |
| OLD | NEW |