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

Unified Diff: content/common/clipboard_messages.h

Issue 743243002: Fix compilation of ipc fuzzer utilities (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: We said "fix", not "increase breakage", son. Created 6 years, 1 month 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/clipboard_messages.h
diff --git a/content/common/clipboard_messages.h b/content/common/clipboard_messages.h
index ff025248713b38c4a158ffc4390c49f5d225b1e2..5874de6aa2562a8143ecc4f74314ce6eb2078f7e 100644
--- a/content/common/clipboard_messages.h
+++ b/content/common/clipboard_messages.h
@@ -15,6 +15,17 @@
#include "ipc/ipc_message_macros.h"
#include "ui/base/clipboard/clipboard.h"
+// Singly-included section for types and/or struct declarations.
+#ifndef CONTENT_COMMON_CLIPBOARD_MESSAGES_H_
+#define CONTENT_COMMON_CLIPBOARD_MESSAGES_H_
+
+// Custom data consists of arbitrary MIME types an untrusted sender wants to
+// write to the clipboard. Note that exposing a general interface to do this is
+// dangerous--an untrusted sender could cause a DoS or code execution.
+typedef std::map<base::string16, base::string16> CustomDataMap;
+
+#endif // CONTENT_COMMON_CLIPBOARD_MESSAGES_H_
+
#define IPC_MESSAGE_START ClipboardMsgStart
IPC_ENUM_TRAITS_MAX_VALUE(content::ClipboardFormat,
@@ -68,11 +79,7 @@ IPC_MESSAGE_CONTROL3(ClipboardHostMsg_WriteHTML,
base::string16 /* markup */,
GURL /* url */)
IPC_MESSAGE_CONTROL1(ClipboardHostMsg_WriteSmartPasteMarker,
- ui::ClipboardType /* type */);
-// Custom data consists of arbitrary MIME types an untrusted sender wants to
-// write to the clipboard. Note that exposing a general interface to do this is
-// dangerous--an untrusted sender could cause a DoS or code execution.
-typedef std::map<base::string16, base::string16> CustomDataMap;
+ ui::ClipboardType /* type */)
IPC_MESSAGE_CONTROL2(ClipboardHostMsg_WriteCustomData,
ui::ClipboardType /* type */,
CustomDataMap /* custom data */)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698