Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(387)

Side by Side Diff: ppapi/proxy/ppb_flash_proxy.h

Issue 10913257: Convert url request info to new proxy API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ppapi/proxy/ppapi_messages.h ('k') | ppapi/proxy/ppb_flash_proxy.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_PROXY_H_ 5 #ifndef PPAPI_PROXY_PPB_FLASH_PROXY_H_
6 #define PPAPI_PROXY_PPB_FLASH_PROXY_H_ 6 #define PPAPI_PROXY_PPB_FLASH_PROXY_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "ipc/ipc_platform_file.h" 12 #include "ipc/ipc_platform_file.h"
13 #include "ppapi/c/pp_bool.h" 13 #include "ppapi/c/pp_bool.h"
14 #include "ppapi/c/pp_instance.h" 14 #include "ppapi/c/pp_instance.h"
15 #include "ppapi/c/pp_module.h" 15 #include "ppapi/c/pp_module.h"
16 #include "ppapi/c/pp_time.h" 16 #include "ppapi/c/pp_time.h"
17 #include "ppapi/c/private/ppb_flash.h" 17 #include "ppapi/c/private/ppb_flash.h"
18 #include "ppapi/proxy/interface_proxy.h" 18 #include "ppapi/proxy/interface_proxy.h"
19 #include "ppapi/proxy/serialized_var.h" 19 #include "ppapi/proxy/serialized_var.h"
20 #include "ppapi/shared_impl/host_resource.h" 20 #include "ppapi/shared_impl/host_resource.h"
21 #include "ppapi/shared_impl/ppb_flash_shared.h" 21 #include "ppapi/shared_impl/ppb_flash_shared.h"
22 22
23 struct PPB_Flash_Print_1_0; 23 struct PPB_Flash_Print_1_0;
24 24
25 namespace ppapi { 25 namespace ppapi {
26 26
27 struct PPB_URLRequestInfo_Data; 27 struct URLRequestInfoData;
28 28
29 namespace proxy { 29 namespace proxy {
30 30
31 struct PPBFlash_DrawGlyphs_Params; 31 struct PPBFlash_DrawGlyphs_Params;
32 struct SerializedDirEntry; 32 struct SerializedDirEntry;
33 class SerializedVarReturnValue; 33 class SerializedVarReturnValue;
34 34
35 class PPB_Flash_Proxy : public InterfaceProxy, public PPB_Flash_Shared { 35 class PPB_Flash_Proxy : public InterfaceProxy, public PPB_Flash_Shared {
36 public: 36 public:
37 explicit PPB_Flash_Proxy(Dispatcher* dispatcher); 37 explicit PPB_Flash_Proxy(Dispatcher* dispatcher);
(...skipping 19 matching lines...) Expand all
57 const float transformation[3][3], 57 const float transformation[3][3],
58 PP_Bool allow_subpixel_aa, 58 PP_Bool allow_subpixel_aa,
59 uint32_t glyph_count, 59 uint32_t glyph_count,
60 const uint16_t glyph_indices[], 60 const uint16_t glyph_indices[],
61 const PP_Point glyph_advances[]) OVERRIDE; 61 const PP_Point glyph_advances[]) OVERRIDE;
62 virtual PP_Var GetProxyForURL(PP_Instance instance, const char* url) OVERRIDE; 62 virtual PP_Var GetProxyForURL(PP_Instance instance, const char* url) OVERRIDE;
63 virtual int32_t Navigate(PP_Instance instance, 63 virtual int32_t Navigate(PP_Instance instance,
64 PP_Resource request_info, 64 PP_Resource request_info,
65 const char* target, 65 const char* target,
66 PP_Bool from_user_action) OVERRIDE; 66 PP_Bool from_user_action) OVERRIDE;
67 virtual int32_t Navigate(PP_Instance instance,
68 const URLRequestInfoData& data,
69 const char* target,
70 PP_Bool from_user_action) OVERRIDE;
67 virtual void RunMessageLoop(PP_Instance instance) OVERRIDE; 71 virtual void RunMessageLoop(PP_Instance instance) OVERRIDE;
68 virtual void QuitMessageLoop(PP_Instance instance) OVERRIDE; 72 virtual void QuitMessageLoop(PP_Instance instance) OVERRIDE;
69 virtual double GetLocalTimeZoneOffset(PP_Instance instance, 73 virtual double GetLocalTimeZoneOffset(PP_Instance instance,
70 PP_Time t) OVERRIDE; 74 PP_Time t) OVERRIDE;
71 virtual PP_Bool IsRectTopmost(PP_Instance instance, 75 virtual PP_Bool IsRectTopmost(PP_Instance instance,
72 const PP_Rect* rect) OVERRIDE; 76 const PP_Rect* rect) OVERRIDE;
73 virtual void UpdateActivity(PP_Instance instance) OVERRIDE; 77 virtual void UpdateActivity(PP_Instance instance) OVERRIDE;
74 virtual PP_Var GetDeviceID(PP_Instance instance) OVERRIDE; 78 virtual PP_Var GetDeviceID(PP_Instance instance) OVERRIDE;
75 virtual int32_t GetSettingInt(PP_Instance instance, 79 virtual int32_t GetSettingInt(PP_Instance instance,
76 PP_FlashSetting setting) OVERRIDE; 80 PP_FlashSetting setting) OVERRIDE;
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 // Message handlers. 135 // Message handlers.
132 void OnHostMsgSetInstanceAlwaysOnTop(PP_Instance instance, 136 void OnHostMsgSetInstanceAlwaysOnTop(PP_Instance instance,
133 PP_Bool on_top); 137 PP_Bool on_top);
134 void OnHostMsgDrawGlyphs(PP_Instance instance, 138 void OnHostMsgDrawGlyphs(PP_Instance instance,
135 const PPBFlash_DrawGlyphs_Params& params, 139 const PPBFlash_DrawGlyphs_Params& params,
136 PP_Bool* result); 140 PP_Bool* result);
137 void OnHostMsgGetProxyForURL(PP_Instance instance, 141 void OnHostMsgGetProxyForURL(PP_Instance instance,
138 const std::string& url, 142 const std::string& url,
139 SerializedVarReturnValue result); 143 SerializedVarReturnValue result);
140 void OnHostMsgNavigate(PP_Instance instance, 144 void OnHostMsgNavigate(PP_Instance instance,
141 const PPB_URLRequestInfo_Data& data, 145 const URLRequestInfoData& data,
142 const std::string& target, 146 const std::string& target,
143 PP_Bool from_user_action, 147 PP_Bool from_user_action,
144 int32_t* result); 148 int32_t* result);
145 void OnHostMsgRunMessageLoop(PP_Instance instance); 149 void OnHostMsgRunMessageLoop(PP_Instance instance);
146 void OnHostMsgQuitMessageLoop(PP_Instance instance); 150 void OnHostMsgQuitMessageLoop(PP_Instance instance);
147 void OnHostMsgGetLocalTimeZoneOffset(PP_Instance instance, PP_Time t, 151 void OnHostMsgGetLocalTimeZoneOffset(PP_Instance instance, PP_Time t,
148 double* result); 152 double* result);
149 void OnHostMsgIsRectTopmost(PP_Instance instance, 153 void OnHostMsgIsRectTopmost(PP_Instance instance,
150 PP_Rect rect, 154 PP_Rect rect,
151 PP_Bool* result); 155 PP_Bool* result);
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 SerializedVarReturnValue result); 187 SerializedVarReturnValue result);
184 void OnHostMsgInvokePrinting(PP_Instance instance); 188 void OnHostMsgInvokePrinting(PP_Instance instance);
185 189
186 DISALLOW_COPY_AND_ASSIGN(PPB_Flash_Proxy); 190 DISALLOW_COPY_AND_ASSIGN(PPB_Flash_Proxy);
187 }; 191 };
188 192
189 } // namespace proxy 193 } // namespace proxy
190 } // namespace ppapi 194 } // namespace ppapi
191 195
192 #endif // PPAPI_PROXY_PPB_FLASH_PROXY_H_ 196 #endif // PPAPI_PROXY_PPB_FLASH_PROXY_H_
OLDNEW
« no previous file with comments | « ppapi/proxy/ppapi_messages.h ('k') | ppapi/proxy/ppb_flash_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698