From 7c85437ca6d8f1e16c0327a09eab3aa4cee4df1b Mon Sep 17 00:00:00 2001 From: "darin@chromium.org" Date: Mon, 15 Aug 2011 20:41:46 +0000 Subject: Create ipc.dll. Review URL: http://codereview.chromium.org/7633042 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@96820 0039d316-1c4b-4281-b951-d872f2087c98 --- ipc/ipc_message_utils.h | 43 ++++++++++++++++++++++--------------------- 1 file changed, 22 insertions(+), 21 deletions(-) (limited to 'ipc/ipc_message_utils.h') diff --git a/ipc/ipc_message_utils.h b/ipc/ipc_message_utils.h index 7d444b5..ae7490c 100644 --- a/ipc/ipc_message_utils.h +++ b/ipc/ipc_message_utils.h @@ -197,7 +197,7 @@ struct ParamTraits { static bool Read(const Message* m, void** iter, param_type* r) { return m->ReadInt(iter, r); } - static void Log(const param_type& p, std::string* l); + IPC_EXPORT static void Log(const param_type& p, std::string* l); }; template <> @@ -209,7 +209,7 @@ struct ParamTraits { static bool Read(const Message* m, void** iter, param_type* r) { return m->ReadInt(iter, reinterpret_cast(r)); } - static void Log(const param_type& p, std::string* l); + IPC_EXPORT static void Log(const param_type& p, std::string* l); }; template <> @@ -221,7 +221,7 @@ struct ParamTraits { static bool Read(const Message* m, void** iter, param_type* r) { return m->ReadLong(iter, r); } - static void Log(const param_type& p, std::string* l); + IPC_EXPORT static void Log(const param_type& p, std::string* l); }; template <> @@ -233,7 +233,7 @@ struct ParamTraits { static bool Read(const Message* m, void** iter, param_type* r) { return m->ReadLong(iter, reinterpret_cast(r)); } - static void Log(const param_type& p, std::string* l); + IPC_EXPORT static void Log(const param_type& p, std::string* l); }; template <> @@ -245,7 +245,7 @@ struct ParamTraits { static bool Read(const Message* m, void** iter, param_type* r) { return m->ReadInt64(iter, reinterpret_cast(r)); } - static void Log(const param_type& p, std::string* l); + IPC_EXPORT static void Log(const param_type& p, std::string* l); }; template <> @@ -257,11 +257,11 @@ struct ParamTraits { static bool Read(const Message* m, void** iter, param_type* r) { return m->ReadInt64(iter, reinterpret_cast(r)); } - static void Log(const param_type& p, std::string* l); + IPC_EXPORT static void Log(const param_type& p, std::string* l); }; template <> -struct ParamTraits { +struct IPC_EXPORT ParamTraits { typedef unsigned short param_type; static void Write(Message* m, const param_type& p); static bool Read(const Message* m, void** iter, param_type* r); @@ -316,7 +316,7 @@ struct ParamTraits { }; template <> -struct ParamTraits { +struct IPC_EXPORT ParamTraits { typedef base::Time param_type; static void Write(Message* m, const param_type& p); static bool Read(const Message* m, void** iter, param_type* r); @@ -324,7 +324,7 @@ struct ParamTraits { }; template <> -struct ParamTraits { +struct IPC_EXPORT ParamTraits { typedef base::TimeDelta param_type; static void Write(Message* m, const param_type& p); static bool Read(const Message* m, void** iter, param_type* r); @@ -382,7 +382,7 @@ struct ParamTraits { #endif // defined(OS_WIN) template <> -struct ParamTraits { +struct IPC_EXPORT ParamTraits { typedef base::DictionaryValue param_type; static void Write(Message* m, const param_type& p); static bool Read(const Message* m, void** iter, param_type* r); @@ -390,7 +390,7 @@ struct ParamTraits { }; template <> -struct ParamTraits { +struct IPC_EXPORT ParamTraits { typedef base::ListValue param_type; static void Write(Message* m, const param_type& p); static bool Read(const Message* m, void** iter, param_type* r); @@ -584,7 +584,7 @@ struct ParamTraits { static bool Read(const Message* m, void** iter, param_type* r) { return m->ReadWString(iter, r); } - static void Log(const param_type& p, std::string* l); + IPC_EXPORT static void Log(const param_type& p, std::string* l); }; template @@ -607,7 +607,7 @@ struct ParamTraits > { }; template <> -struct ParamTraits { +struct IPC_EXPORT ParamTraits { typedef NullableString16 param_type; static void Write(Message* m, const param_type& p); static bool Read(const Message* m, void** iter, param_type* r); @@ -626,7 +626,7 @@ struct ParamTraits { static bool Read(const Message* m, void** iter, param_type* r) { return m->ReadString16(iter, r); } - static void Log(const param_type& p, std::string* l); + IPC_EXPORT static void Log(const param_type& p, std::string* l); }; #endif @@ -698,7 +698,7 @@ struct ParamTraits { #endif // defined(OS_WIN) template <> -struct ParamTraits { +struct IPC_EXPORT ParamTraits { typedef FilePath param_type; static void Write(Message* m, const param_type& p); static bool Read(const Message* m, void** iter, param_type* r); @@ -722,7 +722,7 @@ struct ParamTraits { // dup()ing any file descriptors to be transmitted and setting the |auto_close| // flag, which causes the file descriptor to be closed after writing. template<> -struct ParamTraits { +struct IPC_EXPORT ParamTraits { typedef base::FileDescriptor param_type; static void Write(Message* m, const param_type& p); static bool Read(const Message* m, void** iter, param_type* r); @@ -734,7 +734,7 @@ struct ParamTraits { // fact that IPC endpoints are handled specially on POSIX. See above comments // on FileDescriptor for more background. template<> -struct ParamTraits { +struct IPC_EXPORT ParamTraits { typedef ChannelHandle param_type; static void Write(Message* m, const param_type& p); static bool Read(const Message* m, void** iter, param_type* r); @@ -767,7 +767,7 @@ struct ParamTraits { }; #endif // defined(OS_WIN) -struct LogData { +struct IPC_EXPORT LogData { LogData(); ~LogData(); @@ -785,7 +785,7 @@ struct LogData { }; template <> -struct ParamTraits { +struct IPC_EXPORT ParamTraits { typedef LogData param_type; static void Write(Message* m, const param_type& p); static bool Read(const Message* m, void** iter, param_type* r); @@ -1077,8 +1077,9 @@ class MessageWithTuple : public Message { }; // defined in ipc_logging.cc -void GenerateLogData(const std::string& channel, const Message& message, - LogData* data); +IPC_EXPORT void GenerateLogData(const std::string& channel, + const Message& message, + LogData* data); #if defined(IPC_MESSAGE_LOG_ENABLED) -- cgit v1.1