Index: remoting/host/chromoting_param_traits.h |
diff --git a/remoting/host/chromoting_param_traits.h b/remoting/host/chromoting_param_traits.h |
index a7be2112d4710be1c72126cd8b908e5c1dce4c65..7be70d177b5827bcc36104aa57d4bb3a1309a448 100644 |
--- a/remoting/host/chromoting_param_traits.h |
+++ b/remoting/host/chromoting_param_traits.h |
@@ -11,6 +11,7 @@ |
#include "net/base/ip_endpoint.h" |
#include "remoting/host/desktop_environment_options.h" |
#include "remoting/host/screen_resolution.h" |
+#include "remoting/proto/process_stats.pb.h" |
#include "third_party/webrtc/modules/desktop_capture/desktop_frame.h" |
#include "third_party/webrtc/modules/desktop_capture/desktop_geometry.h" |
#include "third_party/webrtc/modules/desktop_capture/mouse_cursor.h" |
@@ -91,6 +92,18 @@ struct ParamTraits<remoting::DesktopEnvironmentOptions> { |
static void Log(const param_type& p, std::string* l); |
}; |
+// Serializes and deserializes AggregatedProcessResourceUsage. This ParamTraits |
+// specialization does not handle AggregatedProcessResourceUsage::usages(). |
+template <> |
+struct ParamTraits<remoting::protocol::AggregatedProcessResourceUsage> { |
+ typedef remoting::protocol::AggregatedProcessResourceUsage 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_ |