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

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

Issue 2686503004: Add IPC ParamTraits for c-style arrays (Closed)
Patch Set: nit Created 3 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
« 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
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 template<> 219 template<>
220 struct PPAPI_PROXY_EXPORT ParamTraits<ppapi::SocketOptionData> { 220 struct PPAPI_PROXY_EXPORT ParamTraits<ppapi::SocketOptionData> {
221 typedef ppapi::SocketOptionData param_type; 221 typedef ppapi::SocketOptionData param_type;
222 static void Write(base::Pickle* m, const param_type& p); 222 static void Write(base::Pickle* m, const param_type& p);
223 static bool Read(const base::Pickle* m, 223 static bool Read(const base::Pickle* m,
224 base::PickleIterator* iter, 224 base::PickleIterator* iter,
225 param_type* r); 225 param_type* r);
226 static void Log(const param_type& p, std::string* l); 226 static void Log(const param_type& p, std::string* l);
227 }; 227 };
228 228
229 template<>
230 struct PPAPI_PROXY_EXPORT ParamTraits<ppapi::CompositorLayerData::Transform> {
231 typedef ppapi::CompositorLayerData::Transform param_type;
232 static void GetSize(base::PickleSizer* s, const param_type& p);
233 static void Write(base::Pickle* m, const param_type& p);
234 static bool Read(const base::Pickle* m,
235 base::PickleIterator* iter,
236 param_type* r);
237 static void Log(const param_type& p, std::string* l);
238 };
239
240 } // namespace IPC 229 } // namespace IPC
241 230
242 #endif // PPAPI_PROXY_PPAPI_PARAM_TRAITS_H_ 231 #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