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

Side by Side Diff: content/common/clipboard_messages.h

Issue 1876653003: Register clipboard image blob in the browser process to copy data less. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 8 months 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 unified diff | Download patch
OLDNEW
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>
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 base::string16 /* result */) 61 base::string16 /* result */)
62 IPC_SYNC_MESSAGE_CONTROL1_4(ClipboardHostMsg_ReadHTML, 62 IPC_SYNC_MESSAGE_CONTROL1_4(ClipboardHostMsg_ReadHTML,
63 ui::ClipboardType /* type */, 63 ui::ClipboardType /* type */,
64 base::string16 /* markup */, 64 base::string16 /* markup */,
65 GURL /* url */, 65 GURL /* url */,
66 uint32_t /* fragment start */, 66 uint32_t /* fragment start */,
67 uint32_t /* fragment end */) 67 uint32_t /* fragment end */)
68 IPC_SYNC_MESSAGE_CONTROL1_1(ClipboardHostMsg_ReadRTF, 68 IPC_SYNC_MESSAGE_CONTROL1_1(ClipboardHostMsg_ReadRTF,
69 ui::ClipboardType /* type */, 69 ui::ClipboardType /* type */,
70 std::string /* result */) 70 std::string /* result */)
71 IPC_SYNC_MESSAGE_CONTROL1_2(ClipboardHostMsg_ReadImage, 71 IPC_SYNC_MESSAGE_CONTROL1_3(ClipboardHostMsg_ReadImage,
72 ui::ClipboardType /* type */, 72 ui::ClipboardType /* type */,
73 base::SharedMemoryHandle /* PNG-encoded image */, 73 std::string /* blob_uuid */,
74 uint32_t /* image size */) 74 std::string /* mime_type */,
75 int64_t /* size */);
75 IPC_SYNC_MESSAGE_CONTROL2_1(ClipboardHostMsg_ReadCustomData, 76 IPC_SYNC_MESSAGE_CONTROL2_1(ClipboardHostMsg_ReadCustomData,
76 ui::ClipboardType /* type */, 77 ui::ClipboardType /* type */,
77 base::string16 /* type */, 78 base::string16 /* type */,
78 base::string16 /* result */) 79 base::string16 /* result */)
79 80
80 // Writing to the clipboard via IPC is a two-phase operation. First, the sender 81 // Writing to the clipboard via IPC is a two-phase operation. First, the sender
81 // sends the different types of data it'd like to write to the receiver. Then, 82 // sends the different types of data it'd like to write to the receiver. Then,
82 // it sends a commit message to commit the data to the system clipboard. 83 // it sends a commit message to commit the data to the system clipboard.
83 IPC_MESSAGE_CONTROL2(ClipboardHostMsg_WriteText, 84 IPC_MESSAGE_CONTROL2(ClipboardHostMsg_WriteText,
84 ui::ClipboardType /* type */, 85 ui::ClipboardType /* type */,
(...skipping 18 matching lines...) Expand all
103 IPC_SYNC_MESSAGE_CONTROL3_0(ClipboardHostMsg_WriteImage, 104 IPC_SYNC_MESSAGE_CONTROL3_0(ClipboardHostMsg_WriteImage,
104 ui::ClipboardType /* type */, 105 ui::ClipboardType /* type */,
105 gfx::Size /* size */, 106 gfx::Size /* size */,
106 base::SharedMemoryHandle /* bitmap handle */) 107 base::SharedMemoryHandle /* bitmap handle */)
107 IPC_MESSAGE_CONTROL1(ClipboardHostMsg_CommitWrite, ui::ClipboardType /* type */) 108 IPC_MESSAGE_CONTROL1(ClipboardHostMsg_CommitWrite, ui::ClipboardType /* type */)
108 109
109 #if defined(OS_MACOSX) 110 #if defined(OS_MACOSX)
110 IPC_MESSAGE_CONTROL1(ClipboardHostMsg_FindPboardWriteStringAsync, 111 IPC_MESSAGE_CONTROL1(ClipboardHostMsg_FindPboardWriteStringAsync,
111 base::string16 /* text */) 112 base::string16 /* text */)
112 #endif 113 #endif
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_process_host_impl.cc ('k') | content/renderer/renderer_clipboard_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698