Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1272)

Unified Diff: remoting/host/chromoting_param_traits.h

Issue 2933203002: [Chromoting] Use ProcessStatsSender in DesktopSessionAgent (desktop process) (Closed)
Patch Set: Resolve review comments Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/host/chromoting_messages.h ('k') | remoting/host/chromoting_param_traits.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« no previous file with comments | « remoting/host/chromoting_messages.h ('k') | remoting/host/chromoting_param_traits.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698