Index: content/common/clipboard_messages.h |
diff --git a/content/common/clipboard_messages.h b/content/common/clipboard_messages.h |
index 00497dcad16fabc80e34a4bf96a66c57e5cc295a..6434f7614a122a3c199438533d22729ee84a4c06 100644 |
--- a/content/common/clipboard_messages.h |
+++ b/content/common/clipboard_messages.h |
@@ -15,6 +15,23 @@ |
#define IPC_MESSAGE_START ClipboardMsgStart |
+#ifndef CONTENT_COMMON_CLIPBOARD_MESSAGES_H_ |
+#define CONTENT_COMMON_CLIPBOARD_MESSAGES_H_ |
+ |
+namespace IPC { |
+ |
+template<> |
+struct ParamTraits<ui::Clipboard::FormatType> { |
+ typedef ui::Clipboard::FormatType param_type; |
+ static void Write(Message* m, const param_type& p); |
+ static bool Read(const Message* m, void** iter, param_type* r); |
+ static void Log(const param_type& p, std::string* l); |
+}; |
+ |
+} // namespace IPC |
+ |
+#endif // CONTENT_COMMON_CLIPBOARD_MESSAGES_H_ |
+ |
IPC_ENUM_TRAITS(ui::Clipboard::Buffer) |
// Clipboard IPC messages sent from the renderer to the browser. |
@@ -32,7 +49,7 @@ IPC_SYNC_MESSAGE_CONTROL1_1(ClipboardHostMsg_GetSequenceNumber, |
ui::Clipboard::Buffer /* buffer */, |
uint64 /* result */) |
IPC_SYNC_MESSAGE_CONTROL2_1(ClipboardHostMsg_IsFormatAvailable, |
- std::string /* format */, |
+ ui::Clipboard::FormatType /* format */, |
ui::Clipboard::Buffer /* buffer */, |
bool /* result */) |
IPC_SYNC_MESSAGE_CONTROL1_2(ClipboardHostMsg_ReadAvailableTypes, |