Index: remoting/host/chromoting_param_traits.h |
diff --git a/remoting/host/chromoting_param_traits.h b/remoting/host/chromoting_param_traits.h |
index b13bc825522d9b765cffc71d59c419332f394ecd..2ca0baf8c95cf4ea7e9b0687c97a2b95d95e1e45 100644 |
--- a/remoting/host/chromoting_param_traits.h |
+++ b/remoting/host/chromoting_param_traits.h |
@@ -7,6 +7,8 @@ |
#include "ipc/ipc_message.h" |
#include "ipc/ipc_param_traits.h" |
+#include "net/base/ip_address.h" |
+#include "net/base/ip_endpoint.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" |
@@ -64,6 +66,26 @@ struct ParamTraits<remoting::ScreenResolution> { |
static void Log(const param_type& p, std::string* l); |
}; |
+template <> |
+struct ParamTraits<net::IPAddress> { |
+ typedef net::IPAddress 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); |
+}; |
+ |
+template <> |
+struct ParamTraits<net::IPEndPoint> { |
+ typedef net::IPEndPoint 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); |
+}; |
+ |
} // namespace IPC |
#endif // REMOTING_HOST_CHROMOTING_PARAM_TRAITS_H_ |