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/compositor_layer_data.h" | 17 #include "ppapi/shared_impl/compositor_layer_data.h" |
18 #include "ppapi/shared_impl/file_path.h" | 18 #include "ppapi/shared_impl/file_path.h" |
19 #include "ppapi/shared_impl/file_ref_create_info.h" | 19 #include "ppapi/shared_impl/file_ref_create_info.h" |
20 #include "ppapi/shared_impl/media_stream_video_track_shared.h" | 20 #include "ppapi/shared_impl/media_stream_video_track_shared.h" |
21 #include "ppapi/shared_impl/ppapi_permissions.h" | 21 #include "ppapi/shared_impl/ppapi_permissions.h" |
22 #include "ppapi/shared_impl/socket_option_data.h" | 22 #include "ppapi/shared_impl/socket_option_data.h" |
23 | 23 |
| 24 struct PP_KeyInformation; |
24 struct PP_NetAddress_Private; | 25 struct PP_NetAddress_Private; |
25 | 26 |
26 namespace ppapi { | 27 namespace ppapi { |
27 | 28 |
28 class HostResource; | 29 class HostResource; |
29 class PPB_X509Certificate_Fields; | 30 class PPB_X509Certificate_Fields; |
30 | 31 |
31 namespace proxy { | 32 namespace proxy { |
32 | 33 |
33 struct PPBFlash_DrawGlyphs_Params; | 34 struct PPBFlash_DrawGlyphs_Params; |
(...skipping 19 matching lines...) Expand all Loading... |
53 }; | 54 }; |
54 | 55 |
55 template <> | 56 template <> |
56 struct PPAPI_PROXY_EXPORT ParamTraits<PP_NetAddress_Private> { | 57 struct PPAPI_PROXY_EXPORT ParamTraits<PP_NetAddress_Private> { |
57 typedef PP_NetAddress_Private param_type; | 58 typedef PP_NetAddress_Private param_type; |
58 static void Write(Message* m, const param_type& p); | 59 static void Write(Message* m, const param_type& p); |
59 static bool Read(const Message* m, PickleIterator* iter, param_type* p); | 60 static bool Read(const Message* m, PickleIterator* iter, param_type* p); |
60 static void Log(const param_type& p, std::string* l); | 61 static void Log(const param_type& p, std::string* l); |
61 }; | 62 }; |
62 | 63 |
| 64 template <> |
| 65 struct PPAPI_PROXY_EXPORT ParamTraits<PP_KeyInformation> { |
| 66 typedef PP_KeyInformation param_type; |
| 67 static void Write(Message* m, const param_type& p); |
| 68 static bool Read(const Message* m, PickleIterator* iter, param_type* p); |
| 69 static void Log(const param_type& p, std::string* l); |
| 70 }; |
| 71 |
63 template<> | 72 template<> |
64 struct PPAPI_PROXY_EXPORT ParamTraits< | 73 struct PPAPI_PROXY_EXPORT ParamTraits< |
65 ppapi::proxy::PPBFlash_DrawGlyphs_Params> { | 74 ppapi::proxy::PPBFlash_DrawGlyphs_Params> { |
66 typedef ppapi::proxy::PPBFlash_DrawGlyphs_Params param_type; | 75 typedef ppapi::proxy::PPBFlash_DrawGlyphs_Params param_type; |
67 static void Write(Message* m, const param_type& p); | 76 static void Write(Message* m, const param_type& p); |
68 static bool Read(const Message* m, PickleIterator* iter, param_type* r); | 77 static bool Read(const Message* m, PickleIterator* iter, param_type* r); |
69 static void Log(const param_type& p, std::string* l); | 78 static void Log(const param_type& p, std::string* l); |
70 }; | 79 }; |
71 | 80 |
72 template<> | 81 template<> |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 struct PPAPI_PROXY_EXPORT ParamTraits<ppapi::CompositorLayerData::Transform> { | 191 struct PPAPI_PROXY_EXPORT ParamTraits<ppapi::CompositorLayerData::Transform> { |
183 typedef ppapi::CompositorLayerData::Transform param_type; | 192 typedef ppapi::CompositorLayerData::Transform param_type; |
184 static void Write(Message* m, const param_type& p); | 193 static void Write(Message* m, const param_type& p); |
185 static bool Read(const Message* m, PickleIterator* iter, param_type* r); | 194 static bool Read(const Message* m, PickleIterator* iter, param_type* r); |
186 static void Log(const param_type& p, std::string* l); | 195 static void Log(const param_type& p, std::string* l); |
187 }; | 196 }; |
188 | 197 |
189 } // namespace IPC | 198 } // namespace IPC |
190 | 199 |
191 #endif // PPAPI_PROXY_PPAPI_PARAM_TRAITS_H_ | 200 #endif // PPAPI_PROXY_PPAPI_PARAM_TRAITS_H_ |
OLD | NEW |