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 12 matching lines...) Expand all Loading... |
23 // C-tor used for already accepted sockets. | 23 // C-tor used for already accepted sockets. |
24 TCPSocketPrivateResource(Connection connection, | 24 TCPSocketPrivateResource(Connection connection, |
25 PP_Instance instance, | 25 PP_Instance instance, |
26 int pending_resource_id, | 26 int pending_resource_id, |
27 const PP_NetAddress_Private& local_addr, | 27 const PP_NetAddress_Private& local_addr, |
28 const PP_NetAddress_Private& remote_addr); | 28 const PP_NetAddress_Private& remote_addr); |
29 | 29 |
30 virtual ~TCPSocketPrivateResource(); | 30 virtual ~TCPSocketPrivateResource(); |
31 | 31 |
32 // PluginResource overrides. | 32 // PluginResource overrides. |
33 virtual PPB_TCPSocket_Private_API* AsPPB_TCPSocket_Private_API() OVERRIDE; | 33 virtual PPB_TCPSocket_Private_API* AsPPB_TCPSocket_Private_API() override; |
34 | 34 |
35 // PPB_TCPSocket_Private_API implementation. | 35 // PPB_TCPSocket_Private_API implementation. |
36 virtual int32_t Connect(const char* host, | 36 virtual int32_t Connect(const char* host, |
37 uint16_t port, | 37 uint16_t port, |
38 scoped_refptr<TrackedCallback> callback) OVERRIDE; | 38 scoped_refptr<TrackedCallback> callback) override; |
39 virtual int32_t ConnectWithNetAddress( | 39 virtual int32_t ConnectWithNetAddress( |
40 const PP_NetAddress_Private* addr, | 40 const PP_NetAddress_Private* addr, |
41 scoped_refptr<TrackedCallback> callback) OVERRIDE; | 41 scoped_refptr<TrackedCallback> callback) override; |
42 virtual PP_Bool GetLocalAddress(PP_NetAddress_Private* local_addr) OVERRIDE; | 42 virtual PP_Bool GetLocalAddress(PP_NetAddress_Private* local_addr) override; |
43 virtual PP_Bool GetRemoteAddress(PP_NetAddress_Private* remote_addr) OVERRIDE; | 43 virtual PP_Bool GetRemoteAddress(PP_NetAddress_Private* remote_addr) override; |
44 virtual int32_t SSLHandshake( | 44 virtual int32_t SSLHandshake( |
45 const char* server_name, | 45 const char* server_name, |
46 uint16_t server_port, | 46 uint16_t server_port, |
47 scoped_refptr<TrackedCallback> callback) OVERRIDE; | 47 scoped_refptr<TrackedCallback> callback) override; |
48 virtual PP_Resource GetServerCertificate() OVERRIDE; | 48 virtual PP_Resource GetServerCertificate() override; |
49 virtual PP_Bool AddChainBuildingCertificate(PP_Resource certificate, | 49 virtual PP_Bool AddChainBuildingCertificate(PP_Resource certificate, |
50 PP_Bool trusted) OVERRIDE; | 50 PP_Bool trusted) override; |
51 virtual int32_t Read(char* buffer, | 51 virtual int32_t Read(char* buffer, |
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. | 62 // TCPSocketResourceBase implementation. |
63 virtual PP_Resource CreateAcceptedSocket( | 63 virtual PP_Resource CreateAcceptedSocket( |
64 int pending_host_id, | 64 int pending_host_id, |
65 const PP_NetAddress_Private& local_addr, | 65 const PP_NetAddress_Private& local_addr, |
66 const PP_NetAddress_Private& remote_addr) OVERRIDE; | 66 const PP_NetAddress_Private& remote_addr) override; |
67 | 67 |
68 private: | 68 private: |
69 DISALLOW_COPY_AND_ASSIGN(TCPSocketPrivateResource); | 69 DISALLOW_COPY_AND_ASSIGN(TCPSocketPrivateResource); |
70 }; | 70 }; |
71 | 71 |
72 } // namespace proxy | 72 } // namespace proxy |
73 } // namespace ppapi | 73 } // namespace ppapi |
74 | 74 |
75 #endif // PPAPI_PROXY_TCP_SOCKET_PRIVATE_RESOURCE_H_ | 75 #endif // PPAPI_PROXY_TCP_SOCKET_PRIVATE_RESOURCE_H_ |
OLD | NEW |