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

Unified Diff: content/common/cc_messages.h

Issue 10966050: Add pickling traits for the WebFilterOperations class. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 | « no previous file | content/common/cc_messages.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/cc_messages.h
diff --git a/content/common/cc_messages.h b/content/common/cc_messages.h
index 52b802094c0eae16cf58a676ba7b39c9781ef4b2..4e5d337df5ae44e063d1ed4a5a102f8bb3f5b610 100644
--- a/content/common/cc_messages.h
+++ b/content/common/cc_messages.h
@@ -3,16 +3,20 @@
// found in the LICENSE file.
//
// IPC Messages sent between compositor instances.
-// Multiply-included message file, hence no include guard.
#include "content/common/content_export.h"
#include "ipc/ipc_message_macros.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/Platform/chromium/public/WebFilterOperation.h"
#ifndef CONTENT_COMMON_CC_MESSAGES_H_
#define CONTENT_COMMON_CC_MESSAGES_H_
+namespace WebKit {
+class WebData;
+class WebFilterOperations;
+class WebTransformationMatrix;
+}
+
namespace IPC {
template <>
@@ -24,6 +28,22 @@ struct ParamTraits<WebKit::WebData> {
};
template <>
+struct ParamTraits<WebKit::WebFilterOperation> {
+ typedef WebKit::WebFilterOperation 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::WebFilterOperations> {
+ typedef WebKit::WebFilterOperations 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);
@@ -35,7 +55,10 @@ struct ParamTraits<WebKit::WebTransformationMatrix> {
#endif // CONTENT_COMMON_CC_MESSAGES_H_
+// Multiply-included message file, hence no include guard.
#define IPC_MESSAGE_START CCMsgStart
#undef IPC_MESSAGE_EXPORT
#define IPC_MESSAGE_EXPORT CONTENT_EXPORT
+
+IPC_ENUM_TRAITS(WebKit::WebFilterOperation::FilterType)
« no previous file with comments | « no previous file | content/common/cc_messages.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698