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

Side by Side Diff: remoting/host/chromoting_param_traits.h

Issue 2964613002: [Chromoting] Deprecate AggregatedProcessResourceUsage.* (Closed)
Patch Set: Resolve review comments 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef REMOTING_HOST_CHROMOTING_PARAM_TRAITS_H_ 5 #ifndef REMOTING_HOST_CHROMOTING_PARAM_TRAITS_H_
6 #define REMOTING_HOST_CHROMOTING_PARAM_TRAITS_H_ 6 #define REMOTING_HOST_CHROMOTING_PARAM_TRAITS_H_
7 7
8 #include "ipc/ipc_message.h" 8 #include "ipc/ipc_message.h"
9 #include "ipc/ipc_param_traits.h" 9 #include "ipc/ipc_param_traits.h"
10 #include "net/base/ip_address.h" 10 #include "net/base/ip_address.h"
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 template <> 85 template <>
86 struct ParamTraits<remoting::DesktopEnvironmentOptions> { 86 struct ParamTraits<remoting::DesktopEnvironmentOptions> {
87 typedef remoting::DesktopEnvironmentOptions param_type; 87 typedef remoting::DesktopEnvironmentOptions param_type;
88 static void Write(base::Pickle* m, const param_type& p); 88 static void Write(base::Pickle* m, const param_type& p);
89 static bool Read(const base::Pickle* m, 89 static bool Read(const base::Pickle* m,
90 base::PickleIterator* iter, 90 base::PickleIterator* iter,
91 param_type* p); 91 param_type* p);
92 static void Log(const param_type& p, std::string* l); 92 static void Log(const param_type& p, std::string* l);
93 }; 93 };
94 94
95 // Serializes and deserializes AggregatedProcessResourceUsage. This ParamTraits 95 // Serializes and deserializes AggregatedProcessResourceUsage.
96 // specialization does not handle AggregatedProcessResourceUsage::usages().
97 template <> 96 template <>
98 struct ParamTraits<remoting::protocol::AggregatedProcessResourceUsage> { 97 struct ParamTraits<remoting::protocol::AggregatedProcessResourceUsage> {
99 typedef remoting::protocol::AggregatedProcessResourceUsage param_type; 98 typedef remoting::protocol::AggregatedProcessResourceUsage param_type;
99 static void GetSize(base::PickleSizer* s, const param_type& p);
100 static void Write(base::Pickle* m, const param_type& p); 100 static void Write(base::Pickle* m, const param_type& p);
101 static bool Read(const base::Pickle* m, 101 static bool Read(const base::Pickle* m,
102 base::PickleIterator* iter, 102 base::PickleIterator* iter,
103 param_type* p); 103 param_type* p);
104 static void Log(const param_type& p, std::string* l); 104 static void Log(const param_type& p, std::string* l);
105 }; 105 };
106 106
107 } // namespace IPC 107 } // namespace IPC
108 108
109 #endif // REMOTING_HOST_CHROMOTING_PARAM_TRAITS_H_ 109 #endif // REMOTING_HOST_CHROMOTING_PARAM_TRAITS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698