| 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" | |
| 14 #include "base/memory/shared_memory.h" | 13 #include "base/memory/shared_memory.h" |
| 15 #include "base/strings/string16.h" | 14 #include "base/strings/string16.h" |
| 16 #include "build/build_config.h" | 15 #include "build/build_config.h" |
| 17 #include "content/common/clipboard_format.h" | 16 #include "content/common/clipboard_format.h" |
| 18 #include "content/common/content_export.h" | 17 #include "content/public/common/common_param_traits.h" |
| 19 #include "ipc/ipc_message_macros.h" | 18 #include "ipc/ipc_message_macros.h" |
| 20 #include "ipc/param_traits_macros.h" | |
| 21 #include "ui/base/clipboard/clipboard.h" | 19 #include "ui/base/clipboard/clipboard.h" |
| 22 #include "url/ipc/url_param_traits.h" | |
| 23 | 20 |
| 24 // Singly-included section for types and/or struct declarations. | 21 // Singly-included section for types and/or struct declarations. |
| 25 #ifndef CONTENT_COMMON_CLIPBOARD_MESSAGES_H_ | 22 #ifndef CONTENT_COMMON_CLIPBOARD_MESSAGES_H_ |
| 26 #define CONTENT_COMMON_CLIPBOARD_MESSAGES_H_ | 23 #define CONTENT_COMMON_CLIPBOARD_MESSAGES_H_ |
| 27 | 24 |
| 28 // Custom data consists of arbitrary MIME types an untrusted sender wants to | 25 // 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 | 26 // 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. | 27 // dangerous--an untrusted sender could cause a DoS or code execution. |
| 31 typedef std::map<base::string16, base::string16> CustomDataMap; | 28 typedef std::map<base::string16, base::string16> CustomDataMap; |
| 32 | 29 |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 IPC_SYNC_MESSAGE_CONTROL3_0(ClipboardHostMsg_WriteImage, | 100 IPC_SYNC_MESSAGE_CONTROL3_0(ClipboardHostMsg_WriteImage, |
| 104 ui::ClipboardType /* type */, | 101 ui::ClipboardType /* type */, |
| 105 gfx::Size /* size */, | 102 gfx::Size /* size */, |
| 106 base::SharedMemoryHandle /* bitmap handle */) | 103 base::SharedMemoryHandle /* bitmap handle */) |
| 107 IPC_MESSAGE_CONTROL1(ClipboardHostMsg_CommitWrite, ui::ClipboardType /* type */) | 104 IPC_MESSAGE_CONTROL1(ClipboardHostMsg_CommitWrite, ui::ClipboardType /* type */) |
| 108 | 105 |
| 109 #if defined(OS_MACOSX) | 106 #if defined(OS_MACOSX) |
| 110 IPC_MESSAGE_CONTROL1(ClipboardHostMsg_FindPboardWriteStringAsync, | 107 IPC_MESSAGE_CONTROL1(ClipboardHostMsg_FindPboardWriteStringAsync, |
| 111 base::string16 /* text */) | 108 base::string16 /* text */) |
| 112 #endif | 109 #endif |
| OLD | NEW |