Chromium Code Reviews| Index: remoting/host/chromoting_param_traits.h |
| diff --git a/remoting/host/chromoting_param_traits.h b/remoting/host/chromoting_param_traits.h |
| index 9763ee9f7254d1d112e55d55e691d715fb3becb7..a7be2112d4710be1c72126cd8b908e5c1dce4c65 100644 |
| --- a/remoting/host/chromoting_param_traits.h |
| +++ b/remoting/host/chromoting_param_traits.h |
| @@ -9,6 +9,7 @@ |
| #include "ipc/ipc_param_traits.h" |
| #include "net/base/ip_address.h" |
| #include "net/base/ip_endpoint.h" |
| +#include "remoting/host/desktop_environment_options.h" |
| #include "remoting/host/screen_resolution.h" |
| #include "third_party/webrtc/modules/desktop_capture/desktop_frame.h" |
| #include "third_party/webrtc/modules/desktop_capture/desktop_geometry.h" |
| @@ -80,6 +81,16 @@ struct ParamTraits<net::IPEndPoint> { |
| static void Log(const param_type& p, std::string* l); |
| }; |
| +template <> |
| +struct ParamTraits<remoting::DesktopEnvironmentOptions> { |
| + typedef remoting::DesktopEnvironmentOptions param_type; |
| + static void Write(base::Pickle* m, const param_type& p); |
| + static bool Read(const base::Pickle* m, |
| + base::PickleIterator* iter, |
| + param_type* p); |
| + static void Log(const param_type& p, std::string* l); |
|
Hzj_jie
2016/11/28 00:10:45
Share we consider to add a ParamTraits<DesktopCapt
Sergey Ulanov
2016/11/28 19:54:41
I don't think we really need it right now.
|
| +}; |
| + |
| } // namespace IPC |
| #endif // REMOTING_HOST_CHROMOTING_PARAM_TRAITS_H_ |