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

Unified Diff: chrome/common/common_param_traits.h

Issue 6488010: Propagate the remote socket address to URLRequest and to ViewHostMsg_FrameNavigate. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address eroman's comments Created 9 years, 10 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: chrome/common/common_param_traits.h
diff --git a/chrome/common/common_param_traits.h b/chrome/common/common_param_traits.h
index f1e8cb07ce3fd5e7ae4c3bcd57012c5d5552bd69..860dcc663f0c2ecbd09eb419b4254876b775b860 100644
--- a/chrome/common/common_param_traits.h
+++ b/chrome/common/common_param_traits.h
@@ -50,6 +50,7 @@ class Size;
} // namespace gfx
namespace net {
+class HostPortPair;
class UploadData;
class URLRequestStatus;
}
@@ -263,6 +264,15 @@ struct ParamTraits<TransportDIB::Id> {
};
#endif
+// Traits for HostPortPair
+template<>
+struct ParamTraits<net::HostPortPair> {
+ typedef net::HostPortPair param_type;
+ static void Write(Message* m, const param_type& p);
+ static bool Read(const Message* m, void** iter, param_type* r);
+ static void Log(const param_type& p, std::string* l);
+};
+
// Traits for URLRequestStatus
template <>
struct ParamTraits<net::URLRequestStatus> {

Powered by Google App Engine
This is Rietveld 408576698