OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Multiply-included message file, so no include guard. | 5 // Multiply-included message file, so no include guard. |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "build/build_config.h" | 13 #include "build/build_config.h" |
14 #include "base/memory/shared_memory.h" | 14 #include "base/memory/shared_memory.h" |
15 #include "base/strings/string16.h" | 15 #include "base/strings/string16.h" |
16 #include "build/build_config.h" | 16 #include "build/build_config.h" |
17 #include "content/common/clipboard_format.h" | 17 #include "content/common/clipboard_format.h" |
18 #include "content/common/content_export.h" | 18 #include "content/common/content_export.h" |
19 #include "ipc/ipc_message_macros.h" | 19 #include "ipc/ipc_message_macros.h" |
20 #include "ipc/param_traits_macros.h" | 20 #include "ipc/param_traits_macros.h" |
21 #include "ui/base/clipboard/clipboard.h" | 21 #include "ui/base/clipboard/clipboard.h" |
| 22 #include "ui/gfx/geometry/size.h" |
22 #include "url/ipc/url_param_traits.h" | 23 #include "url/ipc/url_param_traits.h" |
23 | 24 |
24 // Singly-included section for types and/or struct declarations. | 25 // Singly-included section for types and/or struct declarations. |
25 #ifndef CONTENT_COMMON_CLIPBOARD_MESSAGES_H_ | 26 #ifndef CONTENT_COMMON_CLIPBOARD_MESSAGES_H_ |
26 #define CONTENT_COMMON_CLIPBOARD_MESSAGES_H_ | 27 #define CONTENT_COMMON_CLIPBOARD_MESSAGES_H_ |
27 | 28 |
28 // Custom data consists of arbitrary MIME types an untrusted sender wants to | 29 // Custom data consists of arbitrary MIME types an untrusted sender wants to |
29 // write to the clipboard. Note that exposing a general interface to do this is | 30 // write to the clipboard. Note that exposing a general interface to do this is |
30 // dangerous--an untrusted sender could cause a DoS or code execution. | 31 // dangerous--an untrusted sender could cause a DoS or code execution. |
31 typedef std::map<base::string16, base::string16> CustomDataMap; | 32 typedef std::map<base::string16, base::string16> CustomDataMap; |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 IPC_SYNC_MESSAGE_CONTROL3_0(ClipboardHostMsg_WriteImage, | 105 IPC_SYNC_MESSAGE_CONTROL3_0(ClipboardHostMsg_WriteImage, |
105 ui::ClipboardType /* type */, | 106 ui::ClipboardType /* type */, |
106 gfx::Size /* size */, | 107 gfx::Size /* size */, |
107 base::SharedMemoryHandle /* bitmap handle */) | 108 base::SharedMemoryHandle /* bitmap handle */) |
108 IPC_MESSAGE_CONTROL1(ClipboardHostMsg_CommitWrite, ui::ClipboardType /* type */) | 109 IPC_MESSAGE_CONTROL1(ClipboardHostMsg_CommitWrite, ui::ClipboardType /* type */) |
109 | 110 |
110 #if defined(OS_MACOSX) | 111 #if defined(OS_MACOSX) |
111 IPC_MESSAGE_CONTROL1(ClipboardHostMsg_FindPboardWriteStringAsync, | 112 IPC_MESSAGE_CONTROL1(ClipboardHostMsg_FindPboardWriteStringAsync, |
112 base::string16 /* text */) | 113 base::string16 /* text */) |
113 #endif | 114 #endif |
OLD | NEW |