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

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

Issue 11359097: Refactored the PPB_Flash_File_ModuleLocal/FileRef to the new ppapi resource model (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years 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/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) 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_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 <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "ipc/ipc_message_utils.h" 11 #include "ipc/ipc_message_utils.h"
12 #include "ipc/ipc_platform_file.h" 12 #include "ipc/ipc_platform_file.h"
13 #include "ppapi/c/pp_completion_callback.h" 13 #include "ppapi/c/pp_completion_callback.h"
14 #include "ppapi/c/pp_rect.h" 14 #include "ppapi/c/pp_rect.h"
15 #include "ppapi/c/pp_var.h" 15 #include "ppapi/c/pp_var.h"
16 #include "ppapi/proxy/ppapi_proxy_export.h" 16 #include "ppapi/proxy/ppapi_proxy_export.h"
17 #include "ppapi/shared_impl/file_path.h"
17 #include "ppapi/shared_impl/ppapi_permissions.h" 18 #include "ppapi/shared_impl/ppapi_permissions.h"
18 #include "ppapi/shared_impl/ppb_file_ref_shared.h" 19 #include "ppapi/shared_impl/ppb_file_ref_shared.h"
19 20
20 struct PP_FileInfo; 21 struct PP_FileInfo;
21 struct PP_ObjectProperty; 22 struct PP_ObjectProperty;
22 struct PP_NetAddress_Private; 23 struct PP_NetAddress_Private;
23 24
24 namespace ppapi { 25 namespace ppapi {
25 26
26 class HostResource; 27 class HostResource;
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 160
160 template<> 161 template<>
161 struct PPAPI_PROXY_EXPORT ParamTraits<ppapi::PpapiPermissions> { 162 struct PPAPI_PROXY_EXPORT ParamTraits<ppapi::PpapiPermissions> {
162 typedef ppapi::PpapiPermissions param_type; 163 typedef ppapi::PpapiPermissions param_type;
163 static void Write(Message* m, const param_type& p); 164 static void Write(Message* m, const param_type& p);
164 static bool Read(const Message* m, PickleIterator* iter, param_type* r); 165 static bool Read(const Message* m, PickleIterator* iter, param_type* r);
165 static void Log(const param_type& p, std::string* l); 166 static void Log(const param_type& p, std::string* l);
166 }; 167 };
167 168
168 #if !defined(OS_NACL) && !defined(NACL_WIN64) 169 #if !defined(OS_NACL) && !defined(NACL_WIN64)
170 template <>
171 struct ParamTraits<ppapi::PepperFilePath> {
172 typedef ppapi::PepperFilePath param_type;
173 static void Write(Message* m, const param_type& p);
174 static bool Read(const Message* m, PickleIterator* iter, param_type* p);
175 static void Log(const param_type& p, std::string* l);
176 };
177
169 template<> 178 template<>
170 struct PPAPI_PROXY_EXPORT ParamTraits<ppapi::proxy::SerializedFlashMenu> { 179 struct PPAPI_PROXY_EXPORT ParamTraits<ppapi::proxy::SerializedFlashMenu> {
171 typedef ppapi::proxy::SerializedFlashMenu param_type; 180 typedef ppapi::proxy::SerializedFlashMenu param_type;
172 static void Write(Message* m, const param_type& p); 181 static void Write(Message* m, const param_type& p);
173 static bool Read(const Message* m, PickleIterator* iter, param_type* r); 182 static bool Read(const Message* m, PickleIterator* iter, param_type* r);
174 static void Log(const param_type& p, std::string* l); 183 static void Log(const param_type& p, std::string* l);
175 }; 184 };
176 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) 185 #endif // !defined(OS_NACL) && !defined(NACL_WIN64)
177 186
178 template<> 187 template<>
179 struct PPAPI_PROXY_EXPORT ParamTraits<ppapi::PPB_X509Certificate_Fields> { 188 struct PPAPI_PROXY_EXPORT ParamTraits<ppapi::PPB_X509Certificate_Fields> {
180 typedef ppapi::PPB_X509Certificate_Fields param_type; 189 typedef ppapi::PPB_X509Certificate_Fields param_type;
181 static void Write(Message* m, const param_type& p); 190 static void Write(Message* m, const param_type& p);
182 static bool Read(const Message* m, PickleIterator* iter, param_type* r); 191 static bool Read(const Message* m, PickleIterator* iter, param_type* r);
183 static void Log(const param_type& p, std::string* l); 192 static void Log(const param_type& p, std::string* l);
184 }; 193 };
185 194
186 195
187 } // namespace IPC 196 } // namespace IPC
188 197
189 #endif // PPAPI_PROXY_PPAPI_PARAM_TRAITS_H_ 198 #endif // PPAPI_PROXY_PPAPI_PARAM_TRAITS_H_
OLDNEW
« no previous file with comments | « ppapi/proxy/ppapi_messages.h ('k') | ppapi/proxy/ppapi_param_traits.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698