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

Unified Diff: remoting/host/chromoting_param_traits.h

Issue 2964613002: [Chromoting] Deprecate AggregatedProcessResourceUsage.* (Closed)
Patch Set: Use latest ipc_message_protobuf_utils to serialize and deserialize AggregatedProcessResourceUsage Created 3 years, 5 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/BUILD.gn ('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 7be70d177b5827bcc36104aa57d4bb3a1309a448..3a1c59d4a0e420a2071b2a65071f3259a014aa43 100644
--- a/remoting/host/chromoting_param_traits.h
+++ b/remoting/host/chromoting_param_traits.h
@@ -92,11 +92,21 @@ 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::ProcessResourceUsage> {
+ typedef remoting::protocol::ProcessResourceUsage param_type;
+ static void GetSize(base::PickleSizer* s, const param_type& p);
+ 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<remoting::protocol::AggregatedProcessResourceUsage> {
typedef remoting::protocol::AggregatedProcessResourceUsage param_type;
+ static void GetSize(base::PickleSizer* s, const param_type& p);
static void Write(base::Pickle* m, const param_type& p);
static bool Read(const base::Pickle* m,
base::PickleIterator* iter,
« no previous file with comments | « remoting/host/BUILD.gn ('k') | remoting/host/chromoting_param_traits.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698