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 PPAPI_PROXY_PPB_FLASH_NET_CONNECTOR_PROXY_H_ | 5 #ifndef PPAPI_PROXY_PPB_FLASH_NET_CONNECTOR_PROXY_H_ |
6 #define PPAPI_PROXY_PPB_FLASH_NET_CONNECTOR_PROXY_H_ | 6 #define PPAPI_PROXY_PPB_FLASH_NET_CONNECTOR_PROXY_H_ |
7 | 7 |
8 #include "base/platform_file.h" | 8 #include "base/platform_file.h" |
9 #include "ipc/ipc_platform_file.h" | 9 #include "ipc/ipc_platform_file.h" |
10 #include "ppapi/c/pp_instance.h" | 10 #include "ppapi/c/pp_instance.h" |
11 #include "ppapi/cpp/completion_callback.h" | 11 #include "ppapi/cpp/completion_callback.h" |
12 #include "ppapi/proxy/interface_proxy.h" | 12 #include "ppapi/proxy/interface_proxy.h" |
13 #include "ppapi/proxy/proxy_non_thread_safe_ref_count.h" | 13 #include "ppapi/proxy/proxy_non_thread_safe_ref_count.h" |
14 | 14 |
15 struct PPB_Flash_NetConnector; | 15 struct PPB_Flash_NetConnector; |
16 | 16 |
17 namespace ppapi { | 17 namespace ppapi { |
| 18 |
18 class HostResource; | 19 class HostResource; |
19 } | |
20 | 20 |
21 namespace pp { | |
22 namespace proxy { | 21 namespace proxy { |
23 | 22 |
24 class PPB_Flash_NetConnector_Proxy : public InterfaceProxy { | 23 class PPB_Flash_NetConnector_Proxy : public InterfaceProxy { |
25 public: | 24 public: |
26 PPB_Flash_NetConnector_Proxy(Dispatcher* dispatcher, | 25 PPB_Flash_NetConnector_Proxy(Dispatcher* dispatcher, |
27 const void* target_interface); | 26 const void* target_interface); |
28 virtual ~PPB_Flash_NetConnector_Proxy(); | 27 virtual ~PPB_Flash_NetConnector_Proxy(); |
29 | 28 |
30 static const Info* GetInfo(); | 29 static const Info* GetInfo(); |
31 | 30 |
(...skipping 16 matching lines...) Expand all Loading... |
48 | 47 |
49 // Host->plugin message handler. | 48 // Host->plugin message handler. |
50 void OnMsgConnectACK(const ppapi::HostResource& host_resource, | 49 void OnMsgConnectACK(const ppapi::HostResource& host_resource, |
51 int32_t result, | 50 int32_t result, |
52 IPC::PlatformFileForTransit handle, | 51 IPC::PlatformFileForTransit handle, |
53 const std::string& load_addr_as_string, | 52 const std::string& load_addr_as_string, |
54 const std::string& remote_addr_as_string); | 53 const std::string& remote_addr_as_string); |
55 | 54 |
56 void OnCompleteCallbackInHost(int32_t result, ConnectCallbackInfo* info); | 55 void OnCompleteCallbackInHost(int32_t result, ConnectCallbackInfo* info); |
57 | 56 |
58 CompletionCallbackFactory<PPB_Flash_NetConnector_Proxy, | 57 pp::CompletionCallbackFactory<PPB_Flash_NetConnector_Proxy, |
59 ProxyNonThreadSafeRefCount> callback_factory_; | 58 ProxyNonThreadSafeRefCount> callback_factory_; |
60 }; | 59 }; |
61 | 60 |
62 } // namespace proxy | 61 } // namespace proxy |
63 } // namespace pp | 62 } // namespace ppapi |
64 | 63 |
65 #endif // PPAPI_PROXY_PPB_FLASH_NET_CONNECTOR_PROXY_H_ | 64 #endif // PPAPI_PROXY_PPB_FLASH_NET_CONNECTOR_PROXY_H_ |
OLD | NEW |