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

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

Issue 10948044: Pickling traits for more simple WebKit types. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove static_cast and initialize ptr to NULL 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/common/view_messages.h ('k') | content/public/common/webkit_param_traits.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/common/webkit_param_traits.h
diff --git a/content/public/common/webkit_param_traits.h b/content/public/common/webkit_param_traits.h
index c819122702b54c27b0dbab6cc6d0f094a42f5d92..7132053b30b6049c1d33b27a9959e77b466dd95b 100644
--- a/content/public/common/webkit_param_traits.h
+++ b/content/public/common/webkit_param_traits.h
@@ -18,6 +18,8 @@
#include "base/memory/ref_counted.h"
#include "content/common/content_export.h"
#include "ipc/ipc_message_utils.h"
+#include "third_party/WebKit/Source/Platform/chromium/public/WebData.h"
+#include "third_party/WebKit/Source/Platform/chromium/public/WebTransformationMatrix.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebTextDirection.h"
#include "webkit/blob/blob_data.h"
@@ -78,6 +80,22 @@ struct NPIdentifier_Param {
namespace IPC {
template <>
+struct ParamTraits<WebKit::WebData> {
+ typedef WebKit::WebData 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<WebKit::WebTransformationMatrix> {
+ typedef WebKit::WebTransformationMatrix 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<webkit_glue::ResourceLoadTimingInfo> {
typedef webkit_glue::ResourceLoadTimingInfo param_type;
static void Write(Message* m, const param_type& p);
« no previous file with comments | « content/common/view_messages.h ('k') | content/public/common/webkit_param_traits.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698