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_PPB_FLASH_PROXY_H_ | 5 #ifndef PPAPI_PPB_FLASH_PROXY_H_ |
6 #define PPAPI_PPB_FLASH_PROXY_H_ | 6 #define PPAPI_PPB_FLASH_PROXY_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "ipc/ipc_platform_file.h" | 11 #include "ipc/ipc_platform_file.h" |
12 #include "ppapi/c/pp_instance.h" | 12 #include "ppapi/c/pp_instance.h" |
13 #include "ppapi/c/pp_module.h" | 13 #include "ppapi/c/pp_module.h" |
14 #include "ppapi/c/pp_time.h" | 14 #include "ppapi/c/pp_time.h" |
15 #include "ppapi/proxy/interface_proxy.h" | 15 #include "ppapi/proxy/interface_proxy.h" |
16 #include "ppapi/shared_impl/host_resource.h" | 16 #include "ppapi/shared_impl/host_resource.h" |
17 | 17 |
18 struct PP_FileInfo; | 18 struct PP_FileInfo; |
19 struct PPB_Flash; | 19 struct PPB_Flash; |
20 | 20 |
21 namespace ppapi { | 21 namespace ppapi { |
| 22 |
| 23 struct PPB_URLRequestInfo_Data; |
| 24 |
22 namespace proxy { | 25 namespace proxy { |
23 | 26 |
24 struct PPBFlash_DrawGlyphs_Params; | 27 struct PPBFlash_DrawGlyphs_Params; |
25 class SerializedVarReturnValue; | 28 class SerializedVarReturnValue; |
26 | 29 |
27 class PPB_Flash_Proxy : public InterfaceProxy { | 30 class PPB_Flash_Proxy : public InterfaceProxy { |
28 public: | 31 public: |
29 PPB_Flash_Proxy(Dispatcher* dispatcher, const void* target_interface); | 32 PPB_Flash_Proxy(Dispatcher* dispatcher, const void* target_interface); |
30 virtual ~PPB_Flash_Proxy(); | 33 virtual ~PPB_Flash_Proxy(); |
31 | 34 |
32 static const Info* GetInfo(); | 35 static const Info* GetInfo(); |
33 | 36 |
34 const PPB_Flash* ppb_flash_target() const { | 37 const PPB_Flash* ppb_flash_target() const { |
35 return static_cast<const PPB_Flash*>(target_interface()); | 38 return static_cast<const PPB_Flash*>(target_interface()); |
36 } | 39 } |
37 | 40 |
38 // InterfaceProxy implementation. | 41 // InterfaceProxy implementation. |
39 virtual bool OnMessageReceived(const IPC::Message& msg); | 42 virtual bool OnMessageReceived(const IPC::Message& msg); |
40 | 43 |
41 private: | 44 private: |
42 // Message handlers. | 45 // Message handlers. |
43 void OnMsgSetInstanceAlwaysOnTop(PP_Instance instance, | 46 void OnMsgSetInstanceAlwaysOnTop(PP_Instance instance, |
44 PP_Bool on_top); | 47 PP_Bool on_top); |
45 void OnMsgDrawGlyphs(const PPBFlash_DrawGlyphs_Params& params, | 48 void OnMsgDrawGlyphs(const PPBFlash_DrawGlyphs_Params& params, |
46 PP_Bool* result); | 49 PP_Bool* result); |
47 void OnMsgGetProxyForURL(PP_Instance instance, | 50 void OnMsgGetProxyForURL(PP_Instance instance, |
48 const std::string& url, | 51 const std::string& url, |
49 SerializedVarReturnValue result); | 52 SerializedVarReturnValue result); |
50 void OnMsgNavigate(const HostResource& request_info, | 53 void OnMsgNavigate(PP_Instance instance, |
| 54 const PPB_URLRequestInfo_Data& data, |
51 const std::string& target, | 55 const std::string& target, |
52 bool from_user_action, | 56 bool from_user_action, |
53 int32_t* result); | 57 int32_t* result); |
54 void OnMsgRunMessageLoop(PP_Instance instance); | 58 void OnMsgRunMessageLoop(PP_Instance instance); |
55 void OnMsgQuitMessageLoop(PP_Instance instance); | 59 void OnMsgQuitMessageLoop(PP_Instance instance); |
56 void OnMsgGetLocalTimeZoneOffset(PP_Instance instance, PP_Time t, | 60 void OnMsgGetLocalTimeZoneOffset(PP_Instance instance, PP_Time t, |
57 double* result); | 61 double* result); |
58 }; | 62 }; |
59 | 63 |
60 } // namespace proxy | 64 } // namespace proxy |
61 } // namespace ppapi | 65 } // namespace ppapi |
62 | 66 |
63 #endif // PPAPI_PPB_FLASH_PROXY_H_ | 67 #endif // PPAPI_PPB_FLASH_PROXY_H_ |
OLD | NEW |