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

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

Issue 3106018: Reapplies all the IPC system work (reverts the revert r56272). (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Created 10 years, 4 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
« no previous file with comments | « chrome/common/render_messages.cc ('k') | chrome/common/render_messages_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 <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 14
15 #include "base/file_path.h" 15 #include "base/file_path.h"
16 #include "base/nullable_string16.h" 16 #include "base/nullable_string16.h"
17 #include "base/platform_file.h" 17 #include "base/platform_file.h"
18 #include "base/sync_socket.h" 18 #include "base/sync_socket.h"
19 #include "base/time.h"
20 #include "base/values.h"
21 #include "chrome/common/content_settings.h" 19 #include "chrome/common/content_settings.h"
22 #include "chrome/common/extensions/update_manifest.h"
23 #include "chrome/common/geoposition.h" 20 #include "chrome/common/geoposition.h"
24 #include "chrome/common/nacl_types.h" 21 #include "chrome/common/nacl_types.h"
25 #include "chrome/common/notification_type.h" 22 #include "chrome/common/notification_type.h"
26 #include "chrome/common/page_zoom.h" 23 #include "chrome/common/page_zoom.h"
27 #include "chrome/common/thumbnail_score.h"
28 #include "chrome/common/translate_errors.h" 24 #include "chrome/common/translate_errors.h"
29 #include "chrome/common/window_container_type.h" 25 #include "chrome/common/window_container_type.h"
30 #include "gfx/rect.h"
31 #include "ipc/ipc_channel_handle.h"
32 #include "ipc/ipc_message.h"
33 #include "ipc/ipc_message_macros.h" 26 #include "ipc/ipc_message_macros.h"
34 #include "third_party/skia/include/core/SkBitmap.h"
35 #include "webkit/glue/dom_operations.h"
36 #include "webkit/glue/form_field.h"
37 #include "webkit/glue/webcursor.h"
38 27
39 #if defined(OS_POSIX) 28 #if defined(OS_POSIX)
40 #include "base/file_descriptor_posix.h" 29 #include "base/file_descriptor_posix.h"
41 #endif 30 #endif
42 31
43 #if defined(OS_MACOSX) 32 #if defined(OS_MACOSX)
44 #include "chrome/common/font_descriptor_mac.h" 33 #include "chrome/common/font_descriptor_mac.h"
45 #endif 34 #endif
46 35
47 // TODO(mpcomplete): rename ViewMsg and ViewHostMsg to something that makes 36 // TODO(mpcomplete): rename ViewMsg and ViewHostMsg to something that makes
48 // more sense with our current design. 37 // more sense with our current design.
49 38
50 // IPC_MESSAGE macros choke on extra , in the std::map, when expanding. We need 39 // IPC_MESSAGE macros choke on extra , in the std::map, when expanding. We need
51 // to typedef it to avoid that. 40 // to typedef it to avoid that.
52 // Substitution map for l10n messages. 41 // Substitution map for l10n messages.
53 typedef std::map<std::string, std::string> SubstitutionMap; 42 typedef std::map<std::string, std::string> SubstitutionMap;
54 43
44 class SkBitmap;
45 struct ThumbnailScore;
46 class WebCursor;
47
48 namespace IPC {
49 struct ChannelHandle;
50 class Message;
51 }
52
55 //----------------------------------------------------------------------------- 53 //-----------------------------------------------------------------------------
56 // RenderView messages 54 // RenderView messages
57 // These are messages sent from the browser to the renderer process. 55 // These are messages sent from the browser to the renderer process.
58 56
59 IPC_BEGIN_MESSAGES(View) 57 IPC_BEGIN_MESSAGES(View)
60 // Used typically when recovering from a crash. The new rendering process 58 // Used typically when recovering from a crash. The new rendering process
61 // sets its global "next page id" counter to the given value. 59 // sets its global "next page id" counter to the given value.
62 IPC_MESSAGE_CONTROL1(ViewMsg_SetNextPageID, 60 IPC_MESSAGE_CONTROL1(ViewMsg_SetNextPageID,
63 int32 /* next_page_id */) 61 int32 /* next_page_id */)
64 62
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 // by webkit, the specified edit commands shall be executed against current 181 // by webkit, the specified edit commands shall be executed against current
184 // focused frame. 182 // focused frame.
185 // Parameters 183 // Parameters
186 // * edit_commands (see chrome/common/edit_command_types.h) 184 // * edit_commands (see chrome/common/edit_command_types.h)
187 // Contains one or more edit commands. 185 // Contains one or more edit commands.
188 // See third_party/WebKit/WebCore/editing/EditorCommand.cpp for detailed 186 // See third_party/WebKit/WebCore/editing/EditorCommand.cpp for detailed
189 // definition of webkit edit commands. 187 // definition of webkit edit commands.
190 // 188 //
191 // This message must be sent just before sending a key event. 189 // This message must be sent just before sending a key event.
192 IPC_MESSAGE_ROUTED1(ViewMsg_SetEditCommandsForNextKeyEvent, 190 IPC_MESSAGE_ROUTED1(ViewMsg_SetEditCommandsForNextKeyEvent,
193 EditCommands /* edit_commands */) 191 std::vector<EditCommand> /* edit_commands */)
194 192
195 // Message payload is the name/value of a WebCore edit command to execute. 193 // Message payload is the name/value of a WebCore edit command to execute.
196 IPC_MESSAGE_ROUTED2(ViewMsg_ExecuteEditCommand, 194 IPC_MESSAGE_ROUTED2(ViewMsg_ExecuteEditCommand,
197 std::string, /* name */ 195 std::string, /* name */
198 std::string /* value */) 196 std::string /* value */)
199 197
200 IPC_MESSAGE_ROUTED0(ViewMsg_MouseCaptureLost) 198 IPC_MESSAGE_ROUTED0(ViewMsg_MouseCaptureLost)
201 199
202 // TODO(darin): figure out how this meshes with RestoreFocus 200 // TODO(darin): figure out how this meshes with RestoreFocus
203 IPC_MESSAGE_ROUTED1(ViewMsg_SetFocus, bool /* enable */) 201 IPC_MESSAGE_ROUTED1(ViewMsg_SetFocus, bool /* enable */)
(...skipping 2419 matching lines...) Expand 10 before | Expand all | Expand 10 after
2623 2621
2624 // A RenderView requests to start receiving device orientation updates. 2622 // A RenderView requests to start receiving device orientation updates.
2625 IPC_MESSAGE_CONTROL1(ViewHostMsg_DeviceOrientation_StartUpdating, 2623 IPC_MESSAGE_CONTROL1(ViewHostMsg_DeviceOrientation_StartUpdating,
2626 int /* render_view_id */) 2624 int /* render_view_id */)
2627 2625
2628 // A RenderView requests to stop receiving device orientation updates. 2626 // A RenderView requests to stop receiving device orientation updates.
2629 IPC_MESSAGE_CONTROL1(ViewHostMsg_DeviceOrientation_StopUpdating, 2627 IPC_MESSAGE_CONTROL1(ViewHostMsg_DeviceOrientation_StopUpdating,
2630 int /* render_view_id */) 2628 int /* render_view_id */)
2631 2629
2632 IPC_END_MESSAGES(ViewHost) 2630 IPC_END_MESSAGES(ViewHost)
OLDNEW
« no previous file with comments | « chrome/common/render_messages.cc ('k') | chrome/common/render_messages_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698