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

Unified Diff: chrome/common/service_messages.cc

Issue 5955001: Remove chromoting host registration from service process. More IPCs to control (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merges Created 10 years 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 | « chrome/common/service_messages.h ('k') | chrome/common/service_messages_internal.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/service_messages.cc
diff --git a/chrome/common/service_messages.cc b/chrome/common/service_messages.cc
index 98f892303f9fe5ed5537699925c22c37cb211b98..b2218814a4d19087f3fb6e1c48a8a2a9b4cf5fa2 100644
--- a/chrome/common/service_messages.cc
+++ b/chrome/common/service_messages.cc
@@ -2,5 +2,46 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "chrome/common/remoting/chromoting_host_info.h"
+#include "ipc/ipc_channel_handle.h"
+
#define IPC_MESSAGE_IMPL
#include "chrome/common/service_messages.h"
+
+namespace IPC {
+
+void ParamTraits<remoting::ChromotingHostInfo> ::Write(
+ Message* m, const param_type& p) {
+ WriteParam(m, p.host_id);
+ WriteParam(m, p.hostname);
+ WriteParam(m, p.public_key);
+ WriteParam(m, p.enabled);
+ WriteParam(m, p.login);
+}
+
+bool ParamTraits<remoting::ChromotingHostInfo> ::Read(
+ const Message* m, void** iter, param_type* p) {
+ bool ret = ReadParam(m, iter, &p->host_id);
+ ret = ret && ReadParam(m, iter, &p->hostname);
+ ret = ret && ReadParam(m, iter, &p->public_key);
+ ret = ret && ReadParam(m, iter, &p->enabled);
+ ret = ret && ReadParam(m, iter, &p->login);
+ return ret;
+}
+
+void ParamTraits<remoting::ChromotingHostInfo> ::Log(
+ const param_type& p, std::string* l) {
+ l->append("(");
+ LogParam(p.host_id, l);
+ l->append(", ");
+ LogParam(p.hostname, l);
+ l->append(", ");
+ LogParam(p.public_key, l);
+ l->append(", ");
+ LogParam(p.enabled, l);
+ l->append(", ");
+ LogParam(p.login, l);
+ l->append(")");
+}
+
+} // namespace IPC
« no previous file with comments | « chrome/common/service_messages.h ('k') | chrome/common/service_messages_internal.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698