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

Unified Diff: content/common/common_param_traits.h

Issue 6685013: Use IPEndPoint for P2P IPC messages (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 9 years, 9 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: content/common/common_param_traits.h
diff --git a/content/common/common_param_traits.h b/content/common/common_param_traits.h
index 20c5be3c441e32b1e763d0254224dadf0b28c54e..244837760a921c8050768c45018dc94248eeac1b 100644
--- a/content/common/common_param_traits.h
+++ b/content/common/common_param_traits.h
@@ -18,6 +18,7 @@
#include "base/ref_counted.h"
#include "googleurl/src/gurl.h"
#include "ipc/ipc_message_utils.h"
+#include "net/base/ip_endpoint.h"
#include "net/url_request/url_request_status.h"
// !!! WARNING: DO NOT ADD NEW WEBKIT DEPENDENCIES !!!
//
@@ -101,6 +102,14 @@ struct ParamTraits<scoped_refptr<net::HttpResponseHeaders> > {
};
template <>
+struct ParamTraits<net::IPEndPoint> {
+ typedef net::IPEndPoint param_type;
+ static void Write(Message* m, const param_type& p);
+ static bool Read(const Message* m, void** iter, param_type* p);
+ static void Log(const param_type& p, std::string* l);
+};
+
+template <>
struct ParamTraits<webkit_glue::ResourceLoadTimingInfo> {
typedef webkit_glue::ResourceLoadTimingInfo param_type;
static void Write(Message* m, const param_type& p);

Powered by Google App Engine
This is Rietveld 408576698