OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 WEBKIT_PLUGINS_PPAPI_PPB_FLASH_NET_CONNECTOR_IMPL_H_ | 5 #ifndef WEBKIT_PLUGINS_PPAPI_PPB_FLASH_NET_CONNECTOR_IMPL_H_ |
6 #define WEBKIT_PLUGINS_PPAPI_PPB_FLASH_NET_CONNECTOR_IMPL_H_ | 6 #define WEBKIT_PLUGINS_PPAPI_PPB_FLASH_NET_CONNECTOR_IMPL_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "ppapi/c/private/ppb_flash_net_connector.h" | 10 #include "ppapi/c/private/ppb_flash_net_connector.h" |
11 #include "ppapi/thunk/ppb_flash_net_connector_api.h" | 11 #include "ppapi/thunk/ppb_flash_net_connector_api.h" |
12 #include "webkit/plugins/ppapi/callbacks.h" | 12 #include "webkit/plugins/ppapi/callbacks.h" |
13 #include "webkit/plugins/ppapi/resource.h" | 13 #include "webkit/plugins/ppapi/resource.h" |
14 | 14 |
15 namespace webkit { | 15 namespace webkit { |
16 namespace ppapi { | 16 namespace ppapi { |
17 | 17 |
18 class PPB_Flash_NetConnector_Impl | 18 class PPB_Flash_NetConnector_Impl |
19 : public Resource, | 19 : public Resource, |
20 public ::ppapi::thunk::PPB_Flash_NetConnector_API { | 20 public ::ppapi::thunk::PPB_Flash_NetConnector_API { |
21 public: | 21 public: |
22 explicit PPB_Flash_NetConnector_Impl(PluginInstance* instance); | 22 explicit PPB_Flash_NetConnector_Impl(PluginInstance* instance); |
23 virtual ~PPB_Flash_NetConnector_Impl(); | 23 virtual ~PPB_Flash_NetConnector_Impl(); |
24 | 24 |
25 // ResourceObjectBase override. | 25 // Resource override. |
26 virtual ::ppapi::thunk::PPB_Flash_NetConnector_API* | 26 virtual ::ppapi::thunk::PPB_Flash_NetConnector_API* |
27 AsPPB_Flash_NetConnector_API() OVERRIDE; | 27 AsPPB_Flash_NetConnector_API() OVERRIDE; |
28 | 28 |
29 // PPB_Flash_NetConnector implementation. | 29 // PPB_Flash_NetConnector implementation. |
30 virtual int32_t ConnectTcp(const char* host, | 30 virtual int32_t ConnectTcp(const char* host, |
31 uint16_t port, | 31 uint16_t port, |
32 PP_FileHandle* socket_out, | 32 PP_FileHandle* socket_out, |
33 PP_Flash_NetAddress* local_addr_out, | 33 PP_Flash_NetAddress* local_addr_out, |
34 PP_Flash_NetAddress* remote_addr_out, | 34 PP_Flash_NetAddress* remote_addr_out, |
35 PP_CompletionCallback callback) OVERRIDE; | 35 PP_CompletionCallback callback) OVERRIDE; |
(...skipping 18 matching lines...) Expand all Loading... |
54 PP_Flash_NetAddress* local_addr_out_; | 54 PP_Flash_NetAddress* local_addr_out_; |
55 PP_Flash_NetAddress* remote_addr_out_; | 55 PP_Flash_NetAddress* remote_addr_out_; |
56 | 56 |
57 DISALLOW_COPY_AND_ASSIGN(PPB_Flash_NetConnector_Impl); | 57 DISALLOW_COPY_AND_ASSIGN(PPB_Flash_NetConnector_Impl); |
58 }; | 58 }; |
59 | 59 |
60 } // namespace ppapi | 60 } // namespace ppapi |
61 } // namespace webkit | 61 } // namespace webkit |
62 | 62 |
63 #endif // WEBKIT_PLUGINS_PPAPI_PPB_FLASH_NET_CONNECTOR_IMPL_H_ | 63 #endif // WEBKIT_PLUGINS_PPAPI_PPB_FLASH_NET_CONNECTOR_IMPL_H_ |
OLD | NEW |