| 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,
|
|
|