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

Unified Diff: components/network_hints/public/cpp/network_hints_param_traits.cc

Issue 2144533002: Convert network hints to Mojo (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address sammc's review comments Created 4 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
Index: components/network_hints/public/cpp/network_hints_param_traits.cc
diff --git a/components/network_hints/common/network_hints_messages.cc b/components/network_hints/public/cpp/network_hints_param_traits.cc
similarity index 78%
rename from components/network_hints/common/network_hints_messages.cc
rename to components/network_hints/public/cpp/network_hints_param_traits.cc
index 27d035d1ed44e63c3a079acd3898461ebb0d4fb0..2dbbb1130455de083ad4282189fff2522809ddfd 100644
--- a/components/network_hints/common/network_hints_messages.cc
+++ b/components/network_hints/public/cpp/network_hints_param_traits.cc
@@ -2,13 +2,18 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "components/network_hints/common/network_hints_messages.h"
+#include "components/network_hints/public/cpp/network_hints_param_traits.h"
#include "base/strings/string_number_conversions.h"
#include "components/network_hints/common/network_hints_common.h"
namespace IPC {
+void ParamTraits<network_hints::LookupRequest>::GetSize(base::PickleSizer* s,
+ const param_type& p) {
+ IPC::GetParamSize(s, p.hostname_list);
+}
+
void ParamTraits<network_hints::LookupRequest>::Write(
base::Pickle* m,
const network_hints::LookupRequest& request) {
@@ -34,7 +39,8 @@ bool ParamTraits<network_hints::LookupRequest>::Read(
}
void ParamTraits<network_hints::LookupRequest>::Log(
- const network_hints::LookupRequest& p, std::string* l) {
+ const network_hints::LookupRequest& p,
+ std::string* l) {
l->append("<network_hints::LookupRequest: ");
l->append(base::SizeTToString(p.hostname_list.size()));
l->append(" hostnames>");

Powered by Google App Engine
This is Rietveld 408576698