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

Side by Side Diff: chrome/common/render_messages_internal.h

Issue 39208: POSIX: Rewrite IPC's interaction with FileDescriptor (Closed)
Patch Set: Created 11 years, 9 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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 // This header is meant to be included in multiple passes, hence no traditional 5 // This header is meant to be included in multiple passes, hence no traditional
6 // header guard. 6 // header guard.
7 // See ipc_message_macros.h for explanation of the macros and passes. 7 // See ipc_message_macros.h for explanation of the macros and passes.
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "build/build_config.h" 12 #include "build/build_config.h"
13 13
14 #include "base/clipboard.h" 14 #include "base/clipboard.h"
15 #include "base/gfx/rect.h" 15 #include "base/gfx/rect.h"
16 #include "base/gfx/native_widget_types.h" 16 #include "base/gfx/native_widget_types.h"
17 #include "base/shared_memory.h" 17 #include "base/shared_memory.h"
18 #include "chrome/common/ipc_message_macros.h" 18 #include "chrome/common/ipc_message_macros.h"
19 #include "chrome/common/ipc_maybe.h"
20 #include "chrome/common/transport_dib.h" 19 #include "chrome/common/transport_dib.h"
21 #include "skia/include/SkBitmap.h" 20 #include "skia/include/SkBitmap.h"
22 #include "webkit/glue/console_message_level.h" 21 #include "webkit/glue/console_message_level.h"
23 #include "webkit/glue/dom_operations.h" 22 #include "webkit/glue/dom_operations.h"
24 #include "webkit/glue/screen_info.h" 23 #include "webkit/glue/screen_info.h"
25 #include "webkit/glue/webcursor.h" 24 #include "webkit/glue/webcursor.h"
26 #include "webkit/glue/webinputevent.h" 25 #include "webkit/glue/webinputevent.h"
27 #include "webkit/glue/webplugin.h" 26 #include "webkit/glue/webplugin.h"
28 27
29 // TODO(mpcomplete): rename ViewMsg and ViewHostMsg to something that makes 28 // TODO(mpcomplete): rename ViewMsg and ViewHostMsg to something that makes
(...skipping 1150 matching lines...) Expand 10 before | Expand all | Expand 10 after
1180 int /* stream_id */, 1179 int /* stream_id */,
1181 double /* left_channel */, 1180 double /* left_channel */,
1182 double /* right_channel */) 1181 double /* right_channel */)
1183 1182
1184 #if defined(OS_MACOSX) 1183 #if defined(OS_MACOSX)
1185 // On OSX, we cannot allocated shared memory from within the sandbox, so 1184 // On OSX, we cannot allocated shared memory from within the sandbox, so
1186 // this call exists for the renderer to ask the browser to allocate memory 1185 // this call exists for the renderer to ask the browser to allocate memory
1187 // on its behalf. We return a file descriptor to the POSIX shared memory. 1186 // on its behalf. We return a file descriptor to the POSIX shared memory.
1188 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_AllocTransportDIB, 1187 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_AllocTransportDIB,
1189 size_t, /* bytes requested */ 1188 size_t, /* bytes requested */
1190 IPC::Maybe<TransportDIB::Handle> /* DIB */) 1189 TransportDIB::Handle /* DIB */)
1191 1190
1192 // Since the browser keeps handles to the allocated transport DIBs, this 1191 // Since the browser keeps handles to the allocated transport DIBs, this
1193 // message is sent to tell the browser that it may release them when the 1192 // message is sent to tell the browser that it may release them when the
1194 // renderer is finished with them. 1193 // renderer is finished with them.
1195 IPC_MESSAGE_CONTROL1(ViewHostMsg_FreeTransportDIB, 1194 IPC_MESSAGE_CONTROL1(ViewHostMsg_FreeTransportDIB,
1196 TransportDIB::Id /* DIB id */) 1195 TransportDIB::Id /* DIB id */)
1197 #endif 1196 #endif
1198 1197
1199 // A renderer sends this to the browser process when it wants to create a 1198 // A renderer sends this to the browser process when it wants to create a
1200 // worker. The browser will create the worker process if necessary, and 1199 // worker. The browser will create the worker process if necessary, and
1201 // will return the route id on success. On error returns MSG_ROUTING_NONE. 1200 // will return the route id on success. On error returns MSG_ROUTING_NONE.
1202 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_CreateDedicatedWorker, 1201 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_CreateDedicatedWorker,
1203 GURL /* url */, 1202 GURL /* url */,
1204 int /* route_id */) 1203 int /* route_id */)
1205 1204
1206 // Wraps an IPC message that's destined to the worker on the renderer->browser 1205 // Wraps an IPC message that's destined to the worker on the renderer->browser
1207 // hop. 1206 // hop.
1208 IPC_MESSAGE_CONTROL1(ViewHostMsg_ForwardToWorker, 1207 IPC_MESSAGE_CONTROL1(ViewHostMsg_ForwardToWorker,
1209 IPC::Message /* message */) 1208 IPC::Message /* message */)
1210 1209
1211 IPC_END_MESSAGES(ViewHost) 1210 IPC_END_MESSAGES(ViewHost)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698