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

Unified Diff: content/common/clipboard_messages.h

Issue 8801038: Make Clipboard::FormatType an opaque handle type. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Windows compile fixes. Created 9 years 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 side-by-side diff with in-line comments
Download patch
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_
tony 2011/12/06 23:57:20 I don't understand this, so I'll let John review i
dcheng 2011/12/07 00:09:02 This file normally gets included multiple times to
+
+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,

Powered by Google App Engine
This is Rietveld 408576698