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 f527f1628008cb96cd598d2ed1e1664c294f7353..657ef646c71986ab629dffe8f763700df8017a6c 100644 |
--- a/content/public/common/common_param_traits.h |
+++ b/content/public/common/common_param_traits.h |
@@ -25,20 +25,10 @@ |
#include "url/gurl.h" |
#include "url/origin.h" |
-class SkBitmap; |
- |
namespace content { |
class PageState; |
} |
-namespace gfx { |
-class Point; |
-class Rect; |
-class RectF; |
-class Size; |
-class Vector2d; |
-} // namespace gfx |
- |
namespace net { |
class HostPortPair; |
class IPEndPoint; |
@@ -87,70 +77,6 @@ struct CONTENT_EXPORT ParamTraits<content::PageState> { |
}; |
template <> |
-struct CONTENT_EXPORT ParamTraits<gfx::Point> { |
- typedef gfx::Point 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<gfx::PointF> { |
- typedef gfx::PointF 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<gfx::Size> { |
- typedef gfx::Size 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<gfx::SizeF> { |
- typedef gfx::SizeF 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<gfx::Vector2d> { |
- typedef gfx::Vector2d 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<gfx::Vector2dF> { |
- typedef gfx::Vector2dF 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<gfx::Rect> { |
- typedef gfx::Rect 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<gfx::RectF> { |
- typedef gfx::RectF 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<gfx::NativeWindow> { |
typedef gfx::NativeWindow param_type; |
static void Write(Message* m, const param_type& p) { |
@@ -204,18 +130,6 @@ struct ParamTraits<TransportDIB::Id> { |
}; |
#endif |
-template <> |
-struct CONTENT_EXPORT ParamTraits<SkBitmap> { |
- typedef SkBitmap param_type; |
- static void Write(Message* m, const param_type& p); |
- |
- // Note: This function expects parameter |r| to be of type &SkBitmap since |
- // r->SetConfig() and r->SetPixels() are called. |
- static bool Read(const Message* m, PickleIterator* iter, param_type* r); |
- |
- static void Log(const param_type& p, std::string* l); |
-}; |
- |
} // namespace IPC |
#endif // CONTENT_PUBLIC_COMMON_COMMON_PARAM_TRAITS_H_ |