Chromium Code Reviews| Index: ppapi/proxy/ppapi_param_traits.h |
| diff --git a/ppapi/proxy/ppapi_param_traits.h b/ppapi/proxy/ppapi_param_traits.h |
| index 96ff11c9618f22ebb913c4dded11851a9cfde2c7..52ceb4c6d04f3d3224db04db71813239d0d35805 100644 |
| --- a/ppapi/proxy/ppapi_param_traits.h |
| +++ b/ppapi/proxy/ppapi_param_traits.h |
| @@ -8,12 +8,14 @@ |
| #include <string> |
| #include <vector> |
| +#include "base/memory/linked_ptr.h" |
|
raymes
2014/06/02 03:51:08
is this needed?
Peng
2014/06/02 19:01:55
Done.
|
| #include "ipc/ipc_message_utils.h" |
| #include "ipc/ipc_platform_file.h" |
| #include "ppapi/c/pp_completion_callback.h" |
| #include "ppapi/c/pp_rect.h" |
| #include "ppapi/c/pp_var.h" |
| #include "ppapi/proxy/ppapi_proxy_export.h" |
| +#include "ppapi/shared_impl/compositor_layer.h" |
| #include "ppapi/shared_impl/file_path.h" |
| #include "ppapi/shared_impl/file_ref_create_info.h" |
| #include "ppapi/shared_impl/media_stream_video_track_shared.h" |
| @@ -177,6 +179,22 @@ struct PPAPI_PROXY_EXPORT ParamTraits<ppapi::SocketOptionData> { |
| static void Log(const param_type& p, std::string* l); |
| }; |
| +template<> |
| +struct PPAPI_PROXY_EXPORT ParamTraits<ppapi::CompositorLayer::Mailbox> { |
| + typedef ppapi::CompositorLayer::Mailbox param_type; |
| + static void Write(Message* m, const param_type& p); |
| + static bool Read(const Message* m, PickleIterator* iter, param_type* r); |
| + static void Log(const param_type& p, std::string* l); |
| +}; |
| + |
| +template<> |
| +struct PPAPI_PROXY_EXPORT ParamTraits<ppapi::CompositorLayer> { |
| + typedef ppapi::CompositorLayer param_type; |
| + static void Write(Message* m, const param_type& p); |
| + static bool Read(const Message* m, PickleIterator* iter, param_type* r); |
| + static void Log(const param_type& p, std::string* l); |
| +}; |
| + |
| } // namespace IPC |
| #endif // PPAPI_PROXY_PPAPI_PARAM_TRAITS_H_ |