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

Side by Side Diff: content/common/cc_messages.h

Issue 10980010: Cleanup the IPC param traits structure (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix android Created 8 years, 2 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/common/browser_plugin_messages.h ('k') | content/common/cc_messages.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(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
OLDNEW
« no previous file with comments | « content/common/browser_plugin_messages.h ('k') | content/common/cc_messages.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698