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

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

Issue 6519057: Implement proxying for FileRef and FileChooser.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Fix ppapi tests to account for query change Created 9 years, 10 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_internal.h ('k') | ppapi/proxy/ppapi_param_traits.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) 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_PPAPI_PARAM_TRAITS_H_ 5 #ifndef PPAPI_PROXY_PPAPI_PARAM_TRAITS_H_
6 #define PPAPI_PROXY_PPAPI_PARAM_TRAITS_H_ 6 #define PPAPI_PROXY_PPAPI_PARAM_TRAITS_H_
7 7
8 #include "ipc/ipc_message_utils.h" 8 #include "ipc/ipc_message_utils.h"
9 #include "ipc/ipc_platform_file.h" 9 #include "ipc/ipc_platform_file.h"
10 #include "ppapi/c/pp_completion_callback.h" 10 #include "ppapi/c/pp_completion_callback.h"
11 #include "ppapi/c/pp_input_event.h" 11 #include "ppapi/c/pp_input_event.h"
12 #include "ppapi/c/pp_rect.h" 12 #include "ppapi/c/pp_rect.h"
13 #include "ppapi/c/pp_var.h" 13 #include "ppapi/c/pp_var.h"
14 14
15 struct PP_FileInfo_Dev; 15 struct PP_FileInfo_Dev;
16 struct PP_ObjectProperty; 16 struct PP_ObjectProperty;
17 struct PP_Flash_Menu; 17 struct PP_Flash_Menu;
18 18
19 namespace pp { 19 namespace pp {
20 namespace proxy { 20 namespace proxy {
21 21
22 class HostResource; 22 class HostResource;
23 struct PPBFileRef_CreateInfo;
23 struct PPBFlash_DrawGlyphs_Params; 24 struct PPBFlash_DrawGlyphs_Params;
24 struct PPBFont_DrawTextAt_Params; 25 struct PPBFont_DrawTextAt_Params;
25 struct PPBURLLoader_UpdateProgress_Params; 26 struct PPBURLLoader_UpdateProgress_Params;
26 struct SerializedDirEntry; 27 struct SerializedDirEntry;
27 struct SerializedFontDescription; 28 struct SerializedFontDescription;
28 class SerializedFlashMenu; 29 class SerializedFlashMenu;
29 class SerializedVar; 30 class SerializedVar;
30 31
31 } // namespace proxy 32 } // namespace proxy
32 } // namespace pp 33 } // namespace pp
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 92
92 template<> 93 template<>
93 struct ParamTraits<pp::proxy::PPBFlash_DrawGlyphs_Params> { 94 struct ParamTraits<pp::proxy::PPBFlash_DrawGlyphs_Params> {
94 typedef pp::proxy::PPBFlash_DrawGlyphs_Params param_type; 95 typedef pp::proxy::PPBFlash_DrawGlyphs_Params param_type;
95 static void Write(Message* m, const param_type& p); 96 static void Write(Message* m, const param_type& p);
96 static bool Read(const Message* m, void** iter, param_type* r); 97 static bool Read(const Message* m, void** iter, param_type* r);
97 static void Log(const param_type& p, std::string* l); 98 static void Log(const param_type& p, std::string* l);
98 }; 99 };
99 100
100 template<> 101 template<>
102 struct ParamTraits<pp::proxy::PPBFileRef_CreateInfo> {
103 typedef pp::proxy::PPBFileRef_CreateInfo param_type;
104 static void Write(Message* m, const param_type& p);
105 static bool Read(const Message* m, void** iter, param_type* r);
106 static void Log(const param_type& p, std::string* l);
107 };
108
109 template<>
101 struct ParamTraits<pp::proxy::PPBFont_DrawTextAt_Params> { 110 struct ParamTraits<pp::proxy::PPBFont_DrawTextAt_Params> {
102 typedef pp::proxy::PPBFont_DrawTextAt_Params param_type; 111 typedef pp::proxy::PPBFont_DrawTextAt_Params param_type;
103 static void Write(Message* m, const param_type& p); 112 static void Write(Message* m, const param_type& p);
104 static bool Read(const Message* m, void** iter, param_type* r); 113 static bool Read(const Message* m, void** iter, param_type* r);
105 static void Log(const param_type& p, std::string* l); 114 static void Log(const param_type& p, std::string* l);
106 }; 115 };
107 116
108 template<> 117 template<>
109 struct ParamTraits<pp::proxy::PPBURLLoader_UpdateProgress_Params> { 118 struct ParamTraits<pp::proxy::PPBURLLoader_UpdateProgress_Params> {
110 typedef pp::proxy::PPBURLLoader_UpdateProgress_Params param_type; 119 typedef pp::proxy::PPBURLLoader_UpdateProgress_Params param_type;
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 struct ParamTraits<pp::proxy::SerializedFlashMenu> { 166 struct ParamTraits<pp::proxy::SerializedFlashMenu> {
158 typedef pp::proxy::SerializedFlashMenu param_type; 167 typedef pp::proxy::SerializedFlashMenu param_type;
159 static void Write(Message* m, const param_type& p); 168 static void Write(Message* m, const param_type& p);
160 static bool Read(const Message* m, void** iter, param_type* r); 169 static bool Read(const Message* m, void** iter, param_type* r);
161 static void Log(const param_type& p, std::string* l); 170 static void Log(const param_type& p, std::string* l);
162 }; 171 };
163 172
164 } // namespace IPC 173 } // namespace IPC
165 174
166 #endif // PPAPI_PROXY_PPAPI_PARAM_TRAITS_H_ 175 #endif // PPAPI_PROXY_PPAPI_PARAM_TRAITS_H_
OLDNEW
« no previous file with comments | « ppapi/proxy/ppapi_messages_internal.h ('k') | ppapi/proxy/ppapi_param_traits.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698