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>"); |