| 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 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 }; | 157 }; |
| 158 | 158 |
| 159 #if !defined(OS_NACL) && !defined(NACL_WIN64) | 159 #if !defined(OS_NACL) && !defined(NACL_WIN64) |
| 160 template<> | 160 template<> |
| 161 struct PPAPI_PROXY_EXPORT ParamTraits<ppapi::proxy::SerializedFlashMenu> { | 161 struct PPAPI_PROXY_EXPORT ParamTraits<ppapi::proxy::SerializedFlashMenu> { |
| 162 typedef ppapi::proxy::SerializedFlashMenu param_type; | 162 typedef ppapi::proxy::SerializedFlashMenu param_type; |
| 163 static void Write(Message* m, const param_type& p); | 163 static void Write(Message* m, const param_type& p); |
| 164 static bool Read(const Message* m, PickleIterator* iter, param_type* r); | 164 static bool Read(const Message* m, PickleIterator* iter, param_type* r); |
| 165 static void Log(const param_type& p, std::string* l); | 165 static void Log(const param_type& p, std::string* l); |
| 166 }; | 166 }; |
| 167 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) |
| 167 | 168 |
| 168 template<> | 169 template<> |
| 169 struct PPAPI_PROXY_EXPORT ParamTraits<ppapi::PPB_X509Certificate_Fields> { | 170 struct PPAPI_PROXY_EXPORT ParamTraits<ppapi::PPB_X509Certificate_Fields> { |
| 170 typedef ppapi::PPB_X509Certificate_Fields param_type; | 171 typedef ppapi::PPB_X509Certificate_Fields param_type; |
| 171 static void Write(Message* m, const param_type& p); | 172 static void Write(Message* m, const param_type& p); |
| 172 static bool Read(const Message* m, PickleIterator* iter, param_type* r); | 173 static bool Read(const Message* m, PickleIterator* iter, param_type* r); |
| 173 static void Log(const param_type& p, std::string* l); | 174 static void Log(const param_type& p, std::string* l); |
| 174 }; | 175 }; |
| 175 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) | |
| 176 | 176 |
| 177 | 177 |
| 178 } // namespace IPC | 178 } // namespace IPC |
| 179 | 179 |
| 180 #endif // PPAPI_PROXY_PPAPI_PARAM_TRAITS_H_ | 180 #endif // PPAPI_PROXY_PPAPI_PARAM_TRAITS_H_ |
| OLD | NEW |