| OLD | NEW |
| (Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 // |
| 5 // IPC Messages sent between compositor instances. |
| 6 // Multiply-included message file, hence no include guard. |
| 7 |
| 8 #include "content/common/content_export.h" |
| 9 #include "ipc/ipc_message_macros.h" |
| 10 #include "third_party/WebKit/Source/Platform/chromium/public/WebData.h" |
| 11 #include "third_party/WebKit/Source/Platform/chromium/public/WebTransformationMa
trix.h" |
| 12 |
| 13 #ifndef CONTENT_COMMON_CC_MESSAGES_H_ |
| 14 #define CONTENT_COMMON_CC_MESSAGES_H_ |
| 15 |
| 16 namespace IPC { |
| 17 |
| 18 template <> |
| 19 struct ParamTraits<WebKit::WebData> { |
| 20 typedef WebKit::WebData param_type; |
| 21 static void Write(Message* m, const param_type& p); |
| 22 static bool Read(const Message* m, PickleIterator* iter, param_type* r); |
| 23 static void Log(const param_type& p, std::string* l); |
| 24 }; |
| 25 |
| 26 template <> |
| 27 struct ParamTraits<WebKit::WebTransformationMatrix> { |
| 28 typedef WebKit::WebTransformationMatrix param_type; |
| 29 static void Write(Message* m, const param_type& p); |
| 30 static bool Read(const Message* m, PickleIterator* iter, param_type* r); |
| 31 static void Log(const param_type& p, std::string* l); |
| 32 }; |
| 33 |
| 34 } // namespace IPC |
| 35 |
| 36 #endif // CONTENT_COMMON_CC_MESSAGES_H_ |
| 37 |
| 38 |
| 39 #define IPC_MESSAGE_START CCMsgStart |
| 40 #undef IPC_MESSAGE_EXPORT |
| 41 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT |
| OLD | NEW |