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

Unified Diff: content/public/common/common_param_traits.h

Issue 1534583002: Migrate Local Discovery from net::IPAddressNumber to net::IPAddress. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
Index: content/public/common/common_param_traits.h
diff --git a/content/public/common/common_param_traits.h b/content/public/common/common_param_traits.h
index 170caad9cc5e611e73dace12966977dc439442ef..e9904334e09a33c69de616003228d639cc87a189 100644
--- a/content/public/common/common_param_traits.h
+++ b/content/public/common/common_param_traits.h
@@ -36,6 +36,7 @@ class PageState;
namespace net {
class HostPortPair;
class IPEndPoint;
+class IPAddress;
}
namespace IPC {
@@ -73,6 +74,14 @@ struct CONTENT_EXPORT ParamTraits<net::IPEndPoint> {
};
template <>
+struct CONTENT_EXPORT ParamTraits<net::IPAddress> {
+ typedef net::IPAddress param_type;
+ static void Write(Message* m, const param_type& p);
+ static bool Read(const Message* m, base::PickleIterator* iter, param_type* p);
+ static void Log(const param_type& p, std::string* l);
+};
+
+template <>
struct CONTENT_EXPORT ParamTraits<content::PageState> {
typedef content::PageState param_type;
static void Write(Message* m, const param_type& p);

Powered by Google App Engine
This is Rietveld 408576698