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 |
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/file_path.h" |
18 #include "ppapi/shared_impl/ppapi_permissions.h" | 18 #include "ppapi/shared_impl/ppapi_permissions.h" |
19 #include "ppapi/shared_impl/ppb_file_ref_shared.h" | 19 #include "ppapi/shared_impl/ppb_file_ref_shared.h" |
| 20 #include "ppapi/shared_impl/socket_option_data.h" |
20 | 21 |
21 struct PP_FileInfo; | 22 struct PP_FileInfo; |
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; |
27 class PPB_X509Certificate_Fields; | 28 class PPB_X509Certificate_Fields; |
28 | 29 |
29 namespace proxy { | 30 namespace proxy { |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
186 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) | 187 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) |
187 | 188 |
188 template<> | 189 template<> |
189 struct PPAPI_PROXY_EXPORT ParamTraits<ppapi::PPB_X509Certificate_Fields> { | 190 struct PPAPI_PROXY_EXPORT ParamTraits<ppapi::PPB_X509Certificate_Fields> { |
190 typedef ppapi::PPB_X509Certificate_Fields param_type; | 191 typedef ppapi::PPB_X509Certificate_Fields param_type; |
191 static void Write(Message* m, const param_type& p); | 192 static void Write(Message* m, const param_type& p); |
192 static bool Read(const Message* m, PickleIterator* iter, param_type* r); | 193 static bool Read(const Message* m, PickleIterator* iter, param_type* r); |
193 static void Log(const param_type& p, std::string* l); | 194 static void Log(const param_type& p, std::string* l); |
194 }; | 195 }; |
195 | 196 |
| 197 template<> |
| 198 struct PPAPI_PROXY_EXPORT ParamTraits<ppapi::SocketOptionData> { |
| 199 typedef ppapi::SocketOptionData param_type; |
| 200 static void Write(Message* m, const param_type& p); |
| 201 static bool Read(const Message* m, PickleIterator* iter, param_type* r); |
| 202 static void Log(const param_type& p, std::string* l); |
| 203 }; |
196 | 204 |
197 } // namespace IPC | 205 } // namespace IPC |
198 | 206 |
199 #endif // PPAPI_PROXY_PPAPI_PARAM_TRAITS_H_ | 207 #endif // PPAPI_PROXY_PPAPI_PARAM_TRAITS_H_ |
OLD | NEW |