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

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

Issue 11437038: Revert 171408 (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"
18 #include "ppapi/shared_impl/ppapi_permissions.h" 17 #include "ppapi/shared_impl/ppapi_permissions.h"
19 #include "ppapi/shared_impl/ppb_file_ref_shared.h" 18 #include "ppapi/shared_impl/ppb_file_ref_shared.h"
20 19
21 struct PP_FileInfo; 20 struct PP_FileInfo;
22 struct PP_ObjectProperty; 21 struct PP_ObjectProperty;
23 struct PP_NetAddress_Private; 22 struct PP_NetAddress_Private;
24 23
25 namespace ppapi { 24 namespace ppapi {
26 25
27 class HostResource; 26 class HostResource;
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 159
161 template<> 160 template<>
162 struct PPAPI_PROXY_EXPORT ParamTraits<ppapi::PpapiPermissions> { 161 struct PPAPI_PROXY_EXPORT ParamTraits<ppapi::PpapiPermissions> {
163 typedef ppapi::PpapiPermissions param_type; 162 typedef ppapi::PpapiPermissions param_type;
164 static void Write(Message* m, const param_type& p); 163 static void Write(Message* m, const param_type& p);
165 static bool Read(const Message* m, PickleIterator* iter, param_type* r); 164 static bool Read(const Message* m, PickleIterator* iter, param_type* r);
166 static void Log(const param_type& p, std::string* l); 165 static void Log(const param_type& p, std::string* l);
167 }; 166 };
168 167
169 #if !defined(OS_NACL) && !defined(NACL_WIN64) 168 #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
178 template<> 169 template<>
179 struct PPAPI_PROXY_EXPORT ParamTraits<ppapi::proxy::SerializedFlashMenu> { 170 struct PPAPI_PROXY_EXPORT ParamTraits<ppapi::proxy::SerializedFlashMenu> {
180 typedef ppapi::proxy::SerializedFlashMenu param_type; 171 typedef ppapi::proxy::SerializedFlashMenu param_type;
181 static void Write(Message* m, const param_type& p); 172 static void Write(Message* m, const param_type& p);
182 static bool Read(const Message* m, PickleIterator* iter, param_type* r); 173 static bool Read(const Message* m, PickleIterator* iter, param_type* r);
183 static void Log(const param_type& p, std::string* l); 174 static void Log(const param_type& p, std::string* l);
184 }; 175 };
185 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) 176 #endif // !defined(OS_NACL) && !defined(NACL_WIN64)
186 177
187 template<> 178 template<>
188 struct PPAPI_PROXY_EXPORT ParamTraits<ppapi::PPB_X509Certificate_Fields> { 179 struct PPAPI_PROXY_EXPORT ParamTraits<ppapi::PPB_X509Certificate_Fields> {
189 typedef ppapi::PPB_X509Certificate_Fields param_type; 180 typedef ppapi::PPB_X509Certificate_Fields param_type;
190 static void Write(Message* m, const param_type& p); 181 static void Write(Message* m, const param_type& p);
191 static bool Read(const Message* m, PickleIterator* iter, param_type* r); 182 static bool Read(const Message* m, PickleIterator* iter, param_type* r);
192 static void Log(const param_type& p, std::string* l); 183 static void Log(const param_type& p, std::string* l);
193 }; 184 };
194 185
195 186
196 } // namespace IPC 187 } // namespace IPC
197 188
198 #endif // PPAPI_PROXY_PPAPI_PARAM_TRAITS_H_ 189 #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