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

Unified Diff: components/network_hints/common/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: 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/common/network_hints_param_traits.cc
diff --git a/components/network_hints/common/network_hints_messages.cc b/components/network_hints/common/network_hints_param_traits.cc
similarity index 83%
rename from components/network_hints/common/network_hints_messages.cc
rename to components/network_hints/common/network_hints_param_traits.cc
index 27d035d1ed44e63c3a079acd3898461ebb0d4fb0..45eb6b295ec3681bf16807024414ddcedcc4b6df 100644
--- a/components/network_hints/common/network_hints_messages.cc
+++ b/components/network_hints/common/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/common/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) {

Powered by Google App Engine
This is Rietveld 408576698