| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 // | 4 // |
| 5 // IPC Messages sent between compositor instances. | 5 // IPC Messages sent between compositor instances. |
| 6 // Multiply-included message file, hence no include guard. | |
| 7 | 6 |
| 8 #include "content/common/content_export.h" | 7 #include "content/common/content_export.h" |
| 9 #include "ipc/ipc_message_macros.h" | 8 #include "ipc/ipc_message_macros.h" |
| 10 #include "third_party/WebKit/Source/Platform/chromium/public/WebData.h" | 9 #include "third_party/WebKit/Source/Platform/chromium/public/WebFilterOperation.
h" |
| 11 #include "third_party/WebKit/Source/Platform/chromium/public/WebTransformationMa
trix.h" | |
| 12 | 10 |
| 13 #ifndef CONTENT_COMMON_CC_MESSAGES_H_ | 11 #ifndef CONTENT_COMMON_CC_MESSAGES_H_ |
| 14 #define CONTENT_COMMON_CC_MESSAGES_H_ | 12 #define CONTENT_COMMON_CC_MESSAGES_H_ |
| 15 | 13 |
| 14 namespace WebKit { |
| 15 class WebData; |
| 16 class WebFilterOperations; |
| 17 class WebTransformationMatrix; |
| 18 } |
| 19 |
| 16 namespace IPC { | 20 namespace IPC { |
| 17 | 21 |
| 18 template <> | 22 template <> |
| 19 struct ParamTraits<WebKit::WebData> { | 23 struct ParamTraits<WebKit::WebData> { |
| 20 typedef WebKit::WebData param_type; | 24 typedef WebKit::WebData param_type; |
| 21 static void Write(Message* m, const param_type& p); | 25 static void Write(Message* m, const param_type& p); |
| 22 static bool Read(const Message* m, PickleIterator* iter, param_type* r); | 26 static bool Read(const Message* m, PickleIterator* iter, param_type* r); |
| 23 static void Log(const param_type& p, std::string* l); | 27 static void Log(const param_type& p, std::string* l); |
| 24 }; | 28 }; |
| 25 | 29 |
| 26 template <> | 30 template <> |
| 31 struct ParamTraits<WebKit::WebFilterOperation> { |
| 32 typedef WebKit::WebFilterOperation param_type; |
| 33 static void Write(Message* m, const param_type& p); |
| 34 static bool Read(const Message* m, PickleIterator* iter, param_type* r); |
| 35 static void Log(const param_type& p, std::string* l); |
| 36 }; |
| 37 |
| 38 template <> |
| 39 struct ParamTraits<WebKit::WebFilterOperations> { |
| 40 typedef WebKit::WebFilterOperations param_type; |
| 41 static void Write(Message* m, const param_type& p); |
| 42 static bool Read(const Message* m, PickleIterator* iter, param_type* r); |
| 43 static void Log(const param_type& p, std::string* l); |
| 44 }; |
| 45 |
| 46 template <> |
| 27 struct ParamTraits<WebKit::WebTransformationMatrix> { | 47 struct ParamTraits<WebKit::WebTransformationMatrix> { |
| 28 typedef WebKit::WebTransformationMatrix param_type; | 48 typedef WebKit::WebTransformationMatrix param_type; |
| 29 static void Write(Message* m, const param_type& p); | 49 static void Write(Message* m, const param_type& p); |
| 30 static bool Read(const Message* m, PickleIterator* iter, param_type* r); | 50 static bool Read(const Message* m, PickleIterator* iter, param_type* r); |
| 31 static void Log(const param_type& p, std::string* l); | 51 static void Log(const param_type& p, std::string* l); |
| 32 }; | 52 }; |
| 33 | 53 |
| 34 } // namespace IPC | 54 } // namespace IPC |
| 35 | 55 |
| 36 #endif // CONTENT_COMMON_CC_MESSAGES_H_ | 56 #endif // CONTENT_COMMON_CC_MESSAGES_H_ |
| 37 | 57 |
| 58 // Multiply-included message file, hence no include guard. |
| 38 | 59 |
| 39 #define IPC_MESSAGE_START CCMsgStart | 60 #define IPC_MESSAGE_START CCMsgStart |
| 40 #undef IPC_MESSAGE_EXPORT | 61 #undef IPC_MESSAGE_EXPORT |
| 41 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT | 62 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT |
| 63 |
| 64 IPC_ENUM_TRAITS(WebKit::WebFilterOperation::FilterType) |
| OLD | NEW |