diff options
author | jeremy@chromium.org <jeremy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-01 23:48:34 +0000 |
---|---|---|
committer | jeremy@chromium.org <jeremy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-01 23:48:34 +0000 |
commit | dc90da2c3f8c87baa8dcea7fbf0272001d771ecf (patch) | |
tree | 99baf8465918e25521eab024315a5aa9ce78734d /chrome/common/ipc_message_utils.h | |
parent | bf1b47dfbe8294738c0db628af036e2fd363ddac (diff) | |
download | chromium_src-dc90da2c3f8c87baa8dcea7fbf0272001d771ecf.zip chromium_src-dc90da2c3f8c87baa8dcea7fbf0272001d771ecf.tar.gz chromium_src-dc90da2c3f8c87baa8dcea7fbf0272001d771ecf.tar.bz2 |
* Add ipc_tests unittest target to xcode project.
* Stub out ipc_channel_posix.cc to allow other code that depends on it to be compiled.
* Cleanup some ipc code a bit to compile on gcc.
* Remove unused IPC::Channel::ProcessPendingMessages()
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6181 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/ipc_message_utils.h')
-rw-r--r-- | chrome/common/ipc_message_utils.h | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/chrome/common/ipc_message_utils.h b/chrome/common/ipc_message_utils.h index 4fd66e1..af61c85 100644 --- a/chrome/common/ipc_message_utils.h +++ b/chrome/common/ipc_message_utils.h @@ -255,6 +255,7 @@ struct ParamTraits<base::Time> { } }; +#if defined(OS_WIN) template <> struct ParamTraits<LOGFONT> { typedef LOGFONT param_type; @@ -299,6 +300,7 @@ struct ParamTraits<MSG> { return result; } }; +#endif // defined(OS_WIN) template <> struct ParamTraits<SkBitmap> { @@ -423,7 +425,7 @@ struct ParamTraits<std::map<K, V> > { typedef std::map<K, V> param_type; static void Write(Message* m, const param_type& p) { WriteParam(m, static_cast<int>(p.size())); - param_type::const_iterator iter; + typename param_type::const_iterator iter; for (iter = p.begin(); iter != p.end(); ++iter) { WriteParam(m, iter->first); WriteParam(m, iter->second); @@ -471,6 +473,7 @@ struct ParamTraits<GURL> { }; // and, a few more useful types... +#if defined(OS_WIN) template <> struct ParamTraits<HANDLE> { typedef HANDLE param_type; @@ -580,6 +583,7 @@ struct ParamTraits<POINT> { l->append(StringPrintf(L"(%d, %d)", p.x, p.y)); } }; +#endif // defined(OS_WIN) template <> struct ParamTraits<gfx::Point> { @@ -723,6 +727,7 @@ struct ParamTraits<CacheManager::ResourceTypeStats> { } }; +#if defined(OS_WIN) template <> struct ParamTraits<XFORM> { typedef XFORM param_type; @@ -746,6 +751,7 @@ struct ParamTraits<XFORM> { l->append(L"<XFORM>"); } }; +#endif // defined(OS_WIN) template <> struct ParamTraits<WebCursor> { @@ -975,7 +981,7 @@ struct ParamTraits<webkit_glue::WebApplicationInfo> { template <class Param> class MessageWithTuple : public Message { public: - MessageWithTuple(int32 routing_id, WORD type, const Param& p) + MessageWithTuple(int32 routing_id, uint16 type, const Param& p) : Message(routing_id, type, PRIORITY_NORMAL) { WriteParam(this, p); } @@ -1086,7 +1092,7 @@ void GenerateLogData(const std::wstring& channel, const Message& message, template <class SendParam, class ReplyParam> class MessageWithReply : public SyncMessage { public: - MessageWithReply(int32 routing_id, WORD type, + MessageWithReply(int32 routing_id, uint16 type, const SendParam& send, const ReplyParam& reply) : SyncMessage(routing_id, type, PRIORITY_NORMAL, new ParamDeserializer<ReplyParam>(reply)) { @@ -1108,7 +1114,7 @@ class MessageWithReply : public SyncMessage { } else { // This is an outgoing reply. Now that we have the output parameters, we // can finally log the message. - ReplyParam::ValueTuple p; + typename ReplyParam::ValueTuple p; void* iter = SyncMessage::GetDataIterator(msg); ReadParam(msg, &iter, &p); LogParam(p, l); @@ -1122,7 +1128,7 @@ class MessageWithReply : public SyncMessage { Message* reply = GenerateReply(msg); bool error; if (ReadParam(msg, &iter, &send_params)) { - ReplyParam::ValueTuple reply_params; + typename ReplyParam::ValueTuple reply_params; DispatchToMethod(obj, func, send_params, &reply_params); WriteParam(reply, reply_params); error = false; |