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 "base/memory/linked_ptr.h" | |
raymes
2014/06/02 03:51:08
is this needed?
Peng
2014/06/02 19:01:55
Done.
| |
11 #include "ipc/ipc_message_utils.h" | 12 #include "ipc/ipc_message_utils.h" |
12 #include "ipc/ipc_platform_file.h" | 13 #include "ipc/ipc_platform_file.h" |
13 #include "ppapi/c/pp_completion_callback.h" | 14 #include "ppapi/c/pp_completion_callback.h" |
14 #include "ppapi/c/pp_rect.h" | 15 #include "ppapi/c/pp_rect.h" |
15 #include "ppapi/c/pp_var.h" | 16 #include "ppapi/c/pp_var.h" |
16 #include "ppapi/proxy/ppapi_proxy_export.h" | 17 #include "ppapi/proxy/ppapi_proxy_export.h" |
18 #include "ppapi/shared_impl/compositor_layer.h" | |
17 #include "ppapi/shared_impl/file_path.h" | 19 #include "ppapi/shared_impl/file_path.h" |
18 #include "ppapi/shared_impl/file_ref_create_info.h" | 20 #include "ppapi/shared_impl/file_ref_create_info.h" |
19 #include "ppapi/shared_impl/media_stream_video_track_shared.h" | 21 #include "ppapi/shared_impl/media_stream_video_track_shared.h" |
20 #include "ppapi/shared_impl/ppapi_permissions.h" | 22 #include "ppapi/shared_impl/ppapi_permissions.h" |
21 #include "ppapi/shared_impl/socket_option_data.h" | 23 #include "ppapi/shared_impl/socket_option_data.h" |
22 | 24 |
23 struct PP_NetAddress_Private; | 25 struct PP_NetAddress_Private; |
24 | 26 |
25 namespace ppapi { | 27 namespace ppapi { |
26 | 28 |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
170 }; | 172 }; |
171 | 173 |
172 template<> | 174 template<> |
173 struct PPAPI_PROXY_EXPORT ParamTraits<ppapi::SocketOptionData> { | 175 struct PPAPI_PROXY_EXPORT ParamTraits<ppapi::SocketOptionData> { |
174 typedef ppapi::SocketOptionData param_type; | 176 typedef ppapi::SocketOptionData param_type; |
175 static void Write(Message* m, const param_type& p); | 177 static void Write(Message* m, const param_type& p); |
176 static bool Read(const Message* m, PickleIterator* iter, param_type* r); | 178 static bool Read(const Message* m, PickleIterator* iter, param_type* r); |
177 static void Log(const param_type& p, std::string* l); | 179 static void Log(const param_type& p, std::string* l); |
178 }; | 180 }; |
179 | 181 |
182 template<> | |
183 struct PPAPI_PROXY_EXPORT ParamTraits<ppapi::CompositorLayer::Mailbox> { | |
184 typedef ppapi::CompositorLayer::Mailbox param_type; | |
185 static void Write(Message* m, const param_type& p); | |
186 static bool Read(const Message* m, PickleIterator* iter, param_type* r); | |
187 static void Log(const param_type& p, std::string* l); | |
188 }; | |
189 | |
190 template<> | |
191 struct PPAPI_PROXY_EXPORT ParamTraits<ppapi::CompositorLayer> { | |
192 typedef ppapi::CompositorLayer param_type; | |
193 static void Write(Message* m, const param_type& p); | |
194 static bool Read(const Message* m, PickleIterator* iter, param_type* r); | |
195 static void Log(const param_type& p, std::string* l); | |
196 }; | |
197 | |
180 } // namespace IPC | 198 } // namespace IPC |
181 | 199 |
182 #endif // PPAPI_PROXY_PPAPI_PARAM_TRAITS_H_ | 200 #endif // PPAPI_PROXY_PPAPI_PARAM_TRAITS_H_ |
OLD | NEW |