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

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

Issue 10980010: Cleanup the IPC param traits structure (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix android Created 8 years, 3 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
« no previous file with comments | « content/content_common.gypi ('k') | content/public/common/common_param_traits.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/common/common_param_traits.h
===================================================================
--- content/public/common/common_param_traits.h (revision 158377)
+++ content/public/common/common_param_traits.h (working copy)
@@ -19,11 +19,8 @@
#include "content/public/common/common_param_traits_macros.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"
#include "ui/gfx/native_widget_types.h"
#include "ui/surface/transport_dib.h"
-#include "webkit/base/data_element.h"
class SkBitmap;
@@ -39,19 +36,9 @@
} // namespace gfx
namespace net {
-class HttpResponseHeaders;
class HostPortPair;
-class UploadData;
}
-namespace ui {
-class Range;
-}
-
-namespace webkit_glue {
-class ResourceRequestBody;
-}
-
namespace IPC {
template <>
@@ -62,39 +49,6 @@
static void Log(const param_type& p, std::string* l);
};
-template <>
-struct CONTENT_EXPORT ParamTraits<net::URLRequestStatus> {
- typedef net::URLRequestStatus param_type;
- static void Write(Message* m, const param_type& p);
- static bool Read(const Message* m, PickleIterator* iter, param_type* r);
- static void Log(const param_type& p, std::string* l);
-};
-
-template <>
-struct CONTENT_EXPORT ParamTraits<scoped_refptr<net::UploadData> > {
- typedef scoped_refptr<net::UploadData> param_type;
- static void Write(Message* m, const param_type& p);
- static bool Read(const Message* m, PickleIterator* iter, param_type* r);
- static void Log(const param_type& p, std::string* l);
-};
-
-template <>
-struct CONTENT_EXPORT ParamTraits<scoped_refptr<
- webkit_glue::ResourceRequestBody> > {
- typedef scoped_refptr<webkit_glue::ResourceRequestBody> param_type;
- static void Write(Message* m, const param_type& p);
- static bool Read(const Message* m, PickleIterator* iter, param_type* r);
- static void Log(const param_type& p, std::string* l);
-};
-
-template <>
-struct CONTENT_EXPORT ParamTraits<webkit_base::DataElement> {
- typedef webkit_base::DataElement param_type;
- static void Write(Message* m, const param_type& p);
- static bool Read(const Message* m, PickleIterator* iter, param_type* r);
- static void Log(const param_type& p, std::string* l);
-};
-
template<>
struct CONTENT_EXPORT ParamTraits<net::HostPortPair> {
typedef net::HostPortPair param_type;
@@ -104,22 +58,6 @@
};
template <>
-struct ParamTraits<scoped_refptr<net::HttpResponseHeaders> > {
- typedef scoped_refptr<net::HttpResponseHeaders> param_type;
- static void Write(Message* m, const param_type& p);
- static bool Read(const Message* m, PickleIterator* iter, param_type* r);
- static void Log(const param_type& p, std::string* l);
-};
-
-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, PickleIterator* iter, param_type* p);
- static void Log(const param_type& p, std::string* l);
-};
-
-template <>
struct CONTENT_EXPORT ParamTraits<content::Referrer> {
typedef content::Referrer param_type;
static void Write(Message* m, const param_type& p);
@@ -191,14 +129,6 @@
}
};
-template <>
-struct CONTENT_EXPORT ParamTraits<ui::Range> {
- typedef ui::Range param_type;
- static void Write(Message* m, const param_type& p);
- static bool Read(const Message* m, PickleIterator* iter, param_type* r);
- static void Log(const param_type& p, std::string* l);
-};
-
#if defined(OS_WIN)
template<>
struct ParamTraits<TransportDIB::Id> {
« no previous file with comments | « content/content_common.gypi ('k') | content/public/common/common_param_traits.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698