| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |