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

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

Issue 5526008: Simplify the magic required to create IPC message headers a bit. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years 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 | Annotate | Revision Log
« no previous file with comments | « chrome/common/render_messages.cc ('k') | chrome/common/service_messages.h » ('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
6 // header guard.
7 // See ipc_message_macros.h for explanation of the macros and passes.
8
9 #include <map> 5 #include <map>
10 #include <string> 6 #include <string>
11 #include <vector> 7 #include <vector>
12 8
13 #include "build/build_config.h" 9 #include "build/build_config.h"
14 10
15 #include "base/file_path.h" 11 #include "base/file_path.h"
16 #include "base/file_util_proxy.h" 12 #include "base/file_util_proxy.h"
17 #include "base/nullable_string16.h" 13 #include "base/nullable_string16.h"
18 #include "base/platform_file.h" 14 #include "base/platform_file.h"
19 #include "base/sync_socket.h" 15 #include "base/sync_socket.h"
20 #include "chrome/common/content_settings.h" 16 #include "chrome/common/content_settings.h"
21 #include "chrome/common/geoposition.h" 17 #include "chrome/common/geoposition.h"
22 #include "chrome/common/nacl_types.h" 18 #include "chrome/common/nacl_types.h"
23 #include "chrome/common/notification_type.h" 19 #include "chrome/common/notification_type.h"
24 #include "chrome/common/page_zoom.h" 20 #include "chrome/common/page_zoom.h"
25 #include "chrome/common/speech_input_result.h" 21 #include "chrome/common/speech_input_result.h"
26 #include "chrome/common/translate_errors.h" 22 #include "chrome/common/translate_errors.h"
27 #include "chrome/common/window_container_type.h" 23 #include "chrome/common/window_container_type.h"
28 #include "ipc/ipc_message_macros.h" 24 #include "ipc/ipc_message_macros.h"
29 #include "media/audio/audio_buffers_state.h" 25 #include "media/audio/audio_buffers_state.h"
30 #include "third_party/WebKit/WebKit/chromium/public/WebExceptionCode.h" 26 #include "third_party/WebKit/WebKit/chromium/public/WebExceptionCode.h"
27 #include "third_party/WebKit/WebKit/chromium/public/WebFindOptions.h"
28 #include "third_party/WebKit/WebKit/chromium/public/WebMediaPlayerAction.h"
29 #include "third_party/WebKit/WebKit/chromium/public/WebScreenInfo.h"
30 #include "webkit/glue/context_menu.h"
31 #include "webkit/glue/form_data.h"
32 #include "webkit/glue/password_form_dom_manager.h"
33 #include "webkit/glue/plugins/webplugininfo.h"
34 #include "webkit/glue/webdropdata.h"
31 35
32 #if defined(OS_POSIX) 36 #if defined(OS_POSIX)
33 #include "base/file_descriptor_posix.h" 37 #include "base/file_descriptor_posix.h"
34 #endif 38 #endif
35 39
36 #if defined(OS_MACOSX) 40 #if defined(OS_MACOSX)
37 #include "chrome/common/font_descriptor_mac.h" 41 #include "chrome/common/font_descriptor_mac.h"
38 #endif 42 #endif
39 43
40 // TODO(mpcomplete): rename ViewMsg and ViewHostMsg to something that makes 44 // TODO(mpcomplete): rename ViewMsg and ViewHostMsg to something that makes
(...skipping 21 matching lines...) Expand all
62 } 66 }
63 67
64 namespace webkit_blob { 68 namespace webkit_blob {
65 class BlobData; 69 class BlobData;
66 } 70 }
67 71
68 namespace file_util { 72 namespace file_util {
69 struct FileInfo; 73 struct FileInfo;
70 } 74 }
71 75
76 #define IPC_MESSAGE_START ViewMsgStart
77
72 //----------------------------------------------------------------------------- 78 //-----------------------------------------------------------------------------
73 // RenderView messages 79 // RenderView messages
74 // These are messages sent from the browser to the renderer process. 80 // These are messages sent from the browser to the renderer process.
75 81
76 IPC_BEGIN_MESSAGES(View) 82 // Used typically when recovering from a crash. The new rendering process
77 // Used typically when recovering from a crash. The new rendering process 83 // sets its global "next page id" counter to the given value.
78 // sets its global "next page id" counter to the given value. 84 IPC_MESSAGE_CONTROL1(ViewMsg_SetNextPageID,
79 IPC_MESSAGE_CONTROL1(ViewMsg_SetNextPageID, 85 int32 /* next_page_id */)
80 int32 /* next_page_id */) 86
81 87 // Sends System Colors corresponding to a set of CSS color keywords
82 // Sends System Colors corresponding to a set of CSS color keywords 88 // down the pipe.
83 // down the pipe. 89 // This message must be sent to the renderer immediately on launch
84 // This message must be sent to the renderer immediately on launch 90 // before creating any new views.
85 // before creating any new views. 91 // The message can also be sent during a renderer's lifetime if system colors
86 // The message can also be sent during a renderer's lifetime if system colors 92 // are updated.
87 // are updated. 93 // TODO(jeremy): Possibly change IPC format once we have this all hooked up.
88 // TODO(jeremy): Possibly change IPC format once we have this all hooked up. 94 IPC_MESSAGE_ROUTED1(ViewMsg_SetCSSColors,
89 IPC_MESSAGE_ROUTED1(ViewMsg_SetCSSColors, 95 std::vector<CSSColors::CSSColorMapping>)
90 std::vector<CSSColors::CSSColorMapping>) 96
91 97 // Tells the renderer to create a new view.
92 // Tells the renderer to create a new view. 98 // This message is slightly different, the view it takes (via
93 // This message is slightly different, the view it takes (via 99 // ViewMsg_New_Params) is the view to create, the message itself is sent as a
94 // ViewMsg_New_Params) is the view to create, the message itself is sent as a 100 // non-view control message.
95 // non-view control message. 101 IPC_MESSAGE_CONTROL1(ViewMsg_New,
96 IPC_MESSAGE_CONTROL1(ViewMsg_New, 102 ViewMsg_New_Params)
97 ViewMsg_New_Params) 103
98 104 // Tells the renderer to set its maximum cache size to the supplied value.
99 // Tells the renderer to set its maximum cache size to the supplied value. 105 IPC_MESSAGE_CONTROL3(ViewMsg_SetCacheCapacities,
100 IPC_MESSAGE_CONTROL3(ViewMsg_SetCacheCapacities, 106 size_t /* min_dead_capacity */,
101 size_t /* min_dead_capacity */, 107 size_t /* max_dead_capacity */,
102 size_t /* max_dead_capacity */, 108 size_t /* capacity */)
103 size_t /* capacity */) 109
104 110 // Tells the renderer to cleat the cache.
105 // Tells the renderer to cleat the cache. 111 IPC_MESSAGE_CONTROL0(ViewMsg_ClearCache)
106 IPC_MESSAGE_CONTROL0(ViewMsg_ClearCache) 112
107 113 // Reply in response to ViewHostMsg_ShowView or ViewHostMsg_ShowWidget.
108 // Reply in response to ViewHostMsg_ShowView or ViewHostMsg_ShowWidget. 114 // similar to the new command, but used when the renderer created a view
109 // similar to the new command, but used when the renderer created a view 115 // first, and we need to update it.
110 // first, and we need to update it. 116 IPC_MESSAGE_ROUTED1(ViewMsg_CreatingNew_ACK,
111 IPC_MESSAGE_ROUTED1(ViewMsg_CreatingNew_ACK, 117 gfx::NativeViewId /* parent_hwnd */)
112 gfx::NativeViewId /* parent_hwnd */) 118
113 119 // Sends updated preferences to the renderer.
114 // Sends updated preferences to the renderer. 120 IPC_MESSAGE_ROUTED1(ViewMsg_SetRendererPrefs,
115 IPC_MESSAGE_ROUTED1(ViewMsg_SetRendererPrefs, 121 RendererPreferences)
116 RendererPreferences) 122
117 123 // Tells the renderer to perform the given action on the media player
118 // Tells the renderer to perform the given action on the media player 124 // located at the given point.
119 // located at the given point. 125 IPC_MESSAGE_ROUTED2(ViewMsg_MediaPlayerActionAt,
120 IPC_MESSAGE_ROUTED2(ViewMsg_MediaPlayerActionAt, 126 gfx::Point, /* location */
121 gfx::Point, /* location */ 127 WebKit::WebMediaPlayerAction)
122 WebKit::WebMediaPlayerAction) 128
123 129 // Tells the render view to close.
124 // Tells the render view to close. 130 IPC_MESSAGE_ROUTED0(ViewMsg_Close)
125 IPC_MESSAGE_ROUTED0(ViewMsg_Close) 131
126 132 // Tells the render view to change its size. A ViewHostMsg_PaintRect message
127 // Tells the render view to change its size. A ViewHostMsg_PaintRect message 133 // is generated in response provided new_size is not empty and not equal to
128 // is generated in response provided new_size is not empty and not equal to 134 // the view's current size. The generated ViewHostMsg_PaintRect message will
129 // the view's current size. The generated ViewHostMsg_PaintRect message will 135 // have the IS_RESIZE_ACK flag set. It also receives the resizer rect so that
130 // have the IS_RESIZE_ACK flag set. It also receives the resizer rect so that 136 // we don't have to fetch it every time WebKit asks for it.
131 // we don't have to fetch it every time WebKit asks for it. 137 IPC_MESSAGE_ROUTED2(ViewMsg_Resize,
132 IPC_MESSAGE_ROUTED2(ViewMsg_Resize, 138 gfx::Size /* new_size */,
133 gfx::Size /* new_size */, 139 gfx::Rect /* resizer_rect */)
134 gfx::Rect /* resizer_rect */) 140
135 141 // Sent to inform the view that it was hidden. This allows it to reduce its
136 // Sent to inform the view that it was hidden. This allows it to reduce its 142 // resource utilization.
137 // resource utilization. 143 IPC_MESSAGE_ROUTED0(ViewMsg_WasHidden)
138 IPC_MESSAGE_ROUTED0(ViewMsg_WasHidden) 144
139 145 // Tells the render view that it is no longer hidden (see WasHidden), and the
140 // Tells the render view that it is no longer hidden (see WasHidden), and the 146 // render view is expected to respond with a full repaint if needs_repainting
141 // render view is expected to respond with a full repaint if needs_repainting 147 // is true. In that case, the generated ViewHostMsg_PaintRect message will
142 // is true. In that case, the generated ViewHostMsg_PaintRect message will 148 // have the IS_RESTORE_ACK flag set. If needs_repainting is false, then this
143 // have the IS_RESTORE_ACK flag set. If needs_repainting is false, then this 149 // message does not trigger a message in response.
144 // message does not trigger a message in response. 150 IPC_MESSAGE_ROUTED1(ViewMsg_WasRestored,
145 IPC_MESSAGE_ROUTED1(ViewMsg_WasRestored, 151 bool /* needs_repainting */)
146 bool /* needs_repainting */) 152
147 153 // Tells the render view to capture a thumbnail image of the page. The
148 // Tells the render view to capture a thumbnail image of the page. The 154 // render view responds with a ViewHostMsg_Thumbnail.
149 // render view responds with a ViewHostMsg_Thumbnail. 155 IPC_MESSAGE_ROUTED0(ViewMsg_CaptureThumbnail)
150 IPC_MESSAGE_ROUTED0(ViewMsg_CaptureThumbnail) 156
151 157 // Tells the render view to capture a thumbnail image of the page. The
152 // Tells the render view to capture a thumbnail image of the page. The 158 // render view responds with a ViewHostMsg_Snapshot.
153 // render view responds with a ViewHostMsg_Snapshot. 159 IPC_MESSAGE_ROUTED0(ViewMsg_CaptureSnapshot)
154 IPC_MESSAGE_ROUTED0(ViewMsg_CaptureSnapshot) 160
155 161 // Tells the render view to switch the CSS to print media type, renders every
156 // Tells the render view to switch the CSS to print media type, renders every 162 // requested pages and switch back the CSS to display media type.
157 // requested pages and switch back the CSS to display media type. 163 IPC_MESSAGE_ROUTED0(ViewMsg_PrintPages)
158 IPC_MESSAGE_ROUTED0(ViewMsg_PrintPages) 164
159 165 // Tells the render view that printing is done so it can clean up.
160 // Tells the render view that printing is done so it can clean up. 166 IPC_MESSAGE_ROUTED2(ViewMsg_PrintingDone,
161 IPC_MESSAGE_ROUTED2(ViewMsg_PrintingDone, 167 int /* document_cookie */,
162 int /* document_cookie */, 168 bool /* success */)
163 bool /* success */) 169
164 170 // Tells the render view to switch the CSS to print media type, renders every
165 // Tells the render view to switch the CSS to print media type, renders every 171 // requested pages for print preview.
166 // requested pages for print preview. 172 IPC_MESSAGE_ROUTED0(ViewMsg_PrintPreview)
167 IPC_MESSAGE_ROUTED0(ViewMsg_PrintPreview) 173
168 174 // Sends back to the browser the rendered "printed page" for preview that was
169 // Sends back to the browser the rendered "printed page" for preview that was 175 // requested by a ViewMsg_PrintPage message or from scripted printing. The
170 // requested by a ViewMsg_PrintPage message or from scripted printing. The 176 // memory handle in this message is already valid in the browser process.
171 // memory handle in this message is already valid in the browser process. 177 IPC_MESSAGE_ROUTED2(ViewHostMsg_PagesReadyForPreview,
172 IPC_MESSAGE_ROUTED2(ViewHostMsg_PagesReadyForPreview, 178 int /* document cookie */,
173 int /* document cookie */, 179 int /* fd in browser */)
174 int /* fd in browser */) 180
175 181 // Tells the renderer to dump as much memory as it can, perhaps because we
176 // Tells the renderer to dump as much memory as it can, perhaps because we 182 // have memory pressure or the renderer is (or will be) paged out. This
177 // have memory pressure or the renderer is (or will be) paged out. This 183 // should only result in purging objects we can recalculate, e.g. caches or
178 // should only result in purging objects we can recalculate, e.g. caches or 184 // JS garbage, not in purging irreplaceable objects.
179 // JS garbage, not in purging irreplaceable objects. 185 IPC_MESSAGE_CONTROL0(ViewMsg_PurgeMemory)
180 IPC_MESSAGE_CONTROL0(ViewMsg_PurgeMemory) 186
181 187 // Sent to render the view into the supplied transport DIB, resize
182 // Sent to render the view into the supplied transport DIB, resize 188 // the web widget to match the |page_size|, scale it by the
183 // the web widget to match the |page_size|, scale it by the 189 // appropriate scale to make it fit the |desired_size|, and return
184 // appropriate scale to make it fit the |desired_size|, and return 190 // it. In response to this message, the host generates a
185 // it. In response to this message, the host generates a 191 // ViewHostMsg_PaintAtSize_ACK message. Note that the DIB *must* be
186 // ViewHostMsg_PaintAtSize_ACK message. Note that the DIB *must* be 192 // the right size to receive an RGBA image at the |desired_size|.
187 // the right size to receive an RGBA image at the |desired_size|. 193 // |tag| is sent along with ViewHostMsg_PaintAtSize_ACK unmodified to
188 // |tag| is sent along with ViewHostMsg_PaintAtSize_ACK unmodified to 194 // identify the PaintAtSize message the ACK belongs to.
189 // identify the PaintAtSize message the ACK belongs to. 195 IPC_MESSAGE_ROUTED4(ViewMsg_PaintAtSize,
190 IPC_MESSAGE_ROUTED4(ViewMsg_PaintAtSize, 196 TransportDIB::Handle /* dib_handle */,
191 TransportDIB::Handle /* dib_handle */, 197 int /* tag */,
192 int /* tag */, 198 gfx::Size /* page_size */,
193 gfx::Size /* page_size */, 199 gfx::Size /* desired_size */)
194 gfx::Size /* desired_size */) 200
195 201 // Tells the render view that a ViewHostMsg_UpdateRect message was processed.
196 // Tells the render view that a ViewHostMsg_UpdateRect message was processed. 202 // This signals the render view that it can send another UpdateRect message.
197 // This signals the render view that it can send another UpdateRect message. 203 IPC_MESSAGE_ROUTED0(ViewMsg_UpdateRect_ACK)
198 IPC_MESSAGE_ROUTED0(ViewMsg_UpdateRect_ACK) 204
199 205 // Message payload includes:
200 // Message payload includes: 206 // 1. A blob that should be cast to WebInputEvent
201 // 1. A blob that should be cast to WebInputEvent 207 // 2. An optional boolean value indicating if a RawKeyDown event is associated
202 // 2. An optional boolean value indicating if a RawKeyDown event is associated 208 // to a keyboard shortcut of the browser.
203 // to a keyboard shortcut of the browser. 209 IPC_MESSAGE_ROUTED0(ViewMsg_HandleInputEvent)
204 IPC_MESSAGE_ROUTED0(ViewMsg_HandleInputEvent) 210
205 211 // This message notifies the renderer that the next key event is bound to one
206 // This message notifies the renderer that the next key event is bound to one 212 // or more pre-defined edit commands. If the next key event is not handled
207 // or more pre-defined edit commands. If the next key event is not handled 213 // by webkit, the specified edit commands shall be executed against current
208 // by webkit, the specified edit commands shall be executed against current 214 // focused frame.
209 // focused frame. 215 // Parameters
210 // Parameters 216 // * edit_commands (see chrome/common/edit_command_types.h)
211 // * edit_commands (see chrome/common/edit_command_types.h) 217 // Contains one or more edit commands.
212 // Contains one or more edit commands. 218 // See third_party/WebKit/WebCore/editing/EditorCommand.cpp for detailed
213 // See third_party/WebKit/WebCore/editing/EditorCommand.cpp for detailed 219 // definition of webkit edit commands.
214 // definition of webkit edit commands. 220 //
215 // 221 // This message must be sent just before sending a key event.
216 // This message must be sent just before sending a key event. 222 IPC_MESSAGE_ROUTED1(ViewMsg_SetEditCommandsForNextKeyEvent,
217 IPC_MESSAGE_ROUTED1(ViewMsg_SetEditCommandsForNextKeyEvent, 223 std::vector<EditCommand> /* edit_commands */)
218 std::vector<EditCommand> /* edit_commands */) 224
219 225 // Message payload is the name/value of a WebCore edit command to execute.
220 // Message payload is the name/value of a WebCore edit command to execute. 226 IPC_MESSAGE_ROUTED2(ViewMsg_ExecuteEditCommand,
221 IPC_MESSAGE_ROUTED2(ViewMsg_ExecuteEditCommand, 227 std::string, /* name */
222 std::string, /* name */ 228 std::string /* value */)
223 std::string /* value */) 229
224 230 IPC_MESSAGE_ROUTED0(ViewMsg_MouseCaptureLost)
225 IPC_MESSAGE_ROUTED0(ViewMsg_MouseCaptureLost) 231
226 232 // TODO(darin): figure out how this meshes with RestoreFocus
227 // TODO(darin): figure out how this meshes with RestoreFocus 233 IPC_MESSAGE_ROUTED1(ViewMsg_SetFocus, bool /* enable */)
228 IPC_MESSAGE_ROUTED1(ViewMsg_SetFocus, bool /* enable */) 234
229 235 // Tells the renderer to focus the first (last if reverse is true) focusable
230 // Tells the renderer to focus the first (last if reverse is true) focusable 236 // node.
231 // node. 237 IPC_MESSAGE_ROUTED1(ViewMsg_SetInitialFocus, bool /* reverse */)
232 IPC_MESSAGE_ROUTED1(ViewMsg_SetInitialFocus, bool /* reverse */) 238
233 239 // Tells the renderer to scroll the currently focused node into view only if
234 // Tells the renderer to scroll the currently focused node into view only if 240 // the currently focused node is a Text node (textfield, text area or content
235 // the currently focused node is a Text node (textfield, text area or content 241 // editable divs).
236 // editable divs). 242 IPC_MESSAGE_ROUTED0(ViewMsg_ScrollFocusedEditableNodeIntoView)
237 IPC_MESSAGE_ROUTED0(ViewMsg_ScrollFocusedEditableNodeIntoView) 243
238 244 // Tells the renderer to perform the specified navigation, interrupting any
239 // Tells the renderer to perform the specified navigation, interrupting any 245 // existing navigation.
240 // existing navigation. 246 IPC_MESSAGE_ROUTED1(ViewMsg_Navigate, ViewMsg_Navigate_Params)
241 IPC_MESSAGE_ROUTED1(ViewMsg_Navigate, ViewMsg_Navigate_Params) 247
242 248 IPC_MESSAGE_ROUTED0(ViewMsg_Stop)
243 IPC_MESSAGE_ROUTED0(ViewMsg_Stop) 249
244 250 // Tells the renderer to reload the current focused frame
245 // Tells the renderer to reload the current focused frame 251 IPC_MESSAGE_ROUTED0(ViewMsg_ReloadFrame)
246 IPC_MESSAGE_ROUTED0(ViewMsg_ReloadFrame) 252
247 253 // This message notifies the renderer that the user has closed the FindInPage
248 // This message notifies the renderer that the user has closed the FindInPage 254 // window (and what action to take regarding the selection).
249 // window (and what action to take regarding the selection). 255 IPC_MESSAGE_ROUTED1(ViewMsg_StopFinding,
250 IPC_MESSAGE_ROUTED1(ViewMsg_StopFinding, 256 ViewMsg_StopFinding_Params /* action */)
251 ViewMsg_StopFinding_Params /* action */) 257
252 258 // These messages are typically generated from context menus and request the
253 // These messages are typically generated from context menus and request the 259 // renderer to apply the specified operation to the current selection.
254 // renderer to apply the specified operation to the current selection. 260 IPC_MESSAGE_ROUTED0(ViewMsg_Undo)
255 IPC_MESSAGE_ROUTED0(ViewMsg_Undo) 261 IPC_MESSAGE_ROUTED0(ViewMsg_Redo)
256 IPC_MESSAGE_ROUTED0(ViewMsg_Redo) 262 IPC_MESSAGE_ROUTED0(ViewMsg_Cut)
257 IPC_MESSAGE_ROUTED0(ViewMsg_Cut) 263 IPC_MESSAGE_ROUTED0(ViewMsg_Copy)
258 IPC_MESSAGE_ROUTED0(ViewMsg_Copy)
259 #if defined(OS_MACOSX) 264 #if defined(OS_MACOSX)
260 IPC_MESSAGE_ROUTED0(ViewMsg_CopyToFindPboard) 265 IPC_MESSAGE_ROUTED0(ViewMsg_CopyToFindPboard)
261 #endif 266 #endif
262 IPC_MESSAGE_ROUTED0(ViewMsg_Paste) 267 IPC_MESSAGE_ROUTED0(ViewMsg_Paste)
263 // Replaces the selected region or a word around the cursor with the 268 // Replaces the selected region or a word around the cursor with the
264 // specified string. 269 // specified string.
265 IPC_MESSAGE_ROUTED1(ViewMsg_Replace, string16) 270 IPC_MESSAGE_ROUTED1(ViewMsg_Replace, string16)
266 IPC_MESSAGE_ROUTED0(ViewMsg_ToggleSpellCheck) 271 IPC_MESSAGE_ROUTED0(ViewMsg_ToggleSpellCheck)
267 IPC_MESSAGE_ROUTED0(ViewMsg_Delete) 272 IPC_MESSAGE_ROUTED0(ViewMsg_Delete)
268 IPC_MESSAGE_ROUTED0(ViewMsg_SelectAll) 273 IPC_MESSAGE_ROUTED0(ViewMsg_SelectAll)
269 IPC_MESSAGE_ROUTED1(ViewMsg_ToggleSpellPanel, bool) 274 IPC_MESSAGE_ROUTED1(ViewMsg_ToggleSpellPanel, bool)
270 275
271 // This message tells the renderer to advance to the next misspelling. It is 276 // This message tells the renderer to advance to the next misspelling. It is
272 // sent when the user clicks the "Find Next" button on the spelling panel. 277 // sent when the user clicks the "Find Next" button on the spelling panel.
273 IPC_MESSAGE_ROUTED0(ViewMsg_AdvanceToNextMisspelling) 278 IPC_MESSAGE_ROUTED0(ViewMsg_AdvanceToNextMisspelling)
274 279
275 // Copies the image at location x, y to the clipboard (if there indeed is an 280 // Copies the image at location x, y to the clipboard (if there indeed is an
276 // image at that location). 281 // image at that location).
277 IPC_MESSAGE_ROUTED2(ViewMsg_CopyImageAt, 282 IPC_MESSAGE_ROUTED2(ViewMsg_CopyImageAt,
278 int /* x */, 283 int /* x */,
279 int /* y */) 284 int /* y */)
280 285
281 // History system notification that the visited link database has been 286 // History system notification that the visited link database has been
282 // replaced. It has one SharedMemoryHandle argument consisting of the table 287 // replaced. It has one SharedMemoryHandle argument consisting of the table
283 // handle. This handle is valid in the context of the renderer 288 // handle. This handle is valid in the context of the renderer
284 IPC_MESSAGE_CONTROL1(ViewMsg_VisitedLink_NewTable, base::SharedMemoryHandle) 289 IPC_MESSAGE_CONTROL1(ViewMsg_VisitedLink_NewTable, base::SharedMemoryHandle)
285 290
286 // History system notification that a link has been added and the link 291 // History system notification that a link has been added and the link
287 // coloring state for the given hash must be re-calculated. 292 // coloring state for the given hash must be re-calculated.
288 IPC_MESSAGE_CONTROL1(ViewMsg_VisitedLink_Add, std::vector<uint64>) 293 IPC_MESSAGE_CONTROL1(ViewMsg_VisitedLink_Add, std::vector<uint64>)
289 294
290 // History system notification that one or more history items have been 295 // History system notification that one or more history items have been
291 // deleted, which at this point means that all link coloring state must be 296 // deleted, which at this point means that all link coloring state must be
292 // re-calculated. 297 // re-calculated.
293 IPC_MESSAGE_CONTROL0(ViewMsg_VisitedLink_Reset) 298 IPC_MESSAGE_CONTROL0(ViewMsg_VisitedLink_Reset)
294 299
295 // Notification that the user scripts have been updated. It has one 300 // Notification that the user scripts have been updated. It has one
296 // SharedMemoryHandle argument consisting of the pickled script data. This 301 // SharedMemoryHandle argument consisting of the pickled script data. This
297 // handle is valid in the context of the renderer. 302 // handle is valid in the context of the renderer.
298 IPC_MESSAGE_CONTROL1(ViewMsg_UserScripts_UpdatedScripts, 303 IPC_MESSAGE_CONTROL1(ViewMsg_UserScripts_UpdatedScripts,
299 base::SharedMemoryHandle) 304 base::SharedMemoryHandle)
300 305
301 // Sent when the user wants to search for a word on the page (find in page). 306 // Sent when the user wants to search for a word on the page (find in page).
302 IPC_MESSAGE_ROUTED3(ViewMsg_Find, 307 IPC_MESSAGE_ROUTED3(ViewMsg_Find,
303 int /* request_id */, 308 int /* request_id */,
304 string16 /* search_text */, 309 string16 /* search_text */,
305 WebKit::WebFindOptions) 310 WebKit::WebFindOptions)
306 311
307 // Send from the renderer to the browser to return the script running result. 312 // Send from the renderer to the browser to return the script running result.
308 IPC_MESSAGE_ROUTED2(ViewMsg_ExecuteCodeFinished, 313 IPC_MESSAGE_ROUTED2(ViewMsg_ExecuteCodeFinished,
309 int, /* request id */ 314 int, /* request id */
310 bool /* whether the script ran successfully */) 315 bool /* whether the script ran successfully */)
311 316
312 // Sent when the headers are available for a resource request. 317 // Sent when the headers are available for a resource request.
313 IPC_MESSAGE_ROUTED2(ViewMsg_Resource_ReceivedResponse, 318 IPC_MESSAGE_ROUTED2(ViewMsg_Resource_ReceivedResponse,
314 int /* request_id */, 319 int /* request_id */,
315 ResourceResponseHead) 320 ResourceResponseHead)
316 321
317 // Sent when cached metadata from a resource request is ready. 322 // Sent when cached metadata from a resource request is ready.
318 IPC_MESSAGE_ROUTED2(ViewMsg_Resource_ReceivedCachedMetadata, 323 IPC_MESSAGE_ROUTED2(ViewMsg_Resource_ReceivedCachedMetadata,
319 int /* request_id */, 324 int /* request_id */,
320 std::vector<char> /* data */) 325 std::vector<char> /* data */)
321 326
322 // Sent as upload progress is being made. 327 // Sent as upload progress is being made.
323 IPC_MESSAGE_ROUTED3(ViewMsg_Resource_UploadProgress, 328 IPC_MESSAGE_ROUTED3(ViewMsg_Resource_UploadProgress,
324 int /* request_id */, 329 int /* request_id */,
325 int64 /* position */, 330 int64 /* position */,
326 int64 /* size */) 331 int64 /* size */)
327 332
328 // Sent when the request has been redirected. The receiver is expected to 333 // Sent when the request has been redirected. The receiver is expected to
329 // respond with either a FollowRedirect message (if the redirect is to be 334 // respond with either a FollowRedirect message (if the redirect is to be
330 // followed) or a CancelRequest message (if it should not be followed). 335 // followed) or a CancelRequest message (if it should not be followed).
331 IPC_MESSAGE_ROUTED3(ViewMsg_Resource_ReceivedRedirect, 336 IPC_MESSAGE_ROUTED3(ViewMsg_Resource_ReceivedRedirect,
332 int /* request_id */, 337 int /* request_id */,
333 GURL /* new_url */, 338 GURL /* new_url */,
334 ResourceResponseHead) 339 ResourceResponseHead)
335 340
336 // Sent when some data from a resource request is ready. The handle should 341 // Sent when some data from a resource request is ready. The handle should
337 // already be mapped into the process that receives this message. 342 // already be mapped into the process that receives this message.
338 IPC_MESSAGE_ROUTED3(ViewMsg_Resource_DataReceived, 343 IPC_MESSAGE_ROUTED3(ViewMsg_Resource_DataReceived,
339 int /* request_id */, 344 int /* request_id */,
340 base::SharedMemoryHandle /* data */, 345 base::SharedMemoryHandle /* data */,
341 int /* data_len */) 346 int /* data_len */)
342 347
343 // Sent when some data from a resource request has been downloaded to 348 // Sent when some data from a resource request has been downloaded to
344 // file. This is only called in the 'download_to_file' case and replaces 349 // file. This is only called in the 'download_to_file' case and replaces
345 // ViewMsg_Resource_DataReceived in the call sequence in that case. 350 // ViewMsg_Resource_DataReceived in the call sequence in that case.
346 IPC_MESSAGE_ROUTED2(ViewMsg_Resource_DataDownloaded, 351 IPC_MESSAGE_ROUTED2(ViewMsg_Resource_DataDownloaded,
347 int /* request_id */, 352 int /* request_id */,
348 int /* data_len */) 353 int /* data_len */)
349 354
350 // Sent when the request has been completed. 355 // Sent when the request has been completed.
351 IPC_MESSAGE_ROUTED4(ViewMsg_Resource_RequestComplete, 356 IPC_MESSAGE_ROUTED4(ViewMsg_Resource_RequestComplete,
352 int /* request_id */, 357 int /* request_id */,
353 URLRequestStatus /* status */, 358 URLRequestStatus /* status */,
354 std::string /* security info */, 359 std::string /* security info */,
355 base::Time /* completion_time */) 360 base::Time /* completion_time */)
356 361
357 // Sent when user prompting is required before a ViewHostMsg_GetCookies 362 // Sent when user prompting is required before a ViewHostMsg_GetCookies
358 // message can complete. This message indicates that the renderer should 363 // message can complete. This message indicates that the renderer should
359 // pump messages while waiting for cookies. 364 // pump messages while waiting for cookies.
360 IPC_MESSAGE_CONTROL0(ViewMsg_SignalCookiePromptEvent) 365 IPC_MESSAGE_CONTROL0(ViewMsg_SignalCookiePromptEvent)
361 366
362 // Request for the renderer to evaluate an xpath to a frame and execute a 367 // Request for the renderer to evaluate an xpath to a frame and execute a
363 // javascript: url in that frame's context. The message is completely 368 // javascript: url in that frame's context. The message is completely
364 // asynchronous and no corresponding response message is sent back. 369 // asynchronous and no corresponding response message is sent back.
365 // 370 //
366 // frame_xpath contains the modified xpath notation to identify an inner 371 // frame_xpath contains the modified xpath notation to identify an inner
367 // subframe (starting from the root frame). It is a concatenation of 372 // subframe (starting from the root frame). It is a concatenation of
368 // number of smaller xpaths delimited by '\n'. Each chunk in the string can 373 // number of smaller xpaths delimited by '\n'. Each chunk in the string can
369 // be evaluated to a frame in its parent-frame's context. 374 // be evaluated to a frame in its parent-frame's context.
370 // 375 //
371 // Example: /html/body/iframe/\n/html/body/div/iframe/\n/frameset/frame[0] 376 // Example: /html/body/iframe/\n/html/body/div/iframe/\n/frameset/frame[0]
372 // can be broken into 3 xpaths 377 // can be broken into 3 xpaths
373 // /html/body/iframe evaluates to an iframe within the root frame 378 // /html/body/iframe evaluates to an iframe within the root frame
374 // /html/body/div/iframe evaluates to an iframe within the level-1 iframe 379 // /html/body/div/iframe evaluates to an iframe within the level-1 iframe
375 // /frameset/frame[0] evaluates to first frame within the level-2 iframe 380 // /frameset/frame[0] evaluates to first frame within the level-2 iframe
376 // 381 //
377 // jscript_url is the string containing the javascript: url to be executed 382 // jscript_url is the string containing the javascript: url to be executed
378 // in the target frame's context. The string should start with "javascript:" 383 // in the target frame's context. The string should start with "javascript:"
379 // and continue with a valid JS text. 384 // and continue with a valid JS text.
380 // 385 //
381 // If the fourth parameter is true the result is sent back to the renderer 386 // If the fourth parameter is true the result is sent back to the renderer
382 // using the message ViewHostMsg_ScriptEvalResponse. 387 // using the message ViewHostMsg_ScriptEvalResponse.
383 // ViewHostMsg_ScriptEvalResponse is passed the ID parameter so that the 388 // ViewHostMsg_ScriptEvalResponse is passed the ID parameter so that the
384 // client can uniquely identify the request. 389 // client can uniquely identify the request.
385 IPC_MESSAGE_ROUTED4(ViewMsg_ScriptEvalRequest, 390 IPC_MESSAGE_ROUTED4(ViewMsg_ScriptEvalRequest,
386 string16, /* frame_xpath */ 391 string16, /* frame_xpath */
387 string16, /* jscript_url */ 392 string16, /* jscript_url */
388 int, /* ID */ 393 int, /* ID */
389 bool /* If true, result is sent back. */) 394 bool /* If true, result is sent back. */)
390 395
391 // Request for the renderer to evaluate an xpath to a frame and insert css 396 // Request for the renderer to evaluate an xpath to a frame and insert css
392 // into that frame's document. See ViewMsg_ScriptEvalRequest for details on 397 // into that frame's document. See ViewMsg_ScriptEvalRequest for details on
393 // allowed xpath expressions. 398 // allowed xpath expressions.
394 IPC_MESSAGE_ROUTED3(ViewMsg_CSSInsertRequest, 399 IPC_MESSAGE_ROUTED3(ViewMsg_CSSInsertRequest,
395 std::wstring, /* frame_xpath */ 400 std::wstring, /* frame_xpath */
396 std::string, /* css string */ 401 std::string, /* css string */
397 std::string /* element id */) 402 std::string /* element id */)
398 403
399 // Log a message to the console of the target frame 404 // Log a message to the console of the target frame
400 IPC_MESSAGE_ROUTED3(ViewMsg_AddMessageToConsole, 405 IPC_MESSAGE_ROUTED3(ViewMsg_AddMessageToConsole,
401 string16 /* frame_xpath */, 406 string16 /* frame_xpath */,
402 string16 /* message */, 407 string16 /* message */,
403 WebKit::WebConsoleMessage::Level /* message_level */) 408 WebKit::WebConsoleMessage::Level /* message_level */)
404 409
405 // RenderViewHostDelegate::RenderViewCreated method sends this message to a 410 // RenderViewHostDelegate::RenderViewCreated method sends this message to a
406 // new renderer to notify it that it will host developer tools UI and should 411 // new renderer to notify it that it will host developer tools UI and should
407 // set up all neccessary bindings and create DevToolsClient instance that 412 // set up all neccessary bindings and create DevToolsClient instance that
408 // will handle communication with inspected page DevToolsAgent. 413 // will handle communication with inspected page DevToolsAgent.
409 IPC_MESSAGE_ROUTED0(ViewMsg_SetupDevToolsClient) 414 IPC_MESSAGE_ROUTED0(ViewMsg_SetupDevToolsClient)
410 415
411 // Change the zoom level for the current main frame. If the level actually 416 // Change the zoom level for the current main frame. If the level actually
412 // changes, a ViewHostMsg_DidZoomURL message will be sent back to the browser 417 // changes, a ViewHostMsg_DidZoomURL message will be sent back to the browser
413 // telling it what url got zoomed and what its current zoom level is. 418 // telling it what url got zoomed and what its current zoom level is.
414 IPC_MESSAGE_ROUTED1(ViewMsg_Zoom, 419 IPC_MESSAGE_ROUTED1(ViewMsg_Zoom,
415 PageZoom::Function /* function */) 420 PageZoom::Function /* function */)
416 421
417 // Set the zoom level for the current main frame. If the level actually 422 // Set the zoom level for the current main frame. If the level actually
418 // changes, a ViewHostMsg_DidZoomURL message will be sent back to the browser 423 // changes, a ViewHostMsg_DidZoomURL message will be sent back to the browser
419 // telling it what url got zoomed and what its current zoom level is. 424 // telling it what url got zoomed and what its current zoom level is.
420 IPC_MESSAGE_ROUTED1(ViewMsg_SetZoomLevel, 425 IPC_MESSAGE_ROUTED1(ViewMsg_SetZoomLevel,
421 double /* zoom_level */) 426 double /* zoom_level */)
422 427
423 // Set the zoom level for a particular url that the renderer is in the 428 // Set the zoom level for a particular url that the renderer is in the
424 // process of loading. This will be stored, to be used if the load commits 429 // process of loading. This will be stored, to be used if the load commits
425 // and ignored otherwise. 430 // and ignored otherwise.
426 IPC_MESSAGE_ROUTED2(ViewMsg_SetZoomLevelForLoadingURL, 431 IPC_MESSAGE_ROUTED2(ViewMsg_SetZoomLevelForLoadingURL,
427 GURL /* url */, 432 GURL /* url */,
428 double /* zoom_level */) 433 double /* zoom_level */)
429 434
430 // Set the zoom level for a particular url, so all render views 435 // Set the zoom level for a particular url, so all render views
431 // displaying this url can update their zoom levels to match. 436 // displaying this url can update their zoom levels to match.
432 IPC_MESSAGE_CONTROL2(ViewMsg_SetZoomLevelForCurrentURL, 437 IPC_MESSAGE_CONTROL2(ViewMsg_SetZoomLevelForCurrentURL,
433 GURL /* url */, 438 GURL /* url */,
434 double /* zoom_level */) 439 double /* zoom_level */)
435 440
436 // Set the content settings for a particular url that the renderer is in the 441 // Set the content settings for a particular url that the renderer is in the
437 // process of loading. This will be stored, to be used if the load commits 442 // process of loading. This will be stored, to be used if the load commits
438 // and ignored otherwise. 443 // and ignored otherwise.
439 IPC_MESSAGE_ROUTED2(ViewMsg_SetContentSettingsForLoadingURL, 444 IPC_MESSAGE_ROUTED2(ViewMsg_SetContentSettingsForLoadingURL,
440 GURL /* url */, 445 GURL /* url */,
441 ContentSettings /* content_settings */) 446 ContentSettings /* content_settings */)
442 447
443 // Set the content settings for a particular url, so all render views 448 // Set the content settings for a particular url, so all render views
444 // displaying this host url update their content settings to match. 449 // displaying this host url update their content settings to match.
445 IPC_MESSAGE_CONTROL2(ViewMsg_SetContentSettingsForCurrentURL, 450 IPC_MESSAGE_CONTROL2(ViewMsg_SetContentSettingsForCurrentURL,
446 GURL /* url */, 451 GURL /* url */,
447 ContentSettings /* content_settings */) 452 ContentSettings /* content_settings */)
448 453
449 // Change encoding of page in the renderer. 454 // Change encoding of page in the renderer.
450 IPC_MESSAGE_ROUTED1(ViewMsg_SetPageEncoding, 455 IPC_MESSAGE_ROUTED1(ViewMsg_SetPageEncoding,
451 std::string /*new encoding name*/) 456 std::string /*new encoding name*/)
452 457
453 // Reset encoding of page in the renderer back to default. 458 // Reset encoding of page in the renderer back to default.
454 IPC_MESSAGE_ROUTED0(ViewMsg_ResetPageEncodingToDefault) 459 IPC_MESSAGE_ROUTED0(ViewMsg_ResetPageEncodingToDefault)
455 460
456 // Requests the renderer to reserve a range of page ids. 461 // Requests the renderer to reserve a range of page ids.
457 IPC_MESSAGE_ROUTED1(ViewMsg_ReservePageIDRange, 462 IPC_MESSAGE_ROUTED1(ViewMsg_ReservePageIDRange,
458 int /* size_of_range */) 463 int /* size_of_range */)
459 464
460 // Fill a form with data and optionally submit it 465 // Fill a form with data and optionally submit it
461 IPC_MESSAGE_ROUTED1(ViewMsg_FormFill, 466 IPC_MESSAGE_ROUTED1(ViewMsg_FormFill,
462 webkit_glue::FormData /* form */) 467 webkit_glue::FormData /* form */)
463 468
464 // Fill a password form and prepare field autocomplete for multiple 469 // Fill a password form and prepare field autocomplete for multiple
465 // matching logins. 470 // matching logins.
466 IPC_MESSAGE_ROUTED1(ViewMsg_FillPasswordForm, 471 IPC_MESSAGE_ROUTED1(ViewMsg_FillPasswordForm,
467 webkit_glue::PasswordFormFillData) 472 webkit_glue::PasswordFormFillData)
468 473
469 // D&d drop target messages. 474 // D&d drop target messages.
470 IPC_MESSAGE_ROUTED4(ViewMsg_DragTargetDragEnter, 475 IPC_MESSAGE_ROUTED4(ViewMsg_DragTargetDragEnter,
471 WebDropData /* drop_data */, 476 WebDropData /* drop_data */,
472 gfx::Point /* client_pt */, 477 gfx::Point /* client_pt */,
473 gfx::Point /* screen_pt */, 478 gfx::Point /* screen_pt */,
474 WebKit::WebDragOperationsMask /* ops_allowed */) 479 WebKit::WebDragOperationsMask /* ops_allowed */)
475 IPC_MESSAGE_ROUTED3(ViewMsg_DragTargetDragOver, 480 IPC_MESSAGE_ROUTED3(ViewMsg_DragTargetDragOver,
476 gfx::Point /* client_pt */, 481 gfx::Point /* client_pt */,
477 gfx::Point /* screen_pt */, 482 gfx::Point /* screen_pt */,
478 WebKit::WebDragOperationsMask /* ops_allowed */) 483 WebKit::WebDragOperationsMask /* ops_allowed */)
479 IPC_MESSAGE_ROUTED0(ViewMsg_DragTargetDragLeave) 484 IPC_MESSAGE_ROUTED0(ViewMsg_DragTargetDragLeave)
480 IPC_MESSAGE_ROUTED2(ViewMsg_DragTargetDrop, 485 IPC_MESSAGE_ROUTED2(ViewMsg_DragTargetDrop,
481 gfx::Point /* client_pt */, 486 gfx::Point /* client_pt */,
482 gfx::Point /* screen_pt */) 487 gfx::Point /* screen_pt */)
483 488
484 // Notifies the renderer of updates in mouse position of an in-progress 489 // Notifies the renderer of updates in mouse position of an in-progress
485 // drag. if |ended| is true, then the user has ended the drag operation. 490 // drag. if |ended| is true, then the user has ended the drag operation.
486 IPC_MESSAGE_ROUTED4(ViewMsg_DragSourceEndedOrMoved, 491 IPC_MESSAGE_ROUTED4(ViewMsg_DragSourceEndedOrMoved,
487 gfx::Point /* client_pt */, 492 gfx::Point /* client_pt */,
488 gfx::Point /* screen_pt */, 493 gfx::Point /* screen_pt */,
489 bool /* ended */, 494 bool /* ended */,
490 WebKit::WebDragOperation /* drag_operation */) 495 WebKit::WebDragOperation /* drag_operation */)
491 496
492 // Notifies the renderer that the system DoDragDrop call has ended. 497 // Notifies the renderer that the system DoDragDrop call has ended.
493 IPC_MESSAGE_ROUTED0(ViewMsg_DragSourceSystemDragEnded) 498 IPC_MESSAGE_ROUTED0(ViewMsg_DragSourceSystemDragEnded)
494 499
495 // Used to tell a render view whether it should expose various bindings 500 // Used to tell a render view whether it should expose various bindings
496 // that allow JS content extended privileges. See BindingsPolicy for valid 501 // that allow JS content extended privileges. See BindingsPolicy for valid
497 // flag values. 502 // flag values.
498 IPC_MESSAGE_ROUTED1(ViewMsg_AllowBindings, 503 IPC_MESSAGE_ROUTED1(ViewMsg_AllowBindings,
499 int /* enabled_bindings_flags */) 504 int /* enabled_bindings_flags */)
500 505
501 // Tell the renderer to add a property to the DOMUI binding object. This 506 // Tell the renderer to add a property to the DOMUI binding object. This
502 // only works if we allowed DOMUI bindings. 507 // only works if we allowed DOMUI bindings.
503 IPC_MESSAGE_ROUTED2(ViewMsg_SetDOMUIProperty, 508 IPC_MESSAGE_ROUTED2(ViewMsg_SetDOMUIProperty,
504 std::string /* property_name */, 509 std::string /* property_name */,
505 std::string /* property_value_json */) 510 std::string /* property_value_json */)
506 511
507 // This message starts/stop monitoring the input method status of the focused 512 // This message starts/stop monitoring the input method status of the focused
508 // edit control of a renderer process. 513 // edit control of a renderer process.
509 // Parameters 514 // Parameters
510 // * is_active (bool) 515 // * is_active (bool)
511 // Indicates if an input method is active in the browser process. 516 // Indicates if an input method is active in the browser process.
512 // The possible actions when a renderer process receives this message are 517 // The possible actions when a renderer process receives this message are
513 // listed below: 518 // listed below:
514 // Value Action 519 // Value Action
515 // true Start sending IPC message ViewHostMsg_ImeUpdateTextInputState 520 // true Start sending IPC message ViewHostMsg_ImeUpdateTextInputState
516 // to notify the input method status of the focused edit control. 521 // to notify the input method status of the focused edit control.
517 // false Stop sending IPC message ViewHostMsg_ImeUpdateTextInputState. 522 // false Stop sending IPC message ViewHostMsg_ImeUpdateTextInputState.
518 IPC_MESSAGE_ROUTED1(ViewMsg_SetInputMethodActive, 523 IPC_MESSAGE_ROUTED1(ViewMsg_SetInputMethodActive,
519 bool /* is_active */) 524 bool /* is_active */)
520 525
521 // This message sends a string being composed with an input method. 526 // This message sends a string being composed with an input method.
522 IPC_MESSAGE_ROUTED4( 527 IPC_MESSAGE_ROUTED4(
523 ViewMsg_ImeSetComposition, 528 ViewMsg_ImeSetComposition,
524 string16, /* text */ 529 string16, /* text */
525 std::vector<WebKit::WebCompositionUnderline>, /* underlines */ 530 std::vector<WebKit::WebCompositionUnderline>, /* underlines */
526 int, /* selectiont_start */ 531 int, /* selectiont_start */
527 int /* selection_end */) 532 int /* selection_end */)
528 533
529 // This message confirms an ongoing composition. 534 // This message confirms an ongoing composition.
530 IPC_MESSAGE_ROUTED0(ViewMsg_ImeConfirmComposition) 535 IPC_MESSAGE_ROUTED0(ViewMsg_ImeConfirmComposition)
531 536
532 // This passes a set of webkit preferences down to the renderer. 537 // This passes a set of webkit preferences down to the renderer.
533 IPC_MESSAGE_ROUTED1(ViewMsg_UpdateWebPreferences, WebPreferences) 538 IPC_MESSAGE_ROUTED1(ViewMsg_UpdateWebPreferences, WebPreferences)
534 539
535 // Used to notify the render-view that the browser has received a reply for 540 // Used to notify the render-view that the browser has received a reply for
536 // the Find operation and is interested in receiving the next one. This is 541 // the Find operation and is interested in receiving the next one. This is
537 // used to prevent the renderer from spamming the browser process with 542 // used to prevent the renderer from spamming the browser process with
538 // results. 543 // results.
539 IPC_MESSAGE_ROUTED0(ViewMsg_FindReplyACK) 544 IPC_MESSAGE_ROUTED0(ViewMsg_FindReplyACK)
540 545
541 // Used to notify the render-view that we have received a target URL. Used 546 // Used to notify the render-view that we have received a target URL. Used
542 // to prevent target URLs spamming the browser. 547 // to prevent target URLs spamming the browser.
543 IPC_MESSAGE_ROUTED0(ViewMsg_UpdateTargetURL_ACK) 548 IPC_MESSAGE_ROUTED0(ViewMsg_UpdateTargetURL_ACK)
544 549
545 // Sets the alternate error page URL (link doctor) for the renderer process. 550 // Sets the alternate error page URL (link doctor) for the renderer process.
546 IPC_MESSAGE_ROUTED1(ViewMsg_SetAltErrorPageURL, GURL) 551 IPC_MESSAGE_ROUTED1(ViewMsg_SetAltErrorPageURL, GURL)
547 552
548 // Install the first missing pluign. 553 // Install the first missing pluign.
549 IPC_MESSAGE_ROUTED0(ViewMsg_InstallMissingPlugin) 554 IPC_MESSAGE_ROUTED0(ViewMsg_InstallMissingPlugin)
550 555
551 // Tells the renderer to empty its plugin list cache, optional reloading 556 // Tells the renderer to empty its plugin list cache, optional reloading
552 // pages containing plugins. 557 // pages containing plugins.
553 IPC_MESSAGE_CONTROL1(ViewMsg_PurgePluginListCache, 558 IPC_MESSAGE_CONTROL1(ViewMsg_PurgePluginListCache,
554 bool /* reload_pages */) 559 bool /* reload_pages */)
555 560
556 // Tells the render view to load all blocked plugins. 561 // Tells the render view to load all blocked plugins.
557 IPC_MESSAGE_ROUTED0(ViewMsg_LoadBlockedPlugins) 562 IPC_MESSAGE_ROUTED0(ViewMsg_LoadBlockedPlugins)
558 563
559 IPC_MESSAGE_ROUTED1(ViewMsg_RunFileChooserResponse, 564 IPC_MESSAGE_ROUTED1(ViewMsg_RunFileChooserResponse,
560 std::vector<FilePath> /* selected files */) 565 std::vector<FilePath> /* selected files */)
561 566
562 // Used to instruct the RenderView to go into "view source" mode. 567 // Used to instruct the RenderView to go into "view source" mode.
563 IPC_MESSAGE_ROUTED0(ViewMsg_EnableViewSourceMode) 568 IPC_MESSAGE_ROUTED0(ViewMsg_EnableViewSourceMode)
564 569
565 // Get all savable resource links from current webpage, include main 570 // Get all savable resource links from current webpage, include main
566 // frame and sub-frame. 571 // frame and sub-frame.
567 IPC_MESSAGE_ROUTED1(ViewMsg_GetAllSavableResourceLinksForCurrentPage, 572 IPC_MESSAGE_ROUTED1(ViewMsg_GetAllSavableResourceLinksForCurrentPage,
568 GURL /* url of page which is needed to save */) 573 GURL /* url of page which is needed to save */)
569 574
570 // Get html data by serializing all frames of current page with lists 575 // Get html data by serializing all frames of current page with lists
571 // which contain all resource links that have local copy. 576 // which contain all resource links that have local copy.
572 IPC_MESSAGE_ROUTED3(ViewMsg_GetSerializedHtmlDataForCurrentPageWithLocalLinks, 577 IPC_MESSAGE_ROUTED3(ViewMsg_GetSerializedHtmlDataForCurrentPageWithLocalLinks,
573 std::vector<GURL> /* urls that have local copy */, 578 std::vector<GURL> /* urls that have local copy */,
574 std::vector<FilePath> /* paths of local copy */, 579 std::vector<FilePath> /* paths of local copy */,
575 FilePath /* local directory path */) 580 FilePath /* local directory path */)
576 581
577 // Requests application info for the page. The renderer responds back with 582 // Requests application info for the page. The renderer responds back with
578 // ViewHostMsg_DidGetApplicationInfo. 583 // ViewHostMsg_DidGetApplicationInfo.
579 IPC_MESSAGE_ROUTED1(ViewMsg_GetApplicationInfo, int32 /*page_id*/) 584 IPC_MESSAGE_ROUTED1(ViewMsg_GetApplicationInfo, int32 /*page_id*/)
580 585
581 // Requests the renderer to download the specified favicon image encode it as 586 // Requests the renderer to download the specified favicon image encode it as
582 // PNG and send the PNG data back ala ViewHostMsg_DidDownloadFavIcon. 587 // PNG and send the PNG data back ala ViewHostMsg_DidDownloadFavIcon.
583 IPC_MESSAGE_ROUTED3(ViewMsg_DownloadFavIcon, 588 IPC_MESSAGE_ROUTED3(ViewMsg_DownloadFavIcon,
584 int /* identifier for the request */, 589 int /* identifier for the request */,
585 GURL /* URL of the image */, 590 GURL /* URL of the image */,
586 int /* Size of the image. Normally 0, but set if you have 591 int /* Size of the image. Normally 0, but set if you have
587 a preferred image size to request, such as when 592 a preferred image size to request, such as when
588 downloading the favicon */) 593 downloading the favicon */)
589 594
590 // When a renderer sends a ViewHostMsg_Focus to the browser process, 595 // When a renderer sends a ViewHostMsg_Focus to the browser process,
591 // the browser has the option of sending a ViewMsg_CantFocus back to 596 // the browser has the option of sending a ViewMsg_CantFocus back to
592 // the renderer. 597 // the renderer.
593 IPC_MESSAGE_ROUTED0(ViewMsg_CantFocus) 598 IPC_MESSAGE_ROUTED0(ViewMsg_CantFocus)
594 599
595 // Instructs the renderer to invoke the frame's shouldClose method, which 600 // Instructs the renderer to invoke the frame's shouldClose method, which
596 // runs the onbeforeunload event handler. Expects the result to be returned 601 // runs the onbeforeunload event handler. Expects the result to be returned
597 // via ViewHostMsg_ShouldClose. 602 // via ViewHostMsg_ShouldClose.
598 IPC_MESSAGE_ROUTED0(ViewMsg_ShouldClose) 603 IPC_MESSAGE_ROUTED0(ViewMsg_ShouldClose)
599 604
600 // Instructs the renderer to close the current page, including running the 605 // Instructs the renderer to close the current page, including running the
601 // onunload event handler. See the struct in render_messages.h for more. 606 // onunload event handler. See the struct in render_messages.h for more.
602 // 607 //
603 // Expects a ClosePage_ACK message when finished, where the parameters are 608 // Expects a ClosePage_ACK message when finished, where the parameters are
604 // echoed back. 609 // echoed back.
605 IPC_MESSAGE_ROUTED1(ViewMsg_ClosePage, 610 IPC_MESSAGE_ROUTED1(ViewMsg_ClosePage,
606 ViewMsg_ClosePage_Params) 611 ViewMsg_ClosePage_Params)
607 612
608 // Asks the renderer to send back stats on the WebCore cache broken down by 613 // Asks the renderer to send back stats on the WebCore cache broken down by
609 // resource types. 614 // resource types.
610 IPC_MESSAGE_CONTROL0(ViewMsg_GetCacheResourceStats) 615 IPC_MESSAGE_CONTROL0(ViewMsg_GetCacheResourceStats)
611 616
612 // Asks the renderer to send back Histograms. 617 // Asks the renderer to send back Histograms.
613 IPC_MESSAGE_CONTROL1(ViewMsg_GetRendererHistograms, 618 IPC_MESSAGE_CONTROL1(ViewMsg_GetRendererHistograms,
614 int /* sequence number of Renderer Histograms. */) 619 int /* sequence number of Renderer Histograms. */)
615 620
616 #if defined(USE_TCMALLOC) 621 #if defined(USE_TCMALLOC)
617 // Asks the renderer to send back tcmalloc stats. 622 // Asks the renderer to send back tcmalloc stats.
618 IPC_MESSAGE_CONTROL0(ViewMsg_GetRendererTcmalloc) 623 IPC_MESSAGE_CONTROL0(ViewMsg_GetRendererTcmalloc)
619 #endif 624 #endif
620 625
621 // Asks the renderer to send back V8 heap stats. 626 // Asks the renderer to send back V8 heap stats.
622 IPC_MESSAGE_CONTROL0(ViewMsg_GetV8HeapStats) 627 IPC_MESSAGE_CONTROL0(ViewMsg_GetV8HeapStats)
623 628
624 // Notifies the renderer about ui theme changes 629 // Notifies the renderer about ui theme changes
625 IPC_MESSAGE_ROUTED0(ViewMsg_ThemeChanged) 630 IPC_MESSAGE_ROUTED0(ViewMsg_ThemeChanged)
626 631
627 // Notifies the renderer that a paint is to be generated for the rectangle 632 // Notifies the renderer that a paint is to be generated for the rectangle
628 // passed in. 633 // passed in.
629 IPC_MESSAGE_ROUTED1(ViewMsg_Repaint, 634 IPC_MESSAGE_ROUTED1(ViewMsg_Repaint,
630 gfx::Size /* The view size to be repainted */) 635 gfx::Size /* The view size to be repainted */)
631 636
632 // Posts a message to the renderer. 637 // Posts a message to the renderer.
633 IPC_MESSAGE_ROUTED3(ViewMsg_HandleMessageFromExternalHost, 638 IPC_MESSAGE_ROUTED3(ViewMsg_HandleMessageFromExternalHost,
634 std::string /* The message */, 639 std::string /* The message */,
635 std::string /* The origin */, 640 std::string /* The origin */,
636 std::string /* The target*/) 641 std::string /* The target*/)
637 642
638 // Sent to the renderer when a popup window should no longer count against 643 // Sent to the renderer when a popup window should no longer count against
639 // the current popup count (either because it's not a popup or because it was 644 // the current popup count (either because it's not a popup or because it was
640 // a generated by a user action or because a constrained popup got turned 645 // a generated by a user action or because a constrained popup got turned
641 // into a full window). 646 // into a full window).
642 IPC_MESSAGE_ROUTED0(ViewMsg_DisassociateFromPopupCount) 647 IPC_MESSAGE_ROUTED0(ViewMsg_DisassociateFromPopupCount)
643 648
644 // The browser sends this to a renderer process in response to a 649 // The browser sends this to a renderer process in response to a
645 // ViewHostMsg_EstablishGpuChannel message. 650 // ViewHostMsg_EstablishGpuChannel message.
646 IPC_MESSAGE_CONTROL2(ViewMsg_GpuChannelEstablished, 651 IPC_MESSAGE_CONTROL2(ViewMsg_GpuChannelEstablished,
647 IPC::ChannelHandle /* handle to channel */, 652 IPC::ChannelHandle /* handle to channel */,
648 GPUInfo /* stats about GPU process*/) 653 GPUInfo /* stats about GPU process*/)
649 654
650 // Notifies the renderer of the appcache that has been selected for a 655 // Notifies the renderer of the appcache that has been selected for a
651 // a particular host. This is sent in reply to AppCacheMsg_SelectCache. 656 // a particular host. This is sent in reply to AppCacheMsg_SelectCache.
652 IPC_MESSAGE_CONTROL2(AppCacheMsg_CacheSelected, 657 IPC_MESSAGE_CONTROL2(AppCacheMsg_CacheSelected,
653 int /* host_id */, 658 int /* host_id */,
654 appcache::AppCacheInfo) 659 appcache::AppCacheInfo)
655 660
656 // Notifies the renderer of an AppCache status change. 661 // Notifies the renderer of an AppCache status change.
657 IPC_MESSAGE_CONTROL2(AppCacheMsg_StatusChanged, 662 IPC_MESSAGE_CONTROL2(AppCacheMsg_StatusChanged,
658 std::vector<int> /* host_ids */, 663 std::vector<int> /* host_ids */,
659 appcache::Status) 664 appcache::Status)
660 665
661 // Notifies the renderer of an AppCache event other than the 666 // Notifies the renderer of an AppCache event other than the
662 // progress event which has a seperate message. 667 // progress event which has a seperate message.
663 IPC_MESSAGE_CONTROL2(AppCacheMsg_EventRaised, 668 IPC_MESSAGE_CONTROL2(AppCacheMsg_EventRaised,
664 std::vector<int> /* host_ids */, 669 std::vector<int> /* host_ids */,
665 appcache::EventID) 670 appcache::EventID)
666 671
667 // Notifies the renderer of an AppCache progress event. 672 // Notifies the renderer of an AppCache progress event.
668 IPC_MESSAGE_CONTROL4(AppCacheMsg_ProgressEventRaised, 673 IPC_MESSAGE_CONTROL4(AppCacheMsg_ProgressEventRaised,
669 std::vector<int> /* host_ids */, 674 std::vector<int> /* host_ids */,
670 GURL /* url being processed */, 675 GURL /* url being processed */,
671 int /* total */, 676 int /* total */,
672 int /* complete */) 677 int /* complete */)
673 678
674 // Notifies the renderer of an AppCache error event. 679 // Notifies the renderer of an AppCache error event.
675 IPC_MESSAGE_CONTROL2(AppCacheMsg_ErrorEventRaised, 680 IPC_MESSAGE_CONTROL2(AppCacheMsg_ErrorEventRaised,
676 std::vector<int> /* host_ids */, 681 std::vector<int> /* host_ids */,
677 std::string /* error_message */) 682 std::string /* error_message */)
678 683
679 // Notifies the renderer of an AppCache logging message. 684 // Notifies the renderer of an AppCache logging message.
680 IPC_MESSAGE_CONTROL3(AppCacheMsg_LogMessage, 685 IPC_MESSAGE_CONTROL3(AppCacheMsg_LogMessage,
681 int /* host_id */, 686 int /* host_id */,
682 int /* log_level */, 687 int /* log_level */,
683 std::string /* message */) 688 std::string /* message */)
684 689
685 // Notifies the renderer of the fact that AppCache access was blocked. 690 // Notifies the renderer of the fact that AppCache access was blocked.
686 IPC_MESSAGE_CONTROL2(AppCacheMsg_ContentBlocked, 691 IPC_MESSAGE_CONTROL2(AppCacheMsg_ContentBlocked,
687 int /* host_id */, 692 int /* host_id */,
688 GURL /* manifest_url */) 693 GURL /* manifest_url */)
689 694
690 // Reply to the ViewHostMsg_QueryFormFieldAutoFill message with the 695 // Reply to the ViewHostMsg_QueryFormFieldAutoFill message with the
691 // AutoFill suggestions. 696 // AutoFill suggestions.
692 IPC_MESSAGE_ROUTED5(ViewMsg_AutoFillSuggestionsReturned, 697 IPC_MESSAGE_ROUTED5(ViewMsg_AutoFillSuggestionsReturned,
693 int /* id of the request message */, 698 int /* id of the request message */,
694 std::vector<string16> /* names */, 699 std::vector<string16> /* names */,
695 std::vector<string16> /* labels */, 700 std::vector<string16> /* labels */,
696 std::vector<string16> /* icons */, 701 std::vector<string16> /* icons */,
697 std::vector<int> /* unique_ids */) 702 std::vector<int> /* unique_ids */)
698 703
699 // Reply to the ViewHostMsg_FillAutoFillFormData message with the 704 // Reply to the ViewHostMsg_FillAutoFillFormData message with the
700 // AutoFill form data. 705 // AutoFill form data.
701 IPC_MESSAGE_ROUTED2(ViewMsg_AutoFillFormDataFilled, 706 IPC_MESSAGE_ROUTED2(ViewMsg_AutoFillFormDataFilled,
702 int /* id of the request message */, 707 int /* id of the request message */,
703 webkit_glue::FormData /* form data */) 708 webkit_glue::FormData /* form data */)
704 709
705 // Sent by the Browser process to alert a window about whether a it should 710 // Sent by the Browser process to alert a window about whether a it should
706 // allow a scripted window.close(). The renderer assumes every new window is a 711 // allow a scripted window.close(). The renderer assumes every new window is a
707 // blocked popup until notified otherwise. 712 // blocked popup until notified otherwise.
708 IPC_MESSAGE_ROUTED1(ViewMsg_AllowScriptToClose, 713 IPC_MESSAGE_ROUTED1(ViewMsg_AllowScriptToClose,
709 bool /* script_can_close */) 714 bool /* script_can_close */)
710 715
711 // Sent by AudioRendererHost to renderer to request an audio packet. 716 // Sent by AudioRendererHost to renderer to request an audio packet.
712 IPC_MESSAGE_ROUTED2(ViewMsg_RequestAudioPacket, 717 IPC_MESSAGE_ROUTED2(ViewMsg_RequestAudioPacket,
713 int /* stream id */, 718 int /* stream id */,
714 AudioBuffersState) 719 AudioBuffersState)
715 720
716 // Tell the renderer process that the audio stream has been created, renderer 721 // Tell the renderer process that the audio stream has been created, renderer
717 // process would be given a ShareMemoryHandle that it should write to from 722 // process would be given a ShareMemoryHandle that it should write to from
718 // then on. 723 // then on.
719 IPC_MESSAGE_ROUTED3(ViewMsg_NotifyAudioStreamCreated, 724 IPC_MESSAGE_ROUTED3(ViewMsg_NotifyAudioStreamCreated,
720 int /* stream id */, 725 int /* stream id */,
721 base::SharedMemoryHandle /* handle */, 726 base::SharedMemoryHandle /* handle */,
722 uint32 /* length */) 727 uint32 /* length */)
723 728
724 // Tell the renderer process that a low latency audio stream has been created, 729 // Tell the renderer process that a low latency audio stream has been created,
725 // renderer process would be given a SyncSocket that it should write to from 730 // renderer process would be given a SyncSocket that it should write to from
726 // then on. 731 // then on.
727 #if defined(OS_WIN) 732 #if defined(OS_WIN)
728 IPC_MESSAGE_ROUTED4(ViewMsg_NotifyLowLatencyAudioStreamCreated, 733 IPC_MESSAGE_ROUTED4(ViewMsg_NotifyLowLatencyAudioStreamCreated,
729 int /* stream id */, 734 int /* stream id */,
730 base::SharedMemoryHandle /* handle */, 735 base::SharedMemoryHandle /* handle */,
731 base::SyncSocket::Handle /* socket handle */, 736 base::SyncSocket::Handle /* socket handle */,
732 uint32 /* length */) 737 uint32 /* length */)
733 #else 738 #else
734 IPC_MESSAGE_ROUTED4(ViewMsg_NotifyLowLatencyAudioStreamCreated, 739 IPC_MESSAGE_ROUTED4(ViewMsg_NotifyLowLatencyAudioStreamCreated,
735 int /* stream id */, 740 int /* stream id */,
736 base::SharedMemoryHandle /* handle */, 741 base::SharedMemoryHandle /* handle */,
737 base::FileDescriptor /* socket handle */, 742 base::FileDescriptor /* socket handle */,
738 uint32 /* length */) 743 uint32 /* length */)
739 #endif 744 #endif
740 745
741 // Notification message sent from AudioRendererHost to renderer for state 746 // Notification message sent from AudioRendererHost to renderer for state
742 // update after the renderer has requested a Create/Start/Close. 747 // update after the renderer has requested a Create/Start/Close.
743 IPC_MESSAGE_ROUTED2(ViewMsg_NotifyAudioStreamStateChanged, 748 IPC_MESSAGE_ROUTED2(ViewMsg_NotifyAudioStreamStateChanged,
744 int /* stream id */, 749 int /* stream id */,
745 ViewMsg_AudioStreamState_Params /* new state */) 750 ViewMsg_AudioStreamState_Params /* new state */)
746 751
747 IPC_MESSAGE_ROUTED2(ViewMsg_NotifyAudioStreamVolume, 752 IPC_MESSAGE_ROUTED2(ViewMsg_NotifyAudioStreamVolume,
748 int /* stream id */, 753 int /* stream id */,
749 double /* volume */) 754 double /* volume */)
750 755
751 // Notification that a move or resize renderer's containing window has 756 // Notification that a move or resize renderer's containing window has
752 // started. 757 // started.
753 IPC_MESSAGE_ROUTED0(ViewMsg_MoveOrResizeStarted) 758 IPC_MESSAGE_ROUTED0(ViewMsg_MoveOrResizeStarted)
754 759
755 // The browser sends this message in response to all extension api calls. 760 // The browser sends this message in response to all extension api calls.
756 IPC_MESSAGE_ROUTED4(ViewMsg_ExtensionResponse, 761 IPC_MESSAGE_ROUTED4(ViewMsg_ExtensionResponse,
757 int /* request_id */, 762 int /* request_id */,
758 bool /* success */, 763 bool /* success */,
759 std::string /* response */, 764 std::string /* response */,
760 std::string /* error */) 765 std::string /* error */)
761 766
762 // This message is optionally routed. If used as a control message, it 767 // This message is optionally routed. If used as a control message, it
763 // will call a javascript function in every registered context in the 768 // will call a javascript function in every registered context in the
764 // target process. If routed, it will be restricted to the contexts that 769 // target process. If routed, it will be restricted to the contexts that
765 // are part of the target RenderView. 770 // are part of the target RenderView.
766 // If |extension_id| is non-empty, the function will be invoked only in 771 // If |extension_id| is non-empty, the function will be invoked only in
767 // contexts owned by the extension. |args| is a list of primitive Value types 772 // contexts owned by the extension. |args| is a list of primitive Value types
768 // that are passed to the function. 773 // that are passed to the function.
769 IPC_MESSAGE_ROUTED4(ViewMsg_ExtensionMessageInvoke, 774 IPC_MESSAGE_ROUTED4(ViewMsg_ExtensionMessageInvoke,
770 std::string /* extension_id */, 775 std::string /* extension_id */,
771 std::string /* function_name */, 776 std::string /* function_name */,
772 ListValue /* args */, 777 ListValue /* args */,
773 GURL /* event URL */) 778 GURL /* event URL */)
774 779
775 // Tell the renderer process all known extension function names. 780 // Tell the renderer process all known extension function names.
776 IPC_MESSAGE_CONTROL1(ViewMsg_Extension_SetFunctionNames, 781 IPC_MESSAGE_CONTROL1(ViewMsg_Extension_SetFunctionNames,
777 std::vector<std::string>) 782 std::vector<std::string>)
778 783
779 // Tell the renderer process which permissions the given extension has. See 784 // Tell the renderer process which permissions the given extension has. See
780 // Extension::Permissions for which elements correspond to which permissions. 785 // Extension::Permissions for which elements correspond to which permissions.
781 IPC_MESSAGE_CONTROL2(ViewMsg_Extension_SetAPIPermissions, 786 IPC_MESSAGE_CONTROL2(ViewMsg_Extension_SetAPIPermissions,
782 std::string /* extension_id */, 787 std::string /* extension_id */,
783 std::set<std::string> /* permissions */) 788 std::set<std::string> /* permissions */)
784 789
785 // Tell the renderer process which host permissions the given extension has. 790 // Tell the renderer process which host permissions the given extension has.
786 IPC_MESSAGE_CONTROL2( 791 IPC_MESSAGE_CONTROL2(
787 ViewMsg_Extension_SetHostPermissions, 792 ViewMsg_Extension_SetHostPermissions,
788 GURL /* source extension's origin */, 793 GURL /* source extension's origin */,
789 std::vector<URLPattern> /* URLPatterns the extension can access */) 794 std::vector<URLPattern> /* URLPatterns the extension can access */)
790 795
791 // Tell the renderer process all known page action ids for a particular 796 // Tell the renderer process all known page action ids for a particular
792 // extension. 797 // extension.
793 IPC_MESSAGE_CONTROL2(ViewMsg_Extension_UpdatePageActions, 798 IPC_MESSAGE_CONTROL2(ViewMsg_Extension_UpdatePageActions,
794 std::string /* extension_id */, 799 std::string /* extension_id */,
795 std::vector<std::string> /* page_action_ids */) 800 std::vector<std::string> /* page_action_ids */)
796 801
797 // Changes the text direction of the currently selected input field (if any). 802 // Changes the text direction of the currently selected input field (if any).
798 IPC_MESSAGE_ROUTED1(ViewMsg_SetTextDirection, 803 IPC_MESSAGE_ROUTED1(ViewMsg_SetTextDirection,
799 WebKit::WebTextDirection /* direction */) 804 WebKit::WebTextDirection /* direction */)
800 805
801 // Tells the renderer to clear the focused node (if any). 806 // Tells the renderer to clear the focused node (if any).
802 IPC_MESSAGE_ROUTED0(ViewMsg_ClearFocusedNode) 807 IPC_MESSAGE_ROUTED0(ViewMsg_ClearFocusedNode)
803 808
804 // Make the RenderView transparent and render it onto a custom background. The 809 // Make the RenderView transparent and render it onto a custom background. The
805 // background will be tiled in both directions if it is not large enough. 810 // background will be tiled in both directions if it is not large enough.
806 IPC_MESSAGE_ROUTED1(ViewMsg_SetBackground, 811 IPC_MESSAGE_ROUTED1(ViewMsg_SetBackground,
807 SkBitmap /* background */) 812 SkBitmap /* background */)
808 813
809 // Reply to ViewHostMsg_RequestMove, ViewHostMsg_ShowView, and 814 // Reply to ViewHostMsg_RequestMove, ViewHostMsg_ShowView, and
810 // ViewHostMsg_ShowWidget to inform the renderer that the browser has 815 // ViewHostMsg_ShowWidget to inform the renderer that the browser has
811 // processed the move. The browser may have ignored the move, but it finished 816 // processed the move. The browser may have ignored the move, but it finished
812 // processing. This is used because the renderer keeps a temporary cache of 817 // processing. This is used because the renderer keeps a temporary cache of
813 // the widget position while these asynchronous operations are in progress. 818 // the widget position while these asynchronous operations are in progress.
814 IPC_MESSAGE_ROUTED0(ViewMsg_Move_ACK) 819 IPC_MESSAGE_ROUTED0(ViewMsg_Move_ACK)
815 820
816 // Used to instruct the RenderView to send back updates to the preferred size. 821 // Used to instruct the RenderView to send back updates to the preferred size.
817 IPC_MESSAGE_ROUTED1(ViewMsg_EnablePreferredSizeChangedMode, int /*flags*/) 822 IPC_MESSAGE_ROUTED1(ViewMsg_EnablePreferredSizeChangedMode, int /*flags*/)
818 823
819 IPC_MESSAGE_ROUTED4(ViewMsg_SearchBoxChange, 824 IPC_MESSAGE_ROUTED4(ViewMsg_SearchBoxChange,
820 string16 /*value*/, 825 string16 /*value*/,
821 bool /*verbatim*/, 826 bool /*verbatim*/,
822 int /*selection_start*/, 827 int /*selection_start*/,
823 int /*selection_end*/) 828 int /*selection_end*/)
824 IPC_MESSAGE_ROUTED2(ViewMsg_SearchBoxSubmit, 829 IPC_MESSAGE_ROUTED2(ViewMsg_SearchBoxSubmit,
825 string16 /*value*/, 830 string16 /*value*/,
826 bool /*verbatim*/) 831 bool /*verbatim*/)
827 IPC_MESSAGE_ROUTED0(ViewMsg_SearchBoxCancel) 832 IPC_MESSAGE_ROUTED0(ViewMsg_SearchBoxCancel)
828 IPC_MESSAGE_ROUTED1(ViewMsg_SearchBoxResize, 833 IPC_MESSAGE_ROUTED1(ViewMsg_SearchBoxResize,
829 gfx::Rect /*search_box_bounds*/) 834 gfx::Rect /*search_box_bounds*/)
830 IPC_MESSAGE_ROUTED2(ViewMsg_DetermineIfPageSupportsInstant, 835 IPC_MESSAGE_ROUTED2(ViewMsg_DetermineIfPageSupportsInstant,
831 string16 /*value*/, 836 string16 /*value*/,
832 bool /* verbatim */) 837 bool /* verbatim */)
833 838
834 // Used to tell the renderer not to add scrollbars with height and 839 // Used to tell the renderer not to add scrollbars with height and
835 // width below a threshold. 840 // width below a threshold.
836 IPC_MESSAGE_ROUTED1(ViewMsg_DisableScrollbarsForSmallWindows, 841 IPC_MESSAGE_ROUTED1(ViewMsg_DisableScrollbarsForSmallWindows,
837 gfx::Size /* disable_scrollbar_size_limit */) 842 gfx::Size /* disable_scrollbar_size_limit */)
838 843
839 // Used to inform the renderer that the browser has displayed its 844 // Used to inform the renderer that the browser has displayed its
840 // requested notification. 845 // requested notification.
841 IPC_MESSAGE_ROUTED1(ViewMsg_PostDisplayToNotificationObject, 846 IPC_MESSAGE_ROUTED1(ViewMsg_PostDisplayToNotificationObject,
842 int /* notification_id */) 847 int /* notification_id */)
843 848
844 // Used to inform the renderer that the browser has encountered an error 849 // Used to inform the renderer that the browser has encountered an error
845 // trying to display a notification. 850 // trying to display a notification.
846 IPC_MESSAGE_ROUTED2(ViewMsg_PostErrorToNotificationObject, 851 IPC_MESSAGE_ROUTED2(ViewMsg_PostErrorToNotificationObject,
847 int /* notification_id */, 852 int /* notification_id */,
848 string16 /* message */) 853 string16 /* message */)
849 854
850 // Informs the renderer that the one if its notifications has closed. 855 // Informs the renderer that the one if its notifications has closed.
851 IPC_MESSAGE_ROUTED2(ViewMsg_PostCloseToNotificationObject, 856 IPC_MESSAGE_ROUTED2(ViewMsg_PostCloseToNotificationObject,
852 int /* notification_id */, 857 int /* notification_id */,
853 bool /* by_user */) 858 bool /* by_user */)
854 859
855 // Informs the renderer that one of its notifications was clicked on. 860 // Informs the renderer that one of its notifications was clicked on.
856 IPC_MESSAGE_ROUTED1(ViewMsg_PostClickToNotificationObject, 861 IPC_MESSAGE_ROUTED1(ViewMsg_PostClickToNotificationObject,
857 int /* notification_id */) 862 int /* notification_id */)
858 863
859 // Informs the renderer that the one if its notifications has closed. 864 // Informs the renderer that the one if its notifications has closed.
860 IPC_MESSAGE_ROUTED1(ViewMsg_PermissionRequestDone, 865 IPC_MESSAGE_ROUTED1(ViewMsg_PermissionRequestDone,
861 int /* request_id */) 866 int /* request_id */)
862 867
863 // Activate/deactivate the RenderView (i.e., set its controls' tint 868 // Activate/deactivate the RenderView (i.e., set its controls' tint
864 // accordingly, etc.). 869 // accordingly, etc.).
865 IPC_MESSAGE_ROUTED1(ViewMsg_SetActive, 870 IPC_MESSAGE_ROUTED1(ViewMsg_SetActive,
866 bool /* active */) 871 bool /* active */)
867 872
868 #if defined(OS_MACOSX) 873 #if defined(OS_MACOSX)
869 // Let the RenderView know its window has changed visibility. 874 // Let the RenderView know its window has changed visibility.
870 IPC_MESSAGE_ROUTED1(ViewMsg_SetWindowVisibility, 875 IPC_MESSAGE_ROUTED1(ViewMsg_SetWindowVisibility,
871 bool /* visibile */) 876 bool /* visibile */)
872 877
873 // Let the RenderView know its window's frame has changed. 878 // Let the RenderView know its window's frame has changed.
874 IPC_MESSAGE_ROUTED2(ViewMsg_WindowFrameChanged, 879 IPC_MESSAGE_ROUTED2(ViewMsg_WindowFrameChanged,
875 gfx::Rect /* window frame */, 880 gfx::Rect /* window frame */,
876 gfx::Rect /* content view frame */) 881 gfx::Rect /* content view frame */)
877 882
878 // Tell the renderer that text has been retured from plugin IME. 883 // Tell the renderer that text has been retured from plugin IME.
879 IPC_MESSAGE_ROUTED2(ViewMsg_PluginImeCompositionConfirmed, 884 IPC_MESSAGE_ROUTED2(ViewMsg_PluginImeCompositionConfirmed,
880 string16 /* text */, 885 string16 /* text */,
881 int /* plugin_id */) 886 int /* plugin_id */)
882 #endif 887 #endif
883 888
884 // Response message to ViewHostMsg_CreateShared/DedicatedWorker. 889 // Response message to ViewHostMsg_CreateShared/DedicatedWorker.
885 // Sent when the worker has started. 890 // Sent when the worker has started.
886 IPC_MESSAGE_ROUTED0(ViewMsg_WorkerCreated) 891 IPC_MESSAGE_ROUTED0(ViewMsg_WorkerCreated)
887 892
888 // Tell the renderer which browser window it's being attached to. 893 // Tell the renderer which browser window it's being attached to.
889 IPC_MESSAGE_ROUTED1(ViewMsg_UpdateBrowserWindowId, 894 IPC_MESSAGE_ROUTED1(ViewMsg_UpdateBrowserWindowId,
890 int /* id of browser window */) 895 int /* id of browser window */)
891 896
892 // Tell the renderer which type this view is. 897 // Tell the renderer which type this view is.
893 IPC_MESSAGE_ROUTED1(ViewMsg_NotifyRenderViewType, 898 IPC_MESSAGE_ROUTED1(ViewMsg_NotifyRenderViewType,
894 ViewType::Type /* view_type */) 899 ViewType::Type /* view_type */)
895 900
896 // Notification that renderer should run some JavaScript code. 901 // Notification that renderer should run some JavaScript code.
897 IPC_MESSAGE_ROUTED1(ViewMsg_ExecuteCode, 902 IPC_MESSAGE_ROUTED1(ViewMsg_ExecuteCode,
898 ViewMsg_ExecuteCode_Params) 903 ViewMsg_ExecuteCode_Params)
899 904
900 // Notifies the child process of the new database size 905 // Notifies the child process of the new database size
901 IPC_MESSAGE_CONTROL4(ViewMsg_DatabaseUpdateSize, 906 IPC_MESSAGE_CONTROL4(ViewMsg_DatabaseUpdateSize,
902 string16 /* the origin */, 907 string16 /* the origin */,
903 string16 /* the database name */, 908 string16 /* the database name */,
904 int64 /* the new database size */, 909 int64 /* the new database size */,
905 int64 /* space available to origin */) 910 int64 /* space available to origin */)
906 911
907 // Asks the child process to close a database immediately 912 // Asks the child process to close a database immediately
908 IPC_MESSAGE_CONTROL2(ViewMsg_DatabaseCloseImmediately, 913 IPC_MESSAGE_CONTROL2(ViewMsg_DatabaseCloseImmediately,
909 string16 /* the origin */, 914 string16 /* the origin */,
910 string16 /* the database name */) 915 string16 /* the database name */)
911 916
912 // Storage events are broadcast to renderer processes. 917 // Storage events are broadcast to renderer processes.
913 IPC_MESSAGE_CONTROL1(ViewMsg_DOMStorageEvent, 918 IPC_MESSAGE_CONTROL1(ViewMsg_DOMStorageEvent,
914 ViewMsg_DOMStorageEvent_Params) 919 ViewMsg_DOMStorageEvent_Params)
915 920
916 // IDBCallback message handlers. 921 // IDBCallback message handlers.
917 IPC_MESSAGE_CONTROL1(ViewMsg_IDBCallbacksSuccessNull, 922 IPC_MESSAGE_CONTROL1(ViewMsg_IDBCallbacksSuccessNull,
918 int32 /* response_id */) 923 int32 /* response_id */)
919 IPC_MESSAGE_CONTROL2(ViewMsg_IDBCallbacksSuccessIDBCursor, 924 IPC_MESSAGE_CONTROL2(ViewMsg_IDBCallbacksSuccessIDBCursor,
920 int32 /* response_id */, 925 int32 /* response_id */,
921 int32 /* cursor_id */) 926 int32 /* cursor_id */)
922 IPC_MESSAGE_CONTROL2(ViewMsg_IDBCallbacksSuccessIDBDatabase, 927 IPC_MESSAGE_CONTROL2(ViewMsg_IDBCallbacksSuccessIDBDatabase,
923 int32 /* response_id */, 928 int32 /* response_id */,
924 int32 /* idb_database_id */) 929 int32 /* idb_database_id */)
925 IPC_MESSAGE_CONTROL2(ViewMsg_IDBCallbacksSuccessIndexedDBKey, 930 IPC_MESSAGE_CONTROL2(ViewMsg_IDBCallbacksSuccessIndexedDBKey,
926 int32 /* response_id */, 931 int32 /* response_id */,
927 IndexedDBKey /* indexed_db_key */) 932 IndexedDBKey /* indexed_db_key */)
928 IPC_MESSAGE_CONTROL2(ViewMsg_IDBCallbacksSuccessIDBIndex, 933 IPC_MESSAGE_CONTROL2(ViewMsg_IDBCallbacksSuccessIDBIndex,
929 int32 /* response_id */, 934 int32 /* response_id */,
930 int32 /* idb_index_id */) 935 int32 /* idb_index_id */)
931 IPC_MESSAGE_CONTROL2(ViewMsg_IDBCallbacksSuccessIDBObjectStore, 936 IPC_MESSAGE_CONTROL2(ViewMsg_IDBCallbacksSuccessIDBObjectStore,
932 int32 /* response_id */, 937 int32 /* response_id */,
933 int32 /* idb_object_store_id */) 938 int32 /* idb_object_store_id */)
934 IPC_MESSAGE_CONTROL2(ViewMsg_IDBCallbacksSuccessIDBTransaction, 939 IPC_MESSAGE_CONTROL2(ViewMsg_IDBCallbacksSuccessIDBTransaction,
935 int32 /* response_id */, 940 int32 /* response_id */,
936 int32 /* idb_transaction_id */) 941 int32 /* idb_transaction_id */)
937 IPC_MESSAGE_CONTROL2(ViewMsg_IDBCallbacksSuccessSerializedScriptValue, 942 IPC_MESSAGE_CONTROL2(ViewMsg_IDBCallbacksSuccessSerializedScriptValue,
938 int32 /* response_id */, 943 int32 /* response_id */,
939 SerializedScriptValue /* serialized_script_value */) 944 SerializedScriptValue /* serialized_script_value */)
940 IPC_MESSAGE_CONTROL3(ViewMsg_IDBCallbacksError, 945 IPC_MESSAGE_CONTROL3(ViewMsg_IDBCallbacksError,
941 int32 /* response_id */, 946 int32 /* response_id */,
942 int /* code */, 947 int /* code */,
943 string16 /* message */) 948 string16 /* message */)
944 949
945 // IDBTransactionCallback message handlers. 950 // IDBTransactionCallback message handlers.
946 IPC_MESSAGE_CONTROL1(ViewMsg_IDBTransactionCallbacksAbort, 951 IPC_MESSAGE_CONTROL1(ViewMsg_IDBTransactionCallbacksAbort,
947 int32 /* transaction_id */) 952 int32 /* transaction_id */)
948 IPC_MESSAGE_CONTROL1(ViewMsg_IDBTransactionCallbacksComplete, 953 IPC_MESSAGE_CONTROL1(ViewMsg_IDBTransactionCallbacksComplete,
949 int32 /* transaction_id */) 954 int32 /* transaction_id */)
950 IPC_MESSAGE_CONTROL1(ViewMsg_IDBTransactionCallbacksTimeout, 955 IPC_MESSAGE_CONTROL1(ViewMsg_IDBTransactionCallbacksTimeout,
951 int32 /* transaction_id */) 956 int32 /* transaction_id */)
952 957
953 #if defined(IPC_MESSAGE_LOG_ENABLED) 958 #if defined(IPC_MESSAGE_LOG_ENABLED)
954 // Tell the renderer process to begin or end IPC message logging. 959 // Tell the renderer process to begin or end IPC message logging.
955 IPC_MESSAGE_CONTROL1(ViewMsg_SetIPCLoggingEnabled, 960 IPC_MESSAGE_CONTROL1(ViewMsg_SetIPCLoggingEnabled,
956 bool /* on or off */) 961 bool /* on or off */)
957 #endif 962 #endif
958 963
959 // Socket Stream messages: 964 // Socket Stream messages:
960 // These are messages from the browser to the SocketStreamHandle on 965 // These are messages from the browser to the SocketStreamHandle on
961 // a renderer. 966 // a renderer.
962 967
963 // A |socket_id| is assigned by ViewHostMsg_SocketStream_Connect. 968 // A |socket_id| is assigned by ViewHostMsg_SocketStream_Connect.
964 // The Socket Stream is connected. The SocketStreamHandle should keep track 969 // The Socket Stream is connected. The SocketStreamHandle should keep track
965 // of how much it has pending (how much it has requested to be sent) and 970 // of how much it has pending (how much it has requested to be sent) and
966 // shouldn't go over |max_pending_send_allowed| bytes. 971 // shouldn't go over |max_pending_send_allowed| bytes.
967 IPC_MESSAGE_CONTROL2(ViewMsg_SocketStream_Connected, 972 IPC_MESSAGE_CONTROL2(ViewMsg_SocketStream_Connected,
968 int /* socket_id */, 973 int /* socket_id */,
969 int /* max_pending_send_allowed */) 974 int /* max_pending_send_allowed */)
970 975
971 // |data| is received on the Socket Stream. 976 // |data| is received on the Socket Stream.
972 IPC_MESSAGE_CONTROL2(ViewMsg_SocketStream_ReceivedData, 977 IPC_MESSAGE_CONTROL2(ViewMsg_SocketStream_ReceivedData,
973 int /* socket_id */, 978 int /* socket_id */,
974 std::vector<char> /* data */) 979 std::vector<char> /* data */)
975 980
976 // |amount_sent| bytes of data requested by 981 // |amount_sent| bytes of data requested by
977 // ViewHostMsg_SocketStream_SendData has been sent on the Socket Stream. 982 // ViewHostMsg_SocketStream_SendData has been sent on the Socket Stream.
978 IPC_MESSAGE_CONTROL2(ViewMsg_SocketStream_SentData, 983 IPC_MESSAGE_CONTROL2(ViewMsg_SocketStream_SentData,
979 int /* socket_id */, 984 int /* socket_id */,
980 int /* amount_sent */) 985 int /* amount_sent */)
981 986
982 // The Socket Stream is closed. 987 // The Socket Stream is closed.
983 IPC_MESSAGE_CONTROL1(ViewMsg_SocketStream_Closed, 988 IPC_MESSAGE_CONTROL1(ViewMsg_SocketStream_Closed,
984 int /* socket_id */) 989 int /* socket_id */)
985 990
986 // SpellChecker messages. 991 // SpellChecker messages.
987 992
988 // Passes some initialization params to the renderer's spellchecker. This can 993 // Passes some initialization params to the renderer's spellchecker. This can
989 // be called directly after startup or in (async) response to a 994 // be called directly after startup or in (async) response to a
990 // RequestDictionary ViewHost message. 995 // RequestDictionary ViewHost message.
991 IPC_MESSAGE_CONTROL4(ViewMsg_SpellChecker_Init, 996 IPC_MESSAGE_CONTROL4(ViewMsg_SpellChecker_Init,
992 IPC::PlatformFileForTransit /* bdict_file */, 997 IPC::PlatformFileForTransit /* bdict_file */,
993 std::vector<std::string> /* custom_dict_words */, 998 std::vector<std::string> /* custom_dict_words */,
994 std::string /* language */, 999 std::string /* language */,
995 bool /* auto spell correct */) 1000 bool /* auto spell correct */)
996 1001
997 // A word has been added to the custom dictionary; update the local custom 1002 // A word has been added to the custom dictionary; update the local custom
998 // word list. 1003 // word list.
999 IPC_MESSAGE_CONTROL1(ViewMsg_SpellChecker_WordAdded, 1004 IPC_MESSAGE_CONTROL1(ViewMsg_SpellChecker_WordAdded,
1000 std::string /* word */) 1005 std::string /* word */)
1001 1006
1002 // Toggle the auto spell correct functionality. 1007 // Toggle the auto spell correct functionality.
1003 IPC_MESSAGE_CONTROL1(ViewMsg_SpellChecker_EnableAutoSpellCorrect, 1008 IPC_MESSAGE_CONTROL1(ViewMsg_SpellChecker_EnableAutoSpellCorrect,
1004 bool /* enable */) 1009 bool /* enable */)
1005 1010
1006 // Executes custom context menu action that was provided from WebKit. 1011 // Executes custom context menu action that was provided from WebKit.
1007 IPC_MESSAGE_ROUTED1(ViewMsg_CustomContextMenuAction, 1012 IPC_MESSAGE_ROUTED1(ViewMsg_CustomContextMenuAction,
1008 unsigned /* action */) 1013 unsigned /* action */)
1009 1014
1010 // Tells the renderer to translate the page contents from one language to 1015 // Tells the renderer to translate the page contents from one language to
1011 // another. 1016 // another.
1012 IPC_MESSAGE_ROUTED4(ViewMsg_TranslatePage, 1017 IPC_MESSAGE_ROUTED4(ViewMsg_TranslatePage,
1013 int /* page id */, 1018 int /* page id */,
1014 std::string, /* the script injected in the page */ 1019 std::string, /* the script injected in the page */
1015 std::string, /* BCP 47/RFC 5646 language code the page 1020 std::string, /* BCP 47/RFC 5646 language code the page
1016 is in */ 1021 is in */
1017 std::string /* BCP 47/RFC 5646 language code to translate 1022 std::string /* BCP 47/RFC 5646 language code to translate
1018 to */) 1023 to */)
1019 1024
1020 // Tells the renderer to revert the text of translated page to its original 1025 // Tells the renderer to revert the text of translated page to its original
1021 // contents. 1026 // contents.
1022 IPC_MESSAGE_ROUTED1(ViewMsg_RevertTranslation, 1027 IPC_MESSAGE_ROUTED1(ViewMsg_RevertTranslation,
1023 int /* page id */) 1028 int /* page id */)
1024 1029
1025 // Reply in response to ViewHostMsg_Geolocation_RequestPermission. 1030 // Reply in response to ViewHostMsg_Geolocation_RequestPermission.
1026 IPC_MESSAGE_ROUTED2(ViewMsg_Geolocation_PermissionSet, 1031 IPC_MESSAGE_ROUTED2(ViewMsg_Geolocation_PermissionSet,
1027 int /* bridge_id */, 1032 int /* bridge_id */,
1028 bool /* is_allowed */) 1033 bool /* is_allowed */)
1029 1034
1030 // Sent after ViewHostMsg_Geolocation_StartUpdating iff the user has granted 1035 // Sent after ViewHostMsg_Geolocation_StartUpdating iff the user has granted
1031 // permission and we have a position available or an error occurs (such as 1036 // permission and we have a position available or an error occurs (such as
1032 // permission denied, position unavailable, etc.) 1037 // permission denied, position unavailable, etc.)
1033 IPC_MESSAGE_ROUTED1(ViewMsg_Geolocation_PositionUpdated, 1038 IPC_MESSAGE_ROUTED1(ViewMsg_Geolocation_PositionUpdated,
1034 Geoposition /* geoposition */) 1039 Geoposition /* geoposition */)
1035 1040
1036 // Sent on process startup to indicate whether this process is running in 1041 // Sent on process startup to indicate whether this process is running in
1037 // incognito mode. 1042 // incognito mode.
1038 IPC_MESSAGE_CONTROL1(ViewMsg_SetIsIncognitoProcess, 1043 IPC_MESSAGE_CONTROL1(ViewMsg_SetIsIncognitoProcess,
1039 bool /* is_incognito_processs */) 1044 bool /* is_incognito_processs */)
1040 1045
1041 // Notification that the list of extensions has been updated. 1046 // Notification that the list of extensions has been updated.
1042 IPC_MESSAGE_CONTROL1(ViewMsg_ExtensionsUpdated, 1047 IPC_MESSAGE_CONTROL1(ViewMsg_ExtensionsUpdated,
1043 ViewMsg_ExtensionsUpdated_Params) 1048 ViewMsg_ExtensionsUpdated_Params)
1044 1049
1045 // Enable accessibility in the renderer process. 1050 // Enable accessibility in the renderer process.
1046 IPC_MESSAGE_ROUTED0(ViewMsg_EnableAccessibility) 1051 IPC_MESSAGE_ROUTED0(ViewMsg_EnableAccessibility)
1047 1052
1048 // Relay a request from assistive technology to set focus to a given node. 1053 // Relay a request from assistive technology to set focus to a given node.
1049 IPC_MESSAGE_ROUTED1(ViewMsg_SetAccessibilityFocus, 1054 IPC_MESSAGE_ROUTED1(ViewMsg_SetAccessibilityFocus,
1050 int /* object id */) 1055 int /* object id */)
1051 1056
1052 // Relay a request from assistive technology to perform the default action 1057 // Relay a request from assistive technology to perform the default action
1053 // on a given node. 1058 // on a given node.
1054 IPC_MESSAGE_ROUTED1(ViewMsg_AccessibilityDoDefaultAction, 1059 IPC_MESSAGE_ROUTED1(ViewMsg_AccessibilityDoDefaultAction,
1055 int /* object id */) 1060 int /* object id */)
1056 1061
1057 // Tells the render view that a ViewHostMsg_AccessibilityNotifications 1062 // Tells the render view that a ViewHostMsg_AccessibilityNotifications
1058 // message was processed and it can send addition notifications. 1063 // message was processed and it can send addition notifications.
1059 IPC_MESSAGE_ROUTED0(ViewMsg_AccessibilityNotifications_ACK) 1064 IPC_MESSAGE_ROUTED0(ViewMsg_AccessibilityNotifications_ACK)
1060 1065
1061 // Relay a speech recognition result, either partial or final. 1066 // Relay a speech recognition result, either partial or final.
1062 IPC_MESSAGE_ROUTED2(ViewMsg_SpeechInput_SetRecognitionResult, 1067 IPC_MESSAGE_ROUTED2(ViewMsg_SpeechInput_SetRecognitionResult,
1063 int /* request id */, 1068 int /* request id */,
1064 speech_input::SpeechInputResultArray /* result */) 1069 speech_input::SpeechInputResultArray /* result */)
1065 1070
1066 // Indicate that speech recognizer has stopped recording and started 1071 // Indicate that speech recognizer has stopped recording and started
1067 // recognition. 1072 // recognition.
1068 IPC_MESSAGE_ROUTED1(ViewMsg_SpeechInput_RecordingComplete, 1073 IPC_MESSAGE_ROUTED1(ViewMsg_SpeechInput_RecordingComplete,
1069 int /* request id */) 1074 int /* request id */)
1070 1075
1071 // Indicate that speech recognizer has completed recognition. This will be 1076 // Indicate that speech recognizer has completed recognition. This will be
1072 // the last message sent in response to a 1077 // the last message sent in response to a
1073 // ViewHostMsg_SpeechInput_StartRecognition. 1078 // ViewHostMsg_SpeechInput_StartRecognition.
1074 IPC_MESSAGE_ROUTED1(ViewMsg_SpeechInput_RecognitionComplete, 1079 IPC_MESSAGE_ROUTED1(ViewMsg_SpeechInput_RecognitionComplete,
1075 int /* request id */) 1080 int /* request id */)
1076 1081
1077 // Notification that the device's orientation has changed. 1082 // Notification that the device's orientation has changed.
1078 IPC_MESSAGE_ROUTED1(ViewMsg_DeviceOrientationUpdated, 1083 IPC_MESSAGE_ROUTED1(ViewMsg_DeviceOrientationUpdated,
1079 ViewMsg_DeviceOrientationUpdated_Params) 1084 ViewMsg_DeviceOrientationUpdated_Params)
1080 1085
1081 // WebFrameClient::openFileSystem response messages. 1086 // WebFrameClient::openFileSystem response messages.
1082 IPC_MESSAGE_CONTROL4(ViewMsg_OpenFileSystemRequest_Complete, 1087 IPC_MESSAGE_CONTROL4(ViewMsg_OpenFileSystemRequest_Complete,
1083 int /* request_id */, 1088 int /* request_id */,
1084 bool /* accepted */, 1089 bool /* accepted */,
1085 std::string /* name */, 1090 std::string /* name */,
1086 FilePath /* root_path */) 1091 FilePath /* root_path */)
1087 1092
1088 // WebFileSystem response messages. 1093 // WebFileSystem response messages.
1089 IPC_MESSAGE_CONTROL1(ViewMsg_FileSystem_DidSucceed, 1094 IPC_MESSAGE_CONTROL1(ViewMsg_FileSystem_DidSucceed,
1090 int /* request_id */) 1095 int /* request_id */)
1091 IPC_MESSAGE_CONTROL2(ViewMsg_FileSystem_DidReadMetadata, 1096 IPC_MESSAGE_CONTROL2(ViewMsg_FileSystem_DidReadMetadata,
1092 int /* request_id */, 1097 int /* request_id */,
1093 base::PlatformFileInfo) 1098 base::PlatformFileInfo)
1094 IPC_MESSAGE_CONTROL3(ViewMsg_FileSystem_DidReadDirectory, 1099 IPC_MESSAGE_CONTROL3(ViewMsg_FileSystem_DidReadDirectory,
1095 int /* request_id */, 1100 int /* request_id */,
1096 std::vector<base::FileUtilProxy::Entry> /* entries */, 1101 std::vector<base::FileUtilProxy::Entry> /* entries */,
1097 bool /* has_more */) 1102 bool /* has_more */)
1098 1103
1099 IPC_MESSAGE_CONTROL3(ViewMsg_FileSystem_DidWrite, 1104 IPC_MESSAGE_CONTROL3(ViewMsg_FileSystem_DidWrite,
1100 int /* request_id */, 1105 int /* request_id */,
1101 int64 /* byte count */, 1106 int64 /* byte count */,
1102 bool /* complete */) 1107 bool /* complete */)
1103 IPC_MESSAGE_CONTROL2(ViewMsg_FileSystem_DidFail, 1108 IPC_MESSAGE_CONTROL2(ViewMsg_FileSystem_DidFail,
1104 int /* request_id */, 1109 int /* request_id */,
1105 base::PlatformFileError /* error_code */) 1110 base::PlatformFileError /* error_code */)
1106 1111
1107 // The response to ViewHostMsg_AsyncOpenFile. 1112 // The response to ViewHostMsg_AsyncOpenFile.
1108 IPC_MESSAGE_ROUTED3(ViewMsg_AsyncOpenFile_ACK, 1113 IPC_MESSAGE_ROUTED3(ViewMsg_AsyncOpenFile_ACK,
1109 base::PlatformFileError /* error_code */, 1114 base::PlatformFileError /* error_code */,
1110 IPC::PlatformFileForTransit /* file descriptor */, 1115 IPC::PlatformFileForTransit /* file descriptor */,
1111 int /* message_id */) 1116 int /* message_id */)
1112 1117
1113 // A classification model for client-side phishing detection. 1118 // A classification model for client-side phishing detection.
1114 // The given file contains an encoded safe_browsing::ClientSideModel 1119 // The given file contains an encoded safe_browsing::ClientSideModel
1115 // protocol buffer. 1120 // protocol buffer.
1116 IPC_MESSAGE_CONTROL1(ViewMsg_SetPhishingModel, 1121 IPC_MESSAGE_CONTROL1(ViewMsg_SetPhishingModel,
1117 IPC::PlatformFileForTransit /* model_file */) 1122 IPC::PlatformFileForTransit /* model_file */)
1118 1123
1119 // External popup menus. 1124 // External popup menus.
1120 IPC_MESSAGE_ROUTED1(ViewMsg_SelectPopupMenuItem, 1125 IPC_MESSAGE_ROUTED1(ViewMsg_SelectPopupMenuItem,
1121 int /* selected index, -1 means no selection */) 1126 int /* selected index, -1 means no selection */)
1122 1127
1123 // Indicate whether speech input API is enabled or not. 1128 // Indicate whether speech input API is enabled or not.
1124 IPC_MESSAGE_CONTROL1(ViewMsg_SpeechInput_SetFeatureEnabled, 1129 IPC_MESSAGE_CONTROL1(ViewMsg_SpeechInput_SetFeatureEnabled,
1125 bool /* enabled */) 1130 bool /* enabled */)
1126
1127 IPC_END_MESSAGES(View)
1128
1129 1131
1130 //----------------------------------------------------------------------------- 1132 //-----------------------------------------------------------------------------
1131 // TabContents messages 1133 // TabContents messages
1132 // These are messages sent from the renderer to the browser process. 1134 // These are messages sent from the renderer to the browser process.
1133 1135
1134 IPC_BEGIN_MESSAGES(ViewHost) 1136 // Sent by the renderer when it is creating a new window. The browser creates
1135 // Sent by the renderer when it is creating a new window. The browser creates 1137 // a tab for it and responds with a ViewMsg_CreatingNew_ACK. If route_id is
1136 // a tab for it and responds with a ViewMsg_CreatingNew_ACK. If route_id is 1138 // MSG_ROUTING_NONE, the view couldn't be created.
1137 // MSG_ROUTING_NONE, the view couldn't be created. 1139 IPC_SYNC_MESSAGE_CONTROL1_2(ViewHostMsg_CreateWindow,
1138 IPC_SYNC_MESSAGE_CONTROL1_2(ViewHostMsg_CreateWindow, 1140 ViewHostMsg_CreateWindow_Params,
1139 ViewHostMsg_CreateWindow_Params, 1141 int /* route_id */,
1140 int /* route_id */, 1142 int64 /* cloned_session_storage_namespace_id */)
1141 int64 /* cloned_session_storage_namespace_id */) 1143
1142 1144 // Similar to ViewHostMsg_CreateWindow, except used for sub-widgets, like
1143 // Similar to ViewHostMsg_CreateWindow, except used for sub-widgets, like 1145 // <select> dropdowns. This message is sent to the TabContents that
1144 // <select> dropdowns. This message is sent to the TabContents that 1146 // contains the widget being created.
1145 // contains the widget being created. 1147 IPC_SYNC_MESSAGE_CONTROL2_1(ViewHostMsg_CreateWidget,
1146 IPC_SYNC_MESSAGE_CONTROL2_1(ViewHostMsg_CreateWidget, 1148 int /* opener_id */,
1147 int /* opener_id */, 1149 WebKit::WebPopupType /* popup type */,
1148 WebKit::WebPopupType /* popup type */, 1150 int /* route_id */)
1149 int /* route_id */) 1151
1150 1152 // Similar to ViewHostMsg_CreateWidget except the widget is a full screen
1151 // Similar to ViewHostMsg_CreateWidget except the widget is a full screen 1153 // window.
1152 // window. 1154 IPC_SYNC_MESSAGE_CONTROL2_1(ViewHostMsg_CreateFullscreenWidget,
1153 IPC_SYNC_MESSAGE_CONTROL2_1(ViewHostMsg_CreateFullscreenWidget, 1155 int /* opener_id */,
1154 int /* opener_id */, 1156 WebKit::WebPopupType /* popup type */,
1155 WebKit::WebPopupType /* popup type */, 1157 int /* route_id */)
1156 int /* route_id */) 1158
1157 1159 // These three messages are sent to the parent RenderViewHost to display the
1158 // These three messages are sent to the parent RenderViewHost to display the 1160 // page/widget that was created by
1159 // page/widget that was created by 1161 // CreateWindow/CreateWidget/CreateFullscreenWidget. routing_id
1160 // CreateWindow/CreateWidget/CreateFullscreenWidget. routing_id 1162 // refers to the id that was returned from the Create message above.
1161 // refers to the id that was returned from the Create message above. 1163 // The initial_position parameter is a rectangle in screen coordinates.
1162 // The initial_position parameter is a rectangle in screen coordinates. 1164 //
1163 // 1165 // FUTURE: there will probably be flags here to control if the result is
1164 // FUTURE: there will probably be flags here to control if the result is 1166 // in a new window.
1165 // in a new window. 1167 IPC_MESSAGE_ROUTED4(ViewHostMsg_ShowView,
1166 IPC_MESSAGE_ROUTED4(ViewHostMsg_ShowView, 1168 int /* route_id */,
1167 int /* route_id */, 1169 WindowOpenDisposition /* disposition */,
1168 WindowOpenDisposition /* disposition */, 1170 gfx::Rect /* initial_pos */,
1169 gfx::Rect /* initial_pos */, 1171 bool /* opened_by_user_gesture */)
1170 bool /* opened_by_user_gesture */) 1172
1171 1173 IPC_MESSAGE_ROUTED2(ViewHostMsg_ShowWidget,
1172 IPC_MESSAGE_ROUTED2(ViewHostMsg_ShowWidget, 1174 int /* route_id */,
1173 int /* route_id */, 1175 gfx::Rect /* initial_pos */)
1174 gfx::Rect /* initial_pos */) 1176
1175 1177 // Message to show a full screen widget.
1176 // Message to show a full screen widget. 1178 IPC_MESSAGE_ROUTED1(ViewHostMsg_ShowFullscreenWidget,
1177 IPC_MESSAGE_ROUTED1(ViewHostMsg_ShowFullscreenWidget, 1179 int /* route_id */)
1178 int /* route_id */) 1180
1179 1181 // Message to show a popup menu using native cocoa controls (Mac only).
1180 // Message to show a popup menu using native cocoa controls (Mac only). 1182 IPC_MESSAGE_ROUTED1(ViewHostMsg_ShowPopup,
1181 IPC_MESSAGE_ROUTED1(ViewHostMsg_ShowPopup, 1183 ViewHostMsg_ShowPopup_Params)
1182 ViewHostMsg_ShowPopup_Params) 1184
1183 1185 // This message is sent after ViewHostMsg_ShowView to cause the RenderView
1184 // This message is sent after ViewHostMsg_ShowView to cause the RenderView 1186 // to run in a modal fashion until it is closed.
1185 // to run in a modal fashion until it is closed. 1187 IPC_SYNC_MESSAGE_ROUTED0_0(ViewHostMsg_RunModal)
1186 IPC_SYNC_MESSAGE_ROUTED0_0(ViewHostMsg_RunModal) 1188
1187 1189 IPC_MESSAGE_CONTROL1(ViewHostMsg_UpdatedCacheStats,
1188 IPC_MESSAGE_CONTROL1(ViewHostMsg_UpdatedCacheStats, 1190 WebKit::WebCache::UsageStats /* stats */)
1189 WebKit::WebCache::UsageStats /* stats */) 1191
1190 1192 // Indicates the renderer is ready in response to a ViewMsg_New or
1191 // Indicates the renderer is ready in response to a ViewMsg_New or 1193 // a ViewMsg_CreatingNew_ACK.
1192 // a ViewMsg_CreatingNew_ACK. 1194 IPC_MESSAGE_ROUTED0(ViewHostMsg_RenderViewReady)
1193 IPC_MESSAGE_ROUTED0(ViewHostMsg_RenderViewReady) 1195
1194 1196 // Indicates the renderer process is gone. This actually is sent by the
1195 // Indicates the renderer process is gone. This actually is sent by the 1197 // browser process to itself, but keeps the interface cleaner.
1196 // browser process to itself, but keeps the interface cleaner. 1198 IPC_MESSAGE_ROUTED0(ViewHostMsg_RenderViewGone)
1197 IPC_MESSAGE_ROUTED0(ViewHostMsg_RenderViewGone) 1199
1198 1200 // Sent by the renderer process to request that the browser close the view.
1199 // Sent by the renderer process to request that the browser close the view. 1201 // This corresponds to the window.close() API, and the browser may ignore
1200 // This corresponds to the window.close() API, and the browser may ignore 1202 // this message. Otherwise, the browser will generates a ViewMsg_Close
1201 // this message. Otherwise, the browser will generates a ViewMsg_Close 1203 // message to close the view.
1202 // message to close the view. 1204 IPC_MESSAGE_ROUTED0(ViewHostMsg_Close)
1203 IPC_MESSAGE_ROUTED0(ViewHostMsg_Close) 1205
1204 1206 // Sent by the renderer process to request that the browser move the view.
1205 // Sent by the renderer process to request that the browser move the view. 1207 // This corresponds to the window.resizeTo() and window.moveTo() APIs, and
1206 // This corresponds to the window.resizeTo() and window.moveTo() APIs, and 1208 // the browser may ignore this message.
1207 // the browser may ignore this message. 1209 IPC_MESSAGE_ROUTED1(ViewHostMsg_RequestMove,
1208 IPC_MESSAGE_ROUTED1(ViewHostMsg_RequestMove, 1210 gfx::Rect /* position */)
1209 gfx::Rect /* position */) 1211
1210 1212 // Notifies the browser that a frame in the view has changed. This message
1211 // Notifies the browser that a frame in the view has changed. This message 1213 // has a lot of parameters and is packed/unpacked by functions defined in
1212 // has a lot of parameters and is packed/unpacked by functions defined in 1214 // render_messages.h.
1213 // render_messages.h. 1215 IPC_MESSAGE_ROUTED1(ViewHostMsg_FrameNavigate,
1214 IPC_MESSAGE_ROUTED1(ViewHostMsg_FrameNavigate, 1216 ViewHostMsg_FrameNavigate_Params)
1215 ViewHostMsg_FrameNavigate_Params) 1217
1216 1218 // Notifies the browser that we have session history information.
1217 // Notifies the browser that we have session history information. 1219 // page_id: unique ID that allows us to distinguish between history entries.
1218 // page_id: unique ID that allows us to distinguish between history entries. 1220 IPC_MESSAGE_ROUTED2(ViewHostMsg_UpdateState,
1219 IPC_MESSAGE_ROUTED2(ViewHostMsg_UpdateState, 1221 int32 /* page_id */,
1220 int32 /* page_id */, 1222 std::string /* state */)
1221 std::string /* state */) 1223
1222 1224 // Notifies the browser that a document has been loaded in a frame.
1223 // Notifies the browser that a document has been loaded in a frame. 1225 IPC_MESSAGE_ROUTED1(ViewHostMsg_DocumentLoadedInFrame,
1224 IPC_MESSAGE_ROUTED1(ViewHostMsg_DocumentLoadedInFrame, 1226 int64 /* frame_id */)
1225 int64 /* frame_id */) 1227
1226 1228 // Notifies the browser that a frame finished loading.
1227 // Notifies the browser that a frame finished loading. 1229 IPC_MESSAGE_ROUTED1(ViewHostMsg_DidFinishLoad,
1228 IPC_MESSAGE_ROUTED1(ViewHostMsg_DidFinishLoad, 1230 int64 /* frame_id */)
1229 int64 /* frame_id */) 1231
1230 1232 // Changes the title for the page in the UI when the page is navigated or the
1231 // Changes the title for the page in the UI when the page is navigated or the 1233 // title changes.
1232 // title changes. 1234 // TODO(darin): use a UTF-8 string to reduce data size
1233 // TODO(darin): use a UTF-8 string to reduce data size 1235 IPC_MESSAGE_ROUTED2(ViewHostMsg_UpdateTitle, int32, std::wstring)
1234 IPC_MESSAGE_ROUTED2(ViewHostMsg_UpdateTitle, int32, std::wstring) 1236
1235 1237 // Changes the icon url for the page in the UI.
1236 // Changes the icon url for the page in the UI. 1238 IPC_MESSAGE_ROUTED2(ViewHostMsg_UpdateIconURL, int32, GURL)
1237 IPC_MESSAGE_ROUTED2(ViewHostMsg_UpdateIconURL, int32, GURL) 1239
1238 1240 // Change the encoding name of the page in UI when the page has detected
1239 // Change the encoding name of the page in UI when the page has detected 1241 // proper encoding name.
1240 // proper encoding name. 1242 IPC_MESSAGE_ROUTED1(ViewHostMsg_UpdateEncoding,
1241 IPC_MESSAGE_ROUTED1(ViewHostMsg_UpdateEncoding, 1243 std::string /* new encoding name */)
1242 std::string /* new encoding name */) 1244
1243 1245 // Notifies the browser that we want to show a destination url for a potential
1244 // Notifies the browser that we want to show a destination url for a potential 1246 // action (e.g. when the user is hovering over a link).
1245 // action (e.g. when the user is hovering over a link). 1247 IPC_MESSAGE_ROUTED2(ViewHostMsg_UpdateTargetURL, int32, GURL)
1246 IPC_MESSAGE_ROUTED2(ViewHostMsg_UpdateTargetURL, int32, GURL) 1248
1247 1249 // Sent when the renderer starts loading the page. This corresponds to
1248 // Sent when the renderer starts loading the page. This corresponds to 1250 // WebKit's notion of the throbber starting. Note that sometimes you may get
1249 // WebKit's notion of the throbber starting. Note that sometimes you may get 1251 // duplicates of these during a single load.
1250 // duplicates of these during a single load. 1252 IPC_MESSAGE_ROUTED0(ViewHostMsg_DidStartLoading)
1251 IPC_MESSAGE_ROUTED0(ViewHostMsg_DidStartLoading) 1253
1252 1254 // Sent when the renderer is done loading a page. This corresponds to WebKit's
1253 // Sent when the renderer is done loading a page. This corresponds to WebKit's 1255 // notion of the throbber stopping.
1254 // notion of the throbber stopping. 1256 IPC_MESSAGE_ROUTED0(ViewHostMsg_DidStopLoading)
1255 IPC_MESSAGE_ROUTED0(ViewHostMsg_DidStopLoading) 1257
1256 1258 // Sent when the document element is available for the toplevel frame. This
1257 // Sent when the document element is available for the toplevel frame. This 1259 // happens after the page starts loading, but before all resources are
1258 // happens after the page starts loading, but before all resources are 1260 // finished.
1259 // finished. 1261 IPC_MESSAGE_ROUTED0(ViewHostMsg_DocumentAvailableInMainFrame)
1260 IPC_MESSAGE_ROUTED0(ViewHostMsg_DocumentAvailableInMainFrame) 1262
1261 1263 // Sent when after the onload handler has been invoked for the document
1262 // Sent when after the onload handler has been invoked for the document 1264 // in the toplevel frame.
1263 // in the toplevel frame. 1265 IPC_MESSAGE_ROUTED1(ViewHostMsg_DocumentOnLoadCompletedInMainFrame,
1264 IPC_MESSAGE_ROUTED1(ViewHostMsg_DocumentOnLoadCompletedInMainFrame, 1266 int32 /* page_id */)
1265 int32 /* page_id */) 1267
1266 1268 // Sent when the renderer loads a resource from its memory cache.
1267 // Sent when the renderer loads a resource from its memory cache. 1269 // The security info is non empty if the resource was originally loaded over
1268 // The security info is non empty if the resource was originally loaded over 1270 // a secure connection.
1269 // a secure connection. 1271 // Note: May only be sent once per URL per frame per committed load.
1270 // Note: May only be sent once per URL per frame per committed load. 1272 IPC_MESSAGE_ROUTED4(ViewHostMsg_DidLoadResourceFromMemoryCache,
1271 IPC_MESSAGE_ROUTED4(ViewHostMsg_DidLoadResourceFromMemoryCache, 1273 GURL /* url */,
1272 GURL /* url */, 1274 std::string /* frame_origin */,
1273 std::string /* frame_origin */, 1275 std::string /* main_frame_origin */,
1274 std::string /* main_frame_origin */, 1276 std::string /* security info */)
1275 std::string /* security info */) 1277
1276 1278 // Sent when the renderer displays insecure content in a secure page.
1277 // Sent when the renderer displays insecure content in a secure page. 1279 IPC_MESSAGE_ROUTED0(ViewHostMsg_DidDisplayInsecureContent)
1278 IPC_MESSAGE_ROUTED0(ViewHostMsg_DidDisplayInsecureContent) 1280
1279 1281 // Sent when the renderer runs insecure content in a secure origin.
1280 // Sent when the renderer runs insecure content in a secure origin. 1282 IPC_MESSAGE_ROUTED1(ViewHostMsg_DidRunInsecureContent,
1281 IPC_MESSAGE_ROUTED1(ViewHostMsg_DidRunInsecureContent, 1283 std::string /* security_origin */)
1282 std::string /* security_origin */) 1284
1283 1285 // Sent when the renderer starts a provisional load for a frame.
1284 // Sent when the renderer starts a provisional load for a frame. 1286 IPC_MESSAGE_ROUTED3(ViewHostMsg_DidStartProvisionalLoadForFrame,
1285 IPC_MESSAGE_ROUTED3(ViewHostMsg_DidStartProvisionalLoadForFrame, 1287 int64 /* frame_id */,
1286 int64 /* frame_id */, 1288 bool /* true if it is the main frame */,
1287 bool /* true if it is the main frame */, 1289 GURL /* url */)
1288 GURL /* url */) 1290
1289 1291 // Sent when the renderer fails a provisional load with an error.
1290 // Sent when the renderer fails a provisional load with an error. 1292 IPC_MESSAGE_ROUTED5(ViewHostMsg_DidFailProvisionalLoadWithError,
1291 IPC_MESSAGE_ROUTED5(ViewHostMsg_DidFailProvisionalLoadWithError, 1293 int64 /* frame_id */,
1292 int64 /* frame_id */, 1294 bool /* true if it is the main frame */,
1293 bool /* true if it is the main frame */, 1295 int /* error_code */,
1294 int /* error_code */, 1296 GURL /* url */,
1295 GURL /* url */, 1297 bool /* true if the failure is the result of
1296 bool /* true if the failure is the result of 1298 navigating to a POST again and we're going to
1297 navigating to a POST again and we're going to 1299 show the POST interstitial */)
1298 show the POST interstitial */) 1300
1299 1301 // Tells the render view that a ViewHostMsg_PaintAtSize message was
1300 // Tells the render view that a ViewHostMsg_PaintAtSize message was 1302 // processed, and the DIB is ready for use. |tag| has the same value that
1301 // processed, and the DIB is ready for use. |tag| has the same value that 1303 // the tag sent along with ViewMsg_PaintAtSize.
1302 // the tag sent along with ViewMsg_PaintAtSize. 1304 IPC_MESSAGE_ROUTED2(ViewHostMsg_PaintAtSize_ACK,
1303 IPC_MESSAGE_ROUTED2(ViewHostMsg_PaintAtSize_ACK, 1305 int /* tag */,
1304 int /* tag */, 1306 gfx::Size /* size */)
1305 gfx::Size /* size */) 1307
1306 1308 // Sent to update part of the view. In response to this message, the host
1307 // Sent to update part of the view. In response to this message, the host 1309 // generates a ViewMsg_UpdateRect_ACK message.
1308 // generates a ViewMsg_UpdateRect_ACK message. 1310 IPC_MESSAGE_ROUTED1(ViewHostMsg_UpdateRect,
1309 IPC_MESSAGE_ROUTED1(ViewHostMsg_UpdateRect, 1311 ViewHostMsg_UpdateRect_Params)
1310 ViewHostMsg_UpdateRect_Params) 1312
1311 1313 // Sent by the renderer when accelerated compositing is enabled or disabled to
1312 // Sent by the renderer when accelerated compositing is enabled or disabled to 1314 // notify the browser whether or not is should do painting.
1313 // notify the browser whether or not is should do painting. 1315 IPC_MESSAGE_ROUTED1(ViewHostMsg_DidActivateAcceleratedCompositing,
1314 IPC_MESSAGE_ROUTED1(ViewHostMsg_DidActivateAcceleratedCompositing, 1316 bool /* true if the accelerated compositor is actve */)
1315 bool /* true if the accelerated compositor is actve */) 1317
1316 1318 // Acknowledges receipt of a ViewMsg_HandleInputEvent message.
1317 // Acknowledges receipt of a ViewMsg_HandleInputEvent message. 1319 // Payload is a WebInputEvent::Type which is the type of the event, followed
1318 // Payload is a WebInputEvent::Type which is the type of the event, followed 1320 // by an optional WebInputEvent which is provided only if the event was not
1319 // by an optional WebInputEvent which is provided only if the event was not 1321 // processed.
1320 // processed. 1322 IPC_MESSAGE_ROUTED0(ViewHostMsg_HandleInputEvent_ACK)
1321 IPC_MESSAGE_ROUTED0(ViewHostMsg_HandleInputEvent_ACK) 1323
1322 1324 IPC_MESSAGE_ROUTED0(ViewHostMsg_Focus)
1323 IPC_MESSAGE_ROUTED0(ViewHostMsg_Focus) 1325 IPC_MESSAGE_ROUTED0(ViewHostMsg_Blur)
1324 IPC_MESSAGE_ROUTED0(ViewHostMsg_Blur) 1326
1325 1327 // Message sent from renderer to the browser when focus changes inside the
1326 // Message sent from renderer to the browser when focus changes inside the 1328 // webpage. The parameter says whether the newly focused element needs
1327 // webpage. The parameter says whether the newly focused element needs 1329 // keyboard input (true for textfields, text areas and content editable divs).
1328 // keyboard input (true for textfields, text areas and content editable divs). 1330 IPC_MESSAGE_ROUTED1(ViewHostMsg_FocusedNodeChanged,
1329 IPC_MESSAGE_ROUTED1(ViewHostMsg_FocusedNodeChanged, 1331 bool /* is_editable_node */)
1330 bool /* is_editable_node */) 1332
1331 1333 // Returns the window location of the given window.
1332 // Returns the window location of the given window. 1334 // TODO(shess): Provide a mapping from reply_msg->routing_id() to
1333 // TODO(shess): Provide a mapping from reply_msg->routing_id() to 1335 // HWND so that we can eliminate the NativeViewId parameter.
1334 // HWND so that we can eliminate the NativeViewId parameter. 1336 IPC_SYNC_MESSAGE_ROUTED1_1(ViewHostMsg_GetWindowRect,
1335 IPC_SYNC_MESSAGE_ROUTED1_1(ViewHostMsg_GetWindowRect, 1337 gfx::NativeViewId /* window */,
1336 gfx::NativeViewId /* window */, 1338 gfx::Rect /* Out: Window location */)
1337 gfx::Rect /* Out: Window location */) 1339
1338 1340 IPC_MESSAGE_ROUTED1(ViewHostMsg_SetCursor, WebCursor)
1339 IPC_MESSAGE_ROUTED1(ViewHostMsg_SetCursor, WebCursor) 1341 // Result of string search in the page.
1340 // Result of string search in the page. 1342 // Response to ViewMsg_Find with the results of the requested find-in-page
1341 // Response to ViewMsg_Find with the results of the requested find-in-page 1343 // search, the number of matches found and the selection rect (in screen
1342 // search, the number of matches found and the selection rect (in screen 1344 // coordinates) for the string found. If |final_update| is false, it signals
1343 // coordinates) for the string found. If |final_update| is false, it signals 1345 // that this is not the last Find_Reply message - more will be sent as the
1344 // that this is not the last Find_Reply message - more will be sent as the 1346 // scoping effort continues.
1345 // scoping effort continues. 1347 IPC_MESSAGE_ROUTED5(ViewHostMsg_Find_Reply,
1346 IPC_MESSAGE_ROUTED5(ViewHostMsg_Find_Reply, 1348 int /* request_id */,
1347 int /* request_id */, 1349 int /* number of matches */,
1348 int /* number of matches */, 1350 gfx::Rect /* selection_rect */,
1349 gfx::Rect /* selection_rect */, 1351 int /* active_match_ordinal */,
1350 int /* active_match_ordinal */, 1352 bool /* final_update */)
1351 bool /* final_update */) 1353
1352 1354 // Makes a resource request via the browser.
1353 // Makes a resource request via the browser. 1355 IPC_MESSAGE_ROUTED2(ViewHostMsg_RequestResource,
1354 IPC_MESSAGE_ROUTED2(ViewHostMsg_RequestResource, 1356 int /* request_id */,
1355 int /* request_id */, 1357 ViewHostMsg_Resource_Request)
1356 ViewHostMsg_Resource_Request) 1358
1357 1359 // Cancels a resource request with the ID given as the parameter.
1358 // Cancels a resource request with the ID given as the parameter. 1360 IPC_MESSAGE_ROUTED1(ViewHostMsg_CancelRequest,
1359 IPC_MESSAGE_ROUTED1(ViewHostMsg_CancelRequest, 1361 int /* request_id */)
1360 int /* request_id */) 1362
1361 1363 // Follows a redirect that occured for the resource request with the ID given
1362 // Follows a redirect that occured for the resource request with the ID given 1364 // as the parameter.
1363 // as the parameter. 1365 IPC_MESSAGE_ROUTED3(ViewHostMsg_FollowRedirect,
1364 IPC_MESSAGE_ROUTED3(ViewHostMsg_FollowRedirect, 1366 int /* request_id */,
1365 int /* request_id */, 1367 bool /* has_new_first_party_for_cookies */,
1366 bool /* has_new_first_party_for_cookies */, 1368 GURL /* new_first_party_for_cookies */)
1367 GURL /* new_first_party_for_cookies */) 1369
1368 1370 // Makes a synchronous resource request via the browser.
1369 // Makes a synchronous resource request via the browser. 1371 IPC_SYNC_MESSAGE_ROUTED2_1(ViewHostMsg_SyncLoad,
1370 IPC_SYNC_MESSAGE_ROUTED2_1(ViewHostMsg_SyncLoad, 1372 int /* request_id */,
1371 int /* request_id */, 1373 ViewHostMsg_Resource_Request,
1372 ViewHostMsg_Resource_Request, 1374 SyncLoadResult)
1373 SyncLoadResult) 1375
1374 1376 // Used to set a cookie. The cookie is set asynchronously, but will be
1375 // Used to set a cookie. The cookie is set asynchronously, but will be 1377 // available to a subsequent ViewHostMsg_GetCookies request.
1376 // available to a subsequent ViewHostMsg_GetCookies request. 1378 IPC_MESSAGE_ROUTED3(ViewHostMsg_SetCookie,
1377 IPC_MESSAGE_ROUTED3(ViewHostMsg_SetCookie, 1379 GURL /* url */,
1378 GURL /* url */, 1380 GURL /* first_party_for_cookies */,
1379 GURL /* first_party_for_cookies */, 1381 std::string /* cookie */)
1380 std::string /* cookie */) 1382
1381 1383 // Used to get cookies for the given URL. This may block waiting for a
1382 // Used to get cookies for the given URL. This may block waiting for a 1384 // previous SetCookie message to be processed.
1383 // previous SetCookie message to be processed. 1385 IPC_SYNC_MESSAGE_ROUTED2_1(ViewHostMsg_GetCookies,
1384 IPC_SYNC_MESSAGE_ROUTED2_1(ViewHostMsg_GetCookies, 1386 GURL /* url */,
1385 GURL /* url */, 1387 GURL /* first_party_for_cookies */,
1386 GURL /* first_party_for_cookies */, 1388 std::string /* cookies */)
1387 std::string /* cookies */) 1389
1388 1390 // Used to get raw cookie information for the given URL. This may block
1389 // Used to get raw cookie information for the given URL. This may block 1391 // waiting for a previous SetCookie message to be processed.
1390 // waiting for a previous SetCookie message to be processed. 1392 IPC_SYNC_MESSAGE_ROUTED2_1(ViewHostMsg_GetRawCookies,
1391 IPC_SYNC_MESSAGE_ROUTED2_1(ViewHostMsg_GetRawCookies, 1393 GURL /* url */,
1392 GURL /* url */, 1394 GURL /* first_party_for_cookies */,
1393 GURL /* first_party_for_cookies */, 1395 std::vector<webkit_glue::WebCookie>
1394 std::vector<webkit_glue::WebCookie> 1396 /* raw_cookies */)
1395 /* raw_cookies */) 1397
1396 1398 // Used to delete cookie for the given URL and name
1397 // Used to delete cookie for the given URL and name 1399 IPC_SYNC_MESSAGE_CONTROL2_0(ViewHostMsg_DeleteCookie,
1398 IPC_SYNC_MESSAGE_CONTROL2_0(ViewHostMsg_DeleteCookie, 1400 GURL /* url */,
1399 GURL /* url */, 1401 std::string /* cookie_name */)
1400 std::string /* cookie_name */) 1402
1401 1403 // Used to check if cookies are enabled for the given URL. This may block
1402 // Used to check if cookies are enabled for the given URL. This may block 1404 // waiting for a previous SetCookie message to be processed.
1403 // waiting for a previous SetCookie message to be processed. 1405 IPC_SYNC_MESSAGE_ROUTED2_1(ViewHostMsg_CookiesEnabled,
1404 IPC_SYNC_MESSAGE_ROUTED2_1(ViewHostMsg_CookiesEnabled, 1406 GURL /* url */,
1405 GURL /* url */, 1407 GURL /* first_party_for_cookies */,
1406 GURL /* first_party_for_cookies */, 1408 bool /* cookies_enabled */)
1407 bool /* cookies_enabled */) 1409
1408 1410 // Used to get the list of plugins
1409 // Used to get the list of plugins 1411 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_GetPlugins,
1410 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_GetPlugins, 1412 bool /* refresh*/,
1411 bool /* refresh*/, 1413 std::vector<WebPluginInfo> /* plugins */)
1412 std::vector<WebPluginInfo> /* plugins */) 1414
1413 1415 // Return information about a plugin for the given URL and MIME
1414 // Return information about a plugin for the given URL and MIME 1416 // type. If there is no matching plugin, |found| is false. If
1415 // type. If there is no matching plugin, |found| is false. If 1417 // |enabled| in the WebPluginInfo struct is false, the plug-in is
1416 // |enabled| in the WebPluginInfo struct is false, the plug-in is 1418 // treated as if it was not installed at all.
1417 // treated as if it was not installed at all. 1419 //
1418 // 1420 // If |setting| is set to CONTENT_SETTING_BLOCK, the plug-in is
1419 // If |setting| is set to CONTENT_SETTING_BLOCK, the plug-in is 1421 // blocked by the content settings for |policy_url|. It still
1420 // blocked by the content settings for |policy_url|. It still 1422 // appears in navigator.plugins in Javascript though, and can be
1421 // appears in navigator.plugins in Javascript though, and can be 1423 // loaded via click-to-play.
1422 // loaded via click-to-play. 1424 //
1423 // 1425 // If |setting| is set to CONTENT_SETTING_ALLOW, the domain is
1424 // If |setting| is set to CONTENT_SETTING_ALLOW, the domain is 1426 // explicitly white-listed for the plug-in, or the user has chosen
1425 // explicitly white-listed for the plug-in, or the user has chosen 1427 // not to block nonsandboxed plugins.
1426 // not to block nonsandboxed plugins. 1428 //
1427 // 1429 // If |setting| is set to CONTENT_SETTING_DEFAULT, the plug-in is
1428 // If |setting| is set to CONTENT_SETTING_DEFAULT, the plug-in is 1430 // neither blocked nor white-listed, which means that it's allowed
1429 // neither blocked nor white-listed, which means that it's allowed 1431 // by default and can still be blocked if it's non-sandboxed.
1430 // by default and can still be blocked if it's non-sandboxed. 1432 //
1431 // 1433 // |actual_mime_type| is the actual mime type supported by the
1432 // |actual_mime_type| is the actual mime type supported by the 1434 // plugin found that match the URL given (one for each item in
1433 // plugin found that match the URL given (one for each item in 1435 // |info|).
1434 // |info|). 1436 IPC_SYNC_MESSAGE_CONTROL3_4(ViewHostMsg_GetPluginInfo,
1435 IPC_SYNC_MESSAGE_CONTROL3_4(ViewHostMsg_GetPluginInfo, 1437 GURL /* url */,
1436 GURL /* url */, 1438 GURL /* policy_url */,
1437 GURL /* policy_url */, 1439 std::string /* mime_type */,
1438 std::string /* mime_type */, 1440 bool /* found */,
1439 bool /* found */, 1441 WebPluginInfo /* plugin info */,
1440 WebPluginInfo /* plugin info */, 1442 ContentSetting /* setting */,
1441 ContentSetting /* setting */, 1443 std::string /* actual_mime_type */)
1442 std::string /* actual_mime_type */) 1444
1443 1445 // Requests spellcheck for a word.
1444 // Requests spellcheck for a word. 1446 IPC_SYNC_MESSAGE_ROUTED2_2(ViewHostMsg_SpellCheck,
1445 IPC_SYNC_MESSAGE_ROUTED2_2(ViewHostMsg_SpellCheck, 1447 string16 /* word to check */,
1446 string16 /* word to check */, 1448 int /* document tag*/,
1447 int /* document tag*/, 1449 int /* misspell location */,
1448 int /* misspell location */, 1450 int /* misspell length */)
1449 int /* misspell length */) 1451
1450 1452 // Asks the browser for a unique document tag.
1451 // Asks the browser for a unique document tag. 1453 IPC_SYNC_MESSAGE_ROUTED0_1(ViewHostMsg_GetDocumentTag,
1452 IPC_SYNC_MESSAGE_ROUTED0_1(ViewHostMsg_GetDocumentTag, 1454 int /* the tag */)
1453 int /* the tag */) 1455
1454 1456
1455 1457 // This message tells the spellchecker that a document, identified by an int
1456 // This message tells the spellchecker that a document, identified by an int 1458 // tag, has been closed and all of the ignored words for that document can be
1457 // tag, has been closed and all of the ignored words for that document can be 1459 // forgotten.
1458 // forgotten. 1460 IPC_MESSAGE_ROUTED1(ViewHostMsg_DocumentWithTagClosed,
1459 IPC_MESSAGE_ROUTED1(ViewHostMsg_DocumentWithTagClosed, 1461 int /* the tag */)
1460 int /* the tag */) 1462
1461 1463 // Tells the browser to display or not display the SpellingPanel
1462 // Tells the browser to display or not display the SpellingPanel 1464 IPC_MESSAGE_ROUTED1(ViewHostMsg_ShowSpellingPanel,
1463 IPC_MESSAGE_ROUTED1(ViewHostMsg_ShowSpellingPanel, 1465 bool /* if true, then show it, otherwise hide it*/)
1464 bool /* if true, then show it, otherwise hide it*/) 1466
1465 1467 // Tells the browser to update the spelling panel with the given word.
1466 // Tells the browser to update the spelling panel with the given word. 1468 IPC_MESSAGE_ROUTED1(ViewHostMsg_UpdateSpellingPanelWithMisspelledWord,
1467 IPC_MESSAGE_ROUTED1(ViewHostMsg_UpdateSpellingPanelWithMisspelledWord, 1469 string16 /* the word to update the panel with */)
1468 string16 /* the word to update the panel with */) 1470
1469 1471 // Tells the browser that content in the current page was blocked due to the
1470 // Tells the browser that content in the current page was blocked due to the 1472 // user's content settings.
1471 // user's content settings. 1473 IPC_MESSAGE_ROUTED2(ViewHostMsg_ContentBlocked,
1472 IPC_MESSAGE_ROUTED2(ViewHostMsg_ContentBlocked, 1474 ContentSettingsType, /* type of blocked content */
1473 ContentSettingsType, /* type of blocked content */ 1475 std::string /* resource identifier */)
1474 std::string /* resource identifier */) 1476
1475 1477 // Tells the browser that a specific Appcache manifest in the current page
1476 // Tells the browser that a specific Appcache manifest in the current page 1478 // was accessed.
1477 // was accessed. 1479 IPC_MESSAGE_ROUTED2(ViewHostMsg_AppCacheAccessed,
1478 IPC_MESSAGE_ROUTED2(ViewHostMsg_AppCacheAccessed, 1480 GURL /* manifest url */,
1479 GURL /* manifest url */, 1481 bool /* blocked by policy */)
1480 bool /* blocked by policy */) 1482
1481 1483 // Tells the browser that a specific Web database in the current page was
1482 // Tells the browser that a specific Web database in the current page was 1484 // accessed.
1483 // accessed. 1485 IPC_MESSAGE_ROUTED5(ViewHostMsg_WebDatabaseAccessed,
1484 IPC_MESSAGE_ROUTED5(ViewHostMsg_WebDatabaseAccessed, 1486 GURL /* origin url */,
1485 GURL /* origin url */, 1487 string16 /* database name */,
1486 string16 /* database name */, 1488 string16 /* database display name */,
1487 string16 /* database display name */, 1489 unsigned long /* estimated size */,
1488 unsigned long /* estimated size */, 1490 bool /* blocked by policy */)
1489 bool /* blocked by policy */) 1491
1490 1492 // Initiates a download based on user actions like 'ALT+click'.
1491 // Initiates a download based on user actions like 'ALT+click'. 1493 IPC_MESSAGE_ROUTED2(ViewHostMsg_DownloadUrl,
1492 IPC_MESSAGE_ROUTED2(ViewHostMsg_DownloadUrl, 1494 GURL /* url */,
1493 GURL /* url */, 1495 GURL /* referrer */)
1494 GURL /* referrer */) 1496
1495 1497 // Used to go to the session history entry at the given offset (ie, -1 will
1496 // Used to go to the session history entry at the given offset (ie, -1 will 1498 // return the "back" item).
1497 // return the "back" item). 1499 IPC_MESSAGE_ROUTED1(ViewHostMsg_GoToEntryAtOffset,
1498 IPC_MESSAGE_ROUTED1(ViewHostMsg_GoToEntryAtOffset, 1500 int /* offset (from current) of history item to get */)
1499 int /* offset (from current) of history item to get */) 1501
1500 1502 IPC_SYNC_MESSAGE_ROUTED4_2(ViewHostMsg_RunJavaScriptMessage,
1501 IPC_SYNC_MESSAGE_ROUTED4_2(ViewHostMsg_RunJavaScriptMessage, 1503 std::wstring /* in - alert message */,
1502 std::wstring /* in - alert message */, 1504 std::wstring /* in - default prompt */,
1503 std::wstring /* in - default prompt */, 1505 GURL /* in - originating page URL */,
1504 GURL /* in - originating page URL */, 1506 int /* in - dialog flags */,
1505 int /* in - dialog flags */, 1507 bool /* out - success */,
1506 bool /* out - success */, 1508 std::wstring /* out - prompt field */)
1507 std::wstring /* out - prompt field */) 1509
1508 1510 // Provides the contents for the given page that was loaded recently.
1509 // Provides the contents for the given page that was loaded recently. 1511 IPC_MESSAGE_ROUTED5(ViewHostMsg_PageContents,
1510 IPC_MESSAGE_ROUTED5(ViewHostMsg_PageContents, 1512 GURL /* URL of the page */,
1511 GURL /* URL of the page */, 1513 int32 /* page id */,
1512 int32 /* page id */, 1514 string16 /* page contents */,
1513 string16 /* page contents */, 1515 std::string /* page ISO639_1 language code */,
1514 std::string /* page ISO639_1 language code */, 1516 bool /* whether the page can be translated */)
1515 bool /* whether the page can be translated */) 1517
1516 1518 // Used to get the extension message bundle.
1517 // Used to get the extension message bundle. 1519 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_GetExtensionMessageBundle,
1518 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_GetExtensionMessageBundle, 1520 std::string /* extension id */,
1519 std::string /* extension id */, 1521 SubstitutionMap /* message bundle */)
1520 SubstitutionMap /* message bundle */) 1522
1521 1523 // Specifies the URL as the first parameter (a wstring) and thumbnail as
1522 // Specifies the URL as the first parameter (a wstring) and thumbnail as 1524 // binary data as the second parameter.
1523 // binary data as the second parameter. 1525 IPC_MESSAGE_ROUTED3(ViewHostMsg_Thumbnail,
1524 IPC_MESSAGE_ROUTED3(ViewHostMsg_Thumbnail, 1526 GURL /* url */,
1525 GURL /* url */, 1527 ThumbnailScore /* score */,
1526 ThumbnailScore /* score */, 1528 SkBitmap /* bitmap */)
1527 SkBitmap /* bitmap */) 1529
1528 1530 // Send a snapshot of the tab contents to the render host.
1529 // Send a snapshot of the tab contents to the render host. 1531 IPC_MESSAGE_ROUTED1(ViewHostMsg_Snapshot,
1530 IPC_MESSAGE_ROUTED1(ViewHostMsg_Snapshot, 1532 SkBitmap /* bitmap */)
1531 SkBitmap /* bitmap */) 1533
1532 1534 // Notification that the url for the favicon of a site has been determined.
1533 // Notification that the url for the favicon of a site has been determined. 1535 IPC_MESSAGE_ROUTED2(ViewHostMsg_UpdateFavIconURL,
1534 IPC_MESSAGE_ROUTED2(ViewHostMsg_UpdateFavIconURL, 1536 int32 /* page_id */,
1535 int32 /* page_id */, 1537 GURL /* url of the favicon */)
1536 GURL /* url of the favicon */) 1538
1537 1539 // Used to tell the parent that the user right clicked on an area of the
1538 // Used to tell the parent that the user right clicked on an area of the 1540 // content area, and a context menu should be shown for it. The params
1539 // content area, and a context menu should be shown for it. The params 1541 // object contains information about the node(s) that were selected when the
1540 // object contains information about the node(s) that were selected when the 1542 // user right clicked.
1541 // user right clicked. 1543 IPC_MESSAGE_ROUTED1(ViewHostMsg_ContextMenu, ContextMenuParams)
1542 IPC_MESSAGE_ROUTED1(ViewHostMsg_ContextMenu, ContextMenuParams) 1544
1543 1545 // Requests that the given URL be opened in the specified manner.
1544 // Requests that the given URL be opened in the specified manner. 1546 IPC_MESSAGE_ROUTED3(ViewHostMsg_OpenURL,
1545 IPC_MESSAGE_ROUTED3(ViewHostMsg_OpenURL, 1547 GURL /* url */,
1546 GURL /* url */, 1548 GURL /* referrer */,
1547 GURL /* referrer */, 1549 WindowOpenDisposition /* disposition */)
1548 WindowOpenDisposition /* disposition */) 1550
1549 1551 // Notifies that the preferred size of the content changed.
1550 // Notifies that the preferred size of the content changed. 1552 IPC_MESSAGE_ROUTED1(ViewHostMsg_DidContentsPreferredSizeChange,
1551 IPC_MESSAGE_ROUTED1(ViewHostMsg_DidContentsPreferredSizeChange, 1553 gfx::Size /* pref_size */)
1552 gfx::Size /* pref_size */) 1554
1553 1555 // Following message is used to communicate the values received by the
1554 // Following message is used to communicate the values received by the 1556 // callback binding the JS to Cpp.
1555 // callback binding the JS to Cpp. 1557 // An instance of browser that has an automation host listening to it can
1556 // An instance of browser that has an automation host listening to it can 1558 // have a javascript send a native value (string, number, boolean) to the
1557 // have a javascript send a native value (string, number, boolean) to the 1559 // listener in Cpp. (DomAutomationController)
1558 // listener in Cpp. (DomAutomationController) 1560 IPC_MESSAGE_ROUTED2(ViewHostMsg_DomOperationResponse,
1559 IPC_MESSAGE_ROUTED2(ViewHostMsg_DomOperationResponse, 1561 std::string /* json_string */,
1560 std::string /* json_string */, 1562 int /* automation_id */)
1561 int /* automation_id */) 1563
1562 1564 // A message from HTML-based UI. When (trusted) Javascript calls
1563 // A message from HTML-based UI. When (trusted) Javascript calls 1565 // send(message, args), this message is sent to the browser.
1564 // send(message, args), this message is sent to the browser. 1566 IPC_MESSAGE_ROUTED3(ViewHostMsg_DOMUISend,
1565 IPC_MESSAGE_ROUTED3(ViewHostMsg_DOMUISend, 1567 GURL /* source_url */,
1566 GURL /* source_url */, 1568 std::string /* message */,
1567 std::string /* message */, 1569 std::string /* args (as a JSON string) */)
1568 std::string /* args (as a JSON string) */) 1570
1569 1571 // A message for an external host.
1570 // A message for an external host. 1572 IPC_MESSAGE_ROUTED3(ViewHostMsg_ForwardMessageToExternalHost,
1571 IPC_MESSAGE_ROUTED3(ViewHostMsg_ForwardMessageToExternalHost, 1573 std::string /* message */,
1572 std::string /* message */, 1574 std::string /* origin */,
1573 std::string /* origin */, 1575 std::string /* target */)
1574 std::string /* target */) 1576
1575 1577 // A renderer sends this to the browser process when it wants to
1576 // A renderer sends this to the browser process when it wants to 1578 // create a plugin. The browser will create the plugin process if
1577 // create a plugin. The browser will create the plugin process if 1579 // necessary, and will return a handle to the channel on success.
1578 // necessary, and will return a handle to the channel on success. 1580 // On error an empty string is returned.
1579 // On error an empty string is returned. 1581 IPC_SYNC_MESSAGE_CONTROL2_2(ViewHostMsg_OpenChannelToPlugin,
1580 IPC_SYNC_MESSAGE_CONTROL2_2(ViewHostMsg_OpenChannelToPlugin, 1582 GURL /* url */,
1581 GURL /* url */, 1583 std::string /* mime_type */,
1582 std::string /* mime_type */, 1584 IPC::ChannelHandle /* channel_handle */,
1583 IPC::ChannelHandle /* channel_handle */, 1585 WebPluginInfo /* info */)
1584 WebPluginInfo /* info */) 1586
1585 1587 // A renderer sends this to the browser process when it wants to
1586 // A renderer sends this to the browser process when it wants to 1588 // create a pepper plugin. The browser will create the plugin process if
1587 // create a pepper plugin. The browser will create the plugin process if 1589 // necessary, and will return a handle to the channel on success.
1588 // necessary, and will return a handle to the channel on success. 1590 // On error an empty string is returned.
1589 // On error an empty string is returned. 1591 IPC_SYNC_MESSAGE_CONTROL1_2(ViewHostMsg_OpenChannelToPepperPlugin,
1590 IPC_SYNC_MESSAGE_CONTROL1_2(ViewHostMsg_OpenChannelToPepperPlugin, 1592 FilePath /* path */,
1591 FilePath /* path */, 1593 base::ProcessHandle /* plugin_process_handle */,
1592 base::ProcessHandle /* plugin_process_handle */, 1594 IPC::ChannelHandle /* handle to channel */)
1593 IPC::ChannelHandle /* handle to channel */) 1595
1594 1596 // A renderer sends this to the browser process when it wants to
1595 // A renderer sends this to the browser process when it wants to 1597 // create connect to the GPU. The browser will create the GPU process if
1596 // create connect to the GPU. The browser will create the GPU process if 1598 // necessary, and will return a handle to the channel via
1597 // necessary, and will return a handle to the channel via 1599 // a GpuChannelEstablished message.
1598 // a GpuChannelEstablished message. 1600 IPC_MESSAGE_CONTROL0(ViewHostMsg_EstablishGpuChannel)
1599 IPC_MESSAGE_CONTROL0(ViewHostMsg_EstablishGpuChannel) 1601
1600 1602 // A renderer sends this to the browser process to provide a synchronization
1601 // A renderer sends this to the browser process to provide a synchronization 1603 // point for GPU operations, in particular to make sure the GPU channel has
1602 // point for GPU operations, in particular to make sure the GPU channel has 1604 // been established.
1603 // been established. 1605 IPC_SYNC_MESSAGE_CONTROL0_0(ViewHostMsg_SynchronizeGpu)
1604 IPC_SYNC_MESSAGE_CONTROL0_0(ViewHostMsg_SynchronizeGpu) 1606
1605 1607 // A renderer sends this to the browser process when it wants to start
1606 // A renderer sends this to the browser process when it wants to start 1608 // a new instance of the Native Client process. The browser will launch
1607 // a new instance of the Native Client process. The browser will launch 1609 // the process and return a handle to an IMC channel.
1608 // the process and return a handle to an IMC channel. 1610 IPC_SYNC_MESSAGE_CONTROL2_3(ViewHostMsg_LaunchNaCl,
1609 IPC_SYNC_MESSAGE_CONTROL2_3(ViewHostMsg_LaunchNaCl, 1611 std::wstring /* url for the NaCl module */,
1610 std::wstring /* url for the NaCl module */, 1612 int /* socket count */,
1611 int /* socket count */, 1613 std::vector<nacl::FileDescriptor>
1612 std::vector<nacl::FileDescriptor> 1614 /* imc channel handles */,
1613 /* imc channel handles */, 1615 base::ProcessHandle /* NaCl process handle */,
1614 base::ProcessHandle /* NaCl process handle */, 1616 base::ProcessId /* NaCl process id */)
1615 base::ProcessId /* NaCl process id */)
1616 1617
1617 #if defined(USE_X11) 1618 #if defined(USE_X11)
1618 // A renderer sends this when it needs a browser-side widget for 1619 // A renderer sends this when it needs a browser-side widget for
1619 // hosting a windowed plugin. id is the XID of the plugin window, for which 1620 // hosting a windowed plugin. id is the XID of the plugin window, for which
1620 // the container is created. 1621 // the container is created.
1621 IPC_SYNC_MESSAGE_ROUTED1_0(ViewHostMsg_CreatePluginContainer, 1622 IPC_SYNC_MESSAGE_ROUTED1_0(ViewHostMsg_CreatePluginContainer,
1622 gfx::PluginWindowHandle /* id */) 1623 gfx::PluginWindowHandle /* id */)
1623 1624
1624 // Destroy a plugin container previously created using CreatePluginContainer. 1625 // Destroy a plugin container previously created using CreatePluginContainer.
1625 // id is the XID of the plugin window corresponding to the container that is 1626 // id is the XID of the plugin window corresponding to the container that is
1626 // to be destroyed. 1627 // to be destroyed.
1627 IPC_SYNC_MESSAGE_ROUTED1_0(ViewHostMsg_DestroyPluginContainer, 1628 IPC_SYNC_MESSAGE_ROUTED1_0(ViewHostMsg_DestroyPluginContainer,
1628 gfx::PluginWindowHandle /* id */) 1629 gfx::PluginWindowHandle /* id */)
1629 #endif 1630 #endif
1630 1631
1631 // Clipboard IPC messages 1632 // Clipboard IPC messages
1632 1633
1633 // This message is used when the object list does not contain a bitmap. 1634 // This message is used when the object list does not contain a bitmap.
1634 IPC_MESSAGE_CONTROL1(ViewHostMsg_ClipboardWriteObjectsAsync, 1635 IPC_MESSAGE_CONTROL1(ViewHostMsg_ClipboardWriteObjectsAsync,
1635 Clipboard::ObjectMap /* objects */) 1636 Clipboard::ObjectMap /* objects */)
1636 // This message is used when the object list contains a bitmap. 1637 // This message is used when the object list contains a bitmap.
1637 // It is synchronized so that the renderer knows when it is safe to 1638 // It is synchronized so that the renderer knows when it is safe to
1638 // free the shared memory used to transfer the bitmap. 1639 // free the shared memory used to transfer the bitmap.
1639 IPC_SYNC_MESSAGE_CONTROL2_0(ViewHostMsg_ClipboardWriteObjectsSync, 1640 IPC_SYNC_MESSAGE_CONTROL2_0(ViewHostMsg_ClipboardWriteObjectsSync,
1640 Clipboard::ObjectMap /* objects */, 1641 Clipboard::ObjectMap /* objects */,
1641 base::SharedMemoryHandle /* bitmap handle */) 1642 base::SharedMemoryHandle /* bitmap handle */)
1642 IPC_SYNC_MESSAGE_CONTROL2_1(ViewHostMsg_ClipboardIsFormatAvailable, 1643 IPC_SYNC_MESSAGE_CONTROL2_1(ViewHostMsg_ClipboardIsFormatAvailable,
1643 std::string /* format */, 1644 std::string /* format */,
1644 Clipboard::Buffer /* buffer */, 1645 Clipboard::Buffer /* buffer */,
1645 bool /* result */) 1646 bool /* result */)
1646 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_ClipboardReadText, 1647 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_ClipboardReadText,
1647 Clipboard::Buffer /* buffer */, 1648 Clipboard::Buffer /* buffer */,
1648 string16 /* result */) 1649 string16 /* result */)
1649 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_ClipboardReadAsciiText, 1650 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_ClipboardReadAsciiText,
1650 Clipboard::Buffer /* buffer */, 1651 Clipboard::Buffer /* buffer */,
1651 std::string /* result */) 1652 std::string /* result */)
1652 IPC_SYNC_MESSAGE_CONTROL1_2(ViewHostMsg_ClipboardReadHTML, 1653 IPC_SYNC_MESSAGE_CONTROL1_2(ViewHostMsg_ClipboardReadHTML,
1653 Clipboard::Buffer /* buffer */, 1654 Clipboard::Buffer /* buffer */,
1654 string16 /* markup */, 1655 string16 /* markup */,
1655 GURL /* url */) 1656 GURL /* url */)
1656 1657
1657 IPC_SYNC_MESSAGE_CONTROL1_3(ViewHostMsg_ClipboardReadAvailableTypes, 1658 IPC_SYNC_MESSAGE_CONTROL1_3(ViewHostMsg_ClipboardReadAvailableTypes,
1658 Clipboard::Buffer /* buffer */, 1659 Clipboard::Buffer /* buffer */,
1659 bool /* result */, 1660 bool /* result */,
1660 std::vector<string16> /* types */, 1661 std::vector<string16> /* types */,
1661 bool /* contains filenames */) 1662 bool /* contains filenames */)
1662 IPC_SYNC_MESSAGE_CONTROL2_3(ViewHostMsg_ClipboardReadData, 1663 IPC_SYNC_MESSAGE_CONTROL2_3(ViewHostMsg_ClipboardReadData,
1663 Clipboard::Buffer /* buffer */, 1664 Clipboard::Buffer /* buffer */,
1664 string16 /* type */, 1665 string16 /* type */,
1665 bool /* succeeded */, 1666 bool /* succeeded */,
1666 string16 /* data */, 1667 string16 /* data */,
1667 string16 /* metadata */) 1668 string16 /* metadata */)
1668 IPC_SYNC_MESSAGE_CONTROL1_2(ViewHostMsg_ClipboardReadFilenames, 1669 IPC_SYNC_MESSAGE_CONTROL1_2(ViewHostMsg_ClipboardReadFilenames,
1669 Clipboard::Buffer /* buffer */, 1670 Clipboard::Buffer /* buffer */,
1670 bool /* result */, 1671 bool /* result */,
1671 std::vector<string16> /* filenames */) 1672 std::vector<string16> /* filenames */)
1672 1673
1673 #if defined(OS_MACOSX) 1674 #if defined(OS_MACOSX)
1674 IPC_MESSAGE_CONTROL1(ViewHostMsg_ClipboardFindPboardWriteStringAsync, 1675 IPC_MESSAGE_CONTROL1(ViewHostMsg_ClipboardFindPboardWriteStringAsync,
1675 string16 /* text */) 1676 string16 /* text */)
1676 1677
1677 // Request that the browser load a font into shared memory for us. 1678 // Request that the browser load a font into shared memory for us.
1678 IPC_SYNC_MESSAGE_CONTROL1_2(ViewHostMsg_LoadFont, 1679 IPC_SYNC_MESSAGE_CONTROL1_2(ViewHostMsg_LoadFont,
1679 FontDescriptor /* font to load */, 1680 FontDescriptor /* font to load */,
1680 uint32 /* buffer size */, 1681 uint32 /* buffer size */,
1681 base::SharedMemoryHandle /* font data */) 1682 base::SharedMemoryHandle /* font data */)
1682 #endif 1683 #endif
1683 1684
1684 #if defined(OS_WIN) 1685 #if defined(OS_WIN)
1685 // Request that the given font be loaded by the browser so it's cached by the 1686 // Request that the given font be loaded by the browser so it's cached by the
1686 // OS. Please see ChildProcessHost::PreCacheFont for details. 1687 // OS. Please see ChildProcessHost::PreCacheFont for details.
1687 IPC_SYNC_MESSAGE_CONTROL1_0(ViewHostMsg_PreCacheFont, 1688 IPC_SYNC_MESSAGE_CONTROL1_0(ViewHostMsg_PreCacheFont,
1688 LOGFONT /* font data */) 1689 LOGFONT /* font data */)
1689 #endif // defined(OS_WIN) 1690 #endif // defined(OS_WIN)
1690 1691
1691 // Returns WebScreenInfo corresponding to the view. 1692 // Returns WebScreenInfo corresponding to the view.
1692 // TODO(shess): Provide a mapping from reply_msg->routing_id() to 1693 // TODO(shess): Provide a mapping from reply_msg->routing_id() to
1693 // HWND so that we can eliminate the NativeViewId parameter. 1694 // HWND so that we can eliminate the NativeViewId parameter.
1694 IPC_SYNC_MESSAGE_ROUTED1_1(ViewHostMsg_GetScreenInfo, 1695 IPC_SYNC_MESSAGE_ROUTED1_1(ViewHostMsg_GetScreenInfo,
1695 gfx::NativeViewId /* view */, 1696 gfx::NativeViewId /* view */,
1696 WebKit::WebScreenInfo /* results */) 1697 WebKit::WebScreenInfo /* results */)
1697 1698
1698 // Send the tooltip text for the current mouse position to the browser. 1699 // Send the tooltip text for the current mouse position to the browser.
1699 IPC_MESSAGE_ROUTED2(ViewHostMsg_SetTooltipText, 1700 IPC_MESSAGE_ROUTED2(ViewHostMsg_SetTooltipText,
1700 std::wstring /* tooltip text string */, 1701 std::wstring /* tooltip text string */,
1701 WebKit::WebTextDirection /* text direction hint */) 1702 WebKit::WebTextDirection /* text direction hint */)
1702 1703
1703 // Notification that the text selection has changed. 1704 // Notification that the text selection has changed.
1704 IPC_MESSAGE_ROUTED1(ViewHostMsg_SelectionChanged, 1705 IPC_MESSAGE_ROUTED1(ViewHostMsg_SelectionChanged,
1705 std::string /* currently selected text */) 1706 std::string /* currently selected text */)
1706 1707
1707 // Asks the browser to display the file chooser. The result is returned in a 1708 // Asks the browser to display the file chooser. The result is returned in a
1708 // ViewHost_RunFileChooserResponse message. 1709 // ViewHost_RunFileChooserResponse message.
1709 IPC_MESSAGE_ROUTED1(ViewHostMsg_RunFileChooser, 1710 IPC_MESSAGE_ROUTED1(ViewHostMsg_RunFileChooser,
1710 ViewHostMsg_RunFileChooser_Params) 1711 ViewHostMsg_RunFileChooser_Params)
1711 1712
1712 // Notification that forms have been seen that are candidates for 1713 // Notification that forms have been seen that are candidates for
1713 // filling/submitting by the AutoFillManager. 1714 // filling/submitting by the AutoFillManager.
1714 IPC_MESSAGE_ROUTED1(ViewHostMsg_FormsSeen, 1715 IPC_MESSAGE_ROUTED1(ViewHostMsg_FormsSeen,
1715 std::vector<webkit_glue::FormData> /* forms */) 1716 std::vector<webkit_glue::FormData> /* forms */)
1716 1717
1717 // Notification that password forms have been seen that are candidates for 1718 // Notification that password forms have been seen that are candidates for
1718 // filling/submitting by the password manager. 1719 // filling/submitting by the password manager.
1719 IPC_MESSAGE_ROUTED1(ViewHostMsg_PasswordFormsFound, 1720 IPC_MESSAGE_ROUTED1(ViewHostMsg_PasswordFormsFound,
1720 std::vector<webkit_glue::PasswordForm> /* forms */) 1721 std::vector<webkit_glue::PasswordForm> /* forms */)
1721 1722
1722 // Notification that initial layout has occurred and the following password 1723 // Notification that initial layout has occurred and the following password
1723 // forms are visible on the page (e.g. not set to display:none.) 1724 // forms are visible on the page (e.g. not set to display:none.)
1724 IPC_MESSAGE_ROUTED1(ViewHostMsg_PasswordFormsVisible, 1725 IPC_MESSAGE_ROUTED1(ViewHostMsg_PasswordFormsVisible,
1725 std::vector<webkit_glue::PasswordForm> /* forms */) 1726 std::vector<webkit_glue::PasswordForm> /* forms */)
1726 1727
1727 // Notification that a form has been submitted. The user hit the button. 1728 // Notification that a form has been submitted. The user hit the button.
1728 IPC_MESSAGE_ROUTED1(ViewHostMsg_FormSubmitted, 1729 IPC_MESSAGE_ROUTED1(ViewHostMsg_FormSubmitted,
1729 webkit_glue::FormData /* form */) 1730 webkit_glue::FormData /* form */)
1730 1731
1731 // Used to tell the parent the user started dragging in the content area. The 1732 // Used to tell the parent the user started dragging in the content area. The
1732 // WebDropData struct contains contextual information about the pieces of the 1733 // WebDropData struct contains contextual information about the pieces of the
1733 // page the user dragged. The parent uses this notification to initiate a 1734 // page the user dragged. The parent uses this notification to initiate a
1734 // drag session at the OS level. 1735 // drag session at the OS level.
1735 IPC_MESSAGE_ROUTED4(ViewHostMsg_StartDragging, 1736 IPC_MESSAGE_ROUTED4(ViewHostMsg_StartDragging,
1736 WebDropData /* drop_data */, 1737 WebDropData /* drop_data */,
1737 WebKit::WebDragOperationsMask /* ops_allowed */, 1738 WebKit::WebDragOperationsMask /* ops_allowed */,
1738 SkBitmap /* image */, 1739 SkBitmap /* image */,
1739 gfx::Point /* image_offset */) 1740 gfx::Point /* image_offset */)
1740 1741
1741 // The page wants to update the mouse cursor during a drag & drop operation. 1742 // The page wants to update the mouse cursor during a drag & drop operation.
1742 // |is_drop_target| is true if the mouse is over a valid drop target. 1743 // |is_drop_target| is true if the mouse is over a valid drop target.
1743 IPC_MESSAGE_ROUTED1(ViewHostMsg_UpdateDragCursor, 1744 IPC_MESSAGE_ROUTED1(ViewHostMsg_UpdateDragCursor,
1744 WebKit::WebDragOperation /* drag_operation */) 1745 WebKit::WebDragOperation /* drag_operation */)
1745 1746
1746 // Tells the browser to move the focus to the next (previous if reverse is 1747 // Tells the browser to move the focus to the next (previous if reverse is
1747 // true) focusable element. 1748 // true) focusable element.
1748 IPC_MESSAGE_ROUTED1(ViewHostMsg_TakeFocus, bool /* reverse */) 1749 IPC_MESSAGE_ROUTED1(ViewHostMsg_TakeFocus, bool /* reverse */)
1749 1750
1750 // Notification that the page has an OpenSearch description document 1751 // Notification that the page has an OpenSearch description document
1751 // associated with it. 1752 // associated with it.
1752 IPC_MESSAGE_ROUTED3(ViewHostMsg_PageHasOSDD, 1753 IPC_MESSAGE_ROUTED3(ViewHostMsg_PageHasOSDD,
1753 int32 /* page_id */, 1754 int32 /* page_id */,
1754 GURL /* url of OS description document */, 1755 GURL /* url of OS description document */,
1755 ViewHostMsg_PageHasOSDD_Type) 1756 ViewHostMsg_PageHasOSDD_Type)
1756 1757
1757 // Find out if the given url's security origin is installed as a search 1758 // Find out if the given url's security origin is installed as a search
1758 // provider. 1759 // provider.
1759 IPC_SYNC_MESSAGE_ROUTED2_1( 1760 IPC_SYNC_MESSAGE_ROUTED2_1(
1760 ViewHostMsg_GetSearchProviderInstallState, 1761 ViewHostMsg_GetSearchProviderInstallState,
1761 GURL /* page url */, 1762 GURL /* page url */,
1762 GURL /* inquiry url */, 1763 GURL /* inquiry url */,
1763 ViewHostMsg_GetSearchProviderInstallState_Params /* install */) 1764 ViewHostMsg_GetSearchProviderInstallState_Params /* install */)
1764 1765
1765 // Required for updating text input state. 1766 // Required for updating text input state.
1766 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeUpdateTextInputState, 1767 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeUpdateTextInputState,
1767 WebKit::WebTextInputType, /* text_input_type */ 1768 WebKit::WebTextInputType, /* text_input_type */
1768 gfx::Rect /* caret_rect */) 1769 gfx::Rect /* caret_rect */)
1769 1770
1770 // Required for cancelling an ongoing input method composition. 1771 // Required for cancelling an ongoing input method composition.
1771 IPC_MESSAGE_ROUTED0(ViewHostMsg_ImeCancelComposition) 1772 IPC_MESSAGE_ROUTED0(ViewHostMsg_ImeCancelComposition)
1772 1773
1773 // Tells the browser that the renderer is done calculating the number of 1774 // Tells the browser that the renderer is done calculating the number of
1774 // rendered pages according to the specified settings. 1775 // rendered pages according to the specified settings.
1775 IPC_MESSAGE_ROUTED2(ViewHostMsg_DidGetPrintedPagesCount, 1776 IPC_MESSAGE_ROUTED2(ViewHostMsg_DidGetPrintedPagesCount,
1776 int /* rendered document cookie */, 1777 int /* rendered document cookie */,
1777 int /* number of rendered pages */) 1778 int /* number of rendered pages */)
1778 1779
1779 // Sends back to the browser the rendered "printed page" that was requested by 1780 // Sends back to the browser the rendered "printed page" that was requested by
1780 // a ViewMsg_PrintPage message or from scripted printing. The memory handle in 1781 // a ViewMsg_PrintPage message or from scripted printing. The memory handle in
1781 // this message is already valid in the browser process. 1782 // this message is already valid in the browser process.
1782 IPC_MESSAGE_ROUTED1(ViewHostMsg_DidPrintPage, 1783 IPC_MESSAGE_ROUTED1(ViewHostMsg_DidPrintPage,
1783 ViewHostMsg_DidPrintPage_Params /* page content */) 1784 ViewHostMsg_DidPrintPage_Params /* page content */)
1784 1785
1785 // The renderer wants to know the default print settings. 1786 // The renderer wants to know the default print settings.
1786 IPC_SYNC_MESSAGE_ROUTED0_1(ViewHostMsg_GetDefaultPrintSettings, 1787 IPC_SYNC_MESSAGE_ROUTED0_1(ViewHostMsg_GetDefaultPrintSettings,
1787 ViewMsg_Print_Params /* default_settings */) 1788 ViewMsg_Print_Params /* default_settings */)
1788 1789
1789 // It's the renderer that controls the printing process when it is generated 1790 // It's the renderer that controls the printing process when it is generated
1790 // by javascript. This step is about showing UI to the user to select the 1791 // by javascript. This step is about showing UI to the user to select the
1791 // final print settings. The output parameter is the same as 1792 // final print settings. The output parameter is the same as
1792 // ViewMsg_PrintPages which is executed implicitly. 1793 // ViewMsg_PrintPages which is executed implicitly.
1793 IPC_SYNC_MESSAGE_ROUTED1_1(ViewHostMsg_ScriptedPrint, 1794 IPC_SYNC_MESSAGE_ROUTED1_1(ViewHostMsg_ScriptedPrint,
1794 ViewHostMsg_ScriptedPrint_Params, 1795 ViewHostMsg_ScriptedPrint_Params,
1795 ViewMsg_PrintPages_Params 1796 ViewMsg_PrintPages_Params
1796 /* settings chosen by the user*/) 1797 /* settings chosen by the user*/)
1797 1798
1798 // WebKit and JavaScript error messages to log to the console 1799 // WebKit and JavaScript error messages to log to the console
1799 // or debugger UI. 1800 // or debugger UI.
1800 IPC_MESSAGE_ROUTED3(ViewHostMsg_AddMessageToConsole, 1801 IPC_MESSAGE_ROUTED3(ViewHostMsg_AddMessageToConsole,
1801 std::wstring, /* msg */ 1802 std::wstring, /* msg */
1802 int32, /* line number */ 1803 int32, /* line number */
1803 std::wstring /* source id */) 1804 std::wstring /* source id */)
1804 1805
1805 // Stores new inspector setting in the profile. 1806 // Stores new inspector setting in the profile.
1806 IPC_MESSAGE_ROUTED2(ViewHostMsg_UpdateInspectorSetting, 1807 IPC_MESSAGE_ROUTED2(ViewHostMsg_UpdateInspectorSetting,
1807 std::string, /* key */ 1808 std::string, /* key */
1808 std::string /* value */) 1809 std::string /* value */)
1809 1810
1810 // Wraps an IPC message that's destined to the DevToolsClient on 1811 // Wraps an IPC message that's destined to the DevToolsClient on
1811 // DevToolsAgent->browser hop. 1812 // DevToolsAgent->browser hop.
1812 IPC_MESSAGE_ROUTED1(ViewHostMsg_ForwardToDevToolsClient, 1813 IPC_MESSAGE_ROUTED1(ViewHostMsg_ForwardToDevToolsClient,
1813 IPC::Message /* one of DevToolsClientMsg_XXX types */) 1814 IPC::Message /* one of DevToolsClientMsg_XXX types */)
1814 1815
1815 // Wraps an IPC message that's destined to the DevToolsAgent on 1816 // Wraps an IPC message that's destined to the DevToolsAgent on
1816 // DevToolsClient->browser hop. 1817 // DevToolsClient->browser hop.
1817 IPC_MESSAGE_ROUTED1(ViewHostMsg_ForwardToDevToolsAgent, 1818 IPC_MESSAGE_ROUTED1(ViewHostMsg_ForwardToDevToolsAgent,
1818 IPC::Message /* one of DevToolsAgentMsg_XXX types */) 1819 IPC::Message /* one of DevToolsAgentMsg_XXX types */)
1819 1820
1820 // Activates (brings to the front) corresponding dev tools window. 1821 // Activates (brings to the front) corresponding dev tools window.
1821 IPC_MESSAGE_ROUTED0(ViewHostMsg_ActivateDevToolsWindow) 1822 IPC_MESSAGE_ROUTED0(ViewHostMsg_ActivateDevToolsWindow)
1822 1823
1823 // Closes dev tools window that is inspecting current render_view_host. 1824 // Closes dev tools window that is inspecting current render_view_host.
1824 IPC_MESSAGE_ROUTED0(ViewHostMsg_CloseDevToolsWindow) 1825 IPC_MESSAGE_ROUTED0(ViewHostMsg_CloseDevToolsWindow)
1825 1826
1826 // Attaches dev tools window that is inspecting current render_view_host. 1827 // Attaches dev tools window that is inspecting current render_view_host.
1827 IPC_MESSAGE_ROUTED0(ViewHostMsg_RequestDockDevToolsWindow) 1828 IPC_MESSAGE_ROUTED0(ViewHostMsg_RequestDockDevToolsWindow)
1828 1829
1829 // Detaches dev tools window that is inspecting current render_view_host. 1830 // Detaches dev tools window that is inspecting current render_view_host.
1830 IPC_MESSAGE_ROUTED0(ViewHostMsg_RequestUndockDevToolsWindow) 1831 IPC_MESSAGE_ROUTED0(ViewHostMsg_RequestUndockDevToolsWindow)
1831 1832
1832 // Updates runtime features store in devtools manager in order to support 1833 // Updates runtime features store in devtools manager in order to support
1833 // cross-navigation instrumentation. 1834 // cross-navigation instrumentation.
1834 IPC_MESSAGE_ROUTED2(ViewHostMsg_DevToolsRuntimePropertyChanged, 1835 IPC_MESSAGE_ROUTED2(ViewHostMsg_DevToolsRuntimePropertyChanged,
1835 std::string /* name */, 1836 std::string /* name */,
1836 std::string /* value */) 1837 std::string /* value */)
1837 1838
1838 // Send back a string to be recorded by UserMetrics. 1839 // Send back a string to be recorded by UserMetrics.
1839 IPC_MESSAGE_CONTROL1(ViewHostMsg_UserMetricsRecordAction, 1840 IPC_MESSAGE_CONTROL1(ViewHostMsg_UserMetricsRecordAction,
1840 std::string /* action */) 1841 std::string /* action */)
1841 1842
1842 // Send back histograms as vector of pickled-histogram strings. 1843 // Send back histograms as vector of pickled-histogram strings.
1843 IPC_MESSAGE_CONTROL2(ViewHostMsg_RendererHistograms, 1844 IPC_MESSAGE_CONTROL2(ViewHostMsg_RendererHistograms,
1844 int, /* sequence number of Renderer Histograms. */ 1845 int, /* sequence number of Renderer Histograms. */
1845 std::vector<std::string>) 1846 std::vector<std::string>)
1846 1847
1847 #if defined USE_TCMALLOC 1848 #if defined USE_TCMALLOC
1848 // Send back tcmalloc stats output. 1849 // Send back tcmalloc stats output.
1849 IPC_MESSAGE_CONTROL2(ViewHostMsg_RendererTcmalloc, 1850 IPC_MESSAGE_CONTROL2(ViewHostMsg_RendererTcmalloc,
1850 int /* pid */, 1851 int /* pid */,
1851 std::string /* tcmalloc debug output */) 1852 std::string /* tcmalloc debug output */)
1852 #endif 1853 #endif
1853 1854
1854 // Sends back stats about the V8 heap. 1855 // Sends back stats about the V8 heap.
1855 IPC_MESSAGE_CONTROL2(ViewHostMsg_V8HeapStats, 1856 IPC_MESSAGE_CONTROL2(ViewHostMsg_V8HeapStats,
1856 int /* size of heap (allocated from the OS) */, 1857 int /* size of heap (allocated from the OS) */,
1857 int /* bytes in use */) 1858 int /* bytes in use */)
1858 1859
1859 // Request for a DNS prefetch of the names in the array. 1860 // Request for a DNS prefetch of the names in the array.
1860 // NameList is typedef'ed std::vector<std::string> 1861 // NameList is typedef'ed std::vector<std::string>
1861 IPC_MESSAGE_CONTROL1(ViewHostMsg_DnsPrefetch, 1862 IPC_MESSAGE_CONTROL1(ViewHostMsg_DnsPrefetch,
1862 std::vector<std::string> /* hostnames */) 1863 std::vector<std::string> /* hostnames */)
1863 1864
1864 // Notifies when default plugin updates status of the missing plugin. 1865 // Notifies when default plugin updates status of the missing plugin.
1865 IPC_MESSAGE_ROUTED1(ViewHostMsg_MissingPluginStatus, 1866 IPC_MESSAGE_ROUTED1(ViewHostMsg_MissingPluginStatus,
1866 int /* status */) 1867 int /* status */)
1867 1868
1868 // Sent by the renderer process to indicate that a plugin instance has 1869 // Sent by the renderer process to indicate that a plugin instance has
1869 // crashed. 1870 // crashed.
1870 IPC_MESSAGE_ROUTED1(ViewHostMsg_CrashedPlugin, 1871 IPC_MESSAGE_ROUTED1(ViewHostMsg_CrashedPlugin,
1871 FilePath /* plugin_path */) 1872 FilePath /* plugin_path */)
1872 1873
1873 // Notifies when a plugin couldn't be loaded because it's outdated. 1874 // Notifies when a plugin couldn't be loaded because it's outdated.
1874 IPC_MESSAGE_ROUTED2(ViewHostMsg_DisabledOutdatedPlugin, 1875 IPC_MESSAGE_ROUTED2(ViewHostMsg_DisabledOutdatedPlugin,
1875 string16, /* name */ 1876 string16, /* name */
1876 GURL /* update_url */) 1877 GURL /* update_url */)
1877 1878
1878 // Displays a JavaScript out-of-memory message in the infobar. 1879 // Displays a JavaScript out-of-memory message in the infobar.
1879 IPC_MESSAGE_ROUTED0(ViewHostMsg_JSOutOfMemory) 1880 IPC_MESSAGE_ROUTED0(ViewHostMsg_JSOutOfMemory)
1880 1881
1881 // Displays a box to confirm that the user wants to navigate away from the 1882 // Displays a box to confirm that the user wants to navigate away from the
1882 // page. Replies true if yes, false otherwise, the reply string is ignored, 1883 // page. Replies true if yes, false otherwise, the reply string is ignored,
1883 // but is included so that we can use OnJavaScriptMessageBoxClosed. 1884 // but is included so that we can use OnJavaScriptMessageBoxClosed.
1884 IPC_SYNC_MESSAGE_ROUTED2_2(ViewHostMsg_RunBeforeUnloadConfirm, 1885 IPC_SYNC_MESSAGE_ROUTED2_2(ViewHostMsg_RunBeforeUnloadConfirm,
1885 GURL, /* in - originating frame URL */ 1886 GURL, /* in - originating frame URL */
1886 std::wstring /* in - alert message */, 1887 std::wstring /* in - alert message */,
1887 bool /* out - success */, 1888 bool /* out - success */,
1888 std::wstring /* out - This is ignored.*/) 1889 std::wstring /* out - This is ignored.*/)
1889 1890
1890 IPC_MESSAGE_ROUTED3(ViewHostMsg_SendCurrentPageAllSavableResourceLinks, 1891 IPC_MESSAGE_ROUTED3(ViewHostMsg_SendCurrentPageAllSavableResourceLinks,
1891 std::vector<GURL> /* all savable resource links */, 1892 std::vector<GURL> /* all savable resource links */,
1892 std::vector<GURL> /* all referrers of resource links */, 1893 std::vector<GURL> /* all referrers of resource links */,
1893 std::vector<GURL> /* all frame links */) 1894 std::vector<GURL> /* all frame links */)
1894 1895
1895 IPC_MESSAGE_ROUTED3(ViewHostMsg_SendSerializedHtmlData, 1896 IPC_MESSAGE_ROUTED3(ViewHostMsg_SendSerializedHtmlData,
1896 GURL /* frame's url */, 1897 GURL /* frame's url */,
1897 std::string /* data buffer */, 1898 std::string /* data buffer */,
1898 int32 /* complete status */) 1899 int32 /* complete status */)
1899 1900
1900 IPC_SYNC_MESSAGE_ROUTED4_1(ViewHostMsg_ShowModalHTMLDialog, 1901 IPC_SYNC_MESSAGE_ROUTED4_1(ViewHostMsg_ShowModalHTMLDialog,
1901 GURL /* url */, 1902 GURL /* url */,
1902 int /* width */, 1903 int /* width */,
1903 int /* height */, 1904 int /* height */,
1904 std::string /* json_arguments */, 1905 std::string /* json_arguments */,
1905 std::string /* json_retval */) 1906 std::string /* json_retval */)
1906 1907
1907 IPC_MESSAGE_ROUTED2(ViewHostMsg_DidGetApplicationInfo, 1908 IPC_MESSAGE_ROUTED2(ViewHostMsg_DidGetApplicationInfo,
1908 int32 /* page_id */, 1909 int32 /* page_id */,
1909 WebApplicationInfo) 1910 WebApplicationInfo)
1910 1911
1911 // Sent by the renderer to implement chrome.app.installApplication(). 1912 // Sent by the renderer to implement chrome.app.installApplication().
1912 IPC_MESSAGE_ROUTED1(ViewHostMsg_InstallApplication, 1913 IPC_MESSAGE_ROUTED1(ViewHostMsg_InstallApplication,
1913 WebApplicationInfo) 1914 WebApplicationInfo)
1914 1915
1915 // Provides the result from running OnMsgShouldClose. |proceed| matches the 1916 // Provides the result from running OnMsgShouldClose. |proceed| matches the
1916 // return value of the the frame's shouldClose method (which includes the 1917 // return value of the the frame's shouldClose method (which includes the
1917 // onbeforeunload handler): true if the user decided to proceed with leaving 1918 // onbeforeunload handler): true if the user decided to proceed with leaving
1918 // the page. 1919 // the page.
1919 IPC_MESSAGE_ROUTED1(ViewHostMsg_ShouldClose_ACK, 1920 IPC_MESSAGE_ROUTED1(ViewHostMsg_ShouldClose_ACK,
1920 bool /* proceed */) 1921 bool /* proceed */)
1921 1922
1922 // Indicates that the current page has been closed, after a ClosePage 1923 // Indicates that the current page has been closed, after a ClosePage
1923 // message. The parameters are just echoed from the ClosePage request. 1924 // message. The parameters are just echoed from the ClosePage request.
1924 IPC_MESSAGE_ROUTED1(ViewHostMsg_ClosePage_ACK, 1925 IPC_MESSAGE_ROUTED1(ViewHostMsg_ClosePage_ACK,
1925 ViewMsg_ClosePage_Params) 1926 ViewMsg_ClosePage_Params)
1926 1927
1927 IPC_MESSAGE_ROUTED4(ViewHostMsg_DidDownloadFavIcon, 1928 IPC_MESSAGE_ROUTED4(ViewHostMsg_DidDownloadFavIcon,
1928 int /* Identifier of the request */, 1929 int /* Identifier of the request */,
1929 GURL /* URL of the image */, 1930 GURL /* URL of the image */,
1930 bool /* true if there was a network error */, 1931 bool /* true if there was a network error */,
1931 SkBitmap /* image_data */) 1932 SkBitmap /* image_data */)
1932 1933
1933 // Sent to query MIME information. 1934 // Sent to query MIME information.
1934 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_GetMimeTypeFromExtension, 1935 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_GetMimeTypeFromExtension,
1935 FilePath::StringType /* extension */, 1936 FilePath::StringType /* extension */,
1936 std::string /* mime_type */) 1937 std::string /* mime_type */)
1937 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_GetMimeTypeFromFile, 1938 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_GetMimeTypeFromFile,
1938 FilePath /* file_path */, 1939 FilePath /* file_path */,
1939 std::string /* mime_type */) 1940 std::string /* mime_type */)
1940 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_GetPreferredExtensionForMimeType, 1941 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_GetPreferredExtensionForMimeType,
1941 std::string /* mime_type */, 1942 std::string /* mime_type */,
1942 FilePath::StringType /* extension */) 1943 FilePath::StringType /* extension */)
1943 1944
1944 // Get the CPBrowsingContext associated with the renderer sending this 1945 // Get the CPBrowsingContext associated with the renderer sending this
1945 // message. 1946 // message.
1946 IPC_SYNC_MESSAGE_CONTROL0_1(ViewHostMsg_GetCPBrowsingContext, 1947 IPC_SYNC_MESSAGE_CONTROL0_1(ViewHostMsg_GetCPBrowsingContext,
1947 uint32 /* context */) 1948 uint32 /* context */)
1948 1949
1949 // Sent when the renderer process is done processing a DataReceived 1950 // Sent when the renderer process is done processing a DataReceived
1950 // message. 1951 // message.
1951 IPC_MESSAGE_ROUTED1(ViewHostMsg_DataReceived_ACK, 1952 IPC_MESSAGE_ROUTED1(ViewHostMsg_DataReceived_ACK,
1952 int /* request_id */) 1953 int /* request_id */)
1953 1954
1954 IPC_MESSAGE_CONTROL1(ViewHostMsg_RevealFolderInOS, 1955 IPC_MESSAGE_CONTROL1(ViewHostMsg_RevealFolderInOS,
1955 FilePath /* path */) 1956 FilePath /* path */)
1956 1957
1957 // Sent when the renderer has processed a DataDownloaded message. 1958 // Sent when the renderer has processed a DataDownloaded message.
1958 IPC_MESSAGE_ROUTED1(ViewHostMsg_DataDownloaded_ACK, 1959 IPC_MESSAGE_ROUTED1(ViewHostMsg_DataDownloaded_ACK,
1959 int /* request_id */) 1960 int /* request_id */)
1960 1961
1961 // Sent when the renderer process deletes a resource loader. 1962 // Sent when the renderer process deletes a resource loader.
1962 IPC_MESSAGE_CONTROL1(ViewHostMsg_ReleaseDownloadedFile, 1963 IPC_MESSAGE_CONTROL1(ViewHostMsg_ReleaseDownloadedFile,
1963 int /* request_id */) 1964 int /* request_id */)
1964 1965
1965 // Sent when a provisional load on the main frame redirects. 1966 // Sent when a provisional load on the main frame redirects.
1966 IPC_MESSAGE_ROUTED3(ViewHostMsg_DidRedirectProvisionalLoad, 1967 IPC_MESSAGE_ROUTED3(ViewHostMsg_DidRedirectProvisionalLoad,
1967 int /* page_id */, 1968 int /* page_id */,
1968 GURL /* last url */, 1969 GURL /* last url */,
1969 GURL /* url redirected to */) 1970 GURL /* url redirected to */)
1970 1971
1971 // Sent by the renderer process to acknowledge receipt of a 1972 // Sent by the renderer process to acknowledge receipt of a
1972 // UploadProgress message. 1973 // UploadProgress message.
1973 IPC_MESSAGE_ROUTED1(ViewHostMsg_UploadProgress_ACK, 1974 IPC_MESSAGE_ROUTED1(ViewHostMsg_UploadProgress_ACK,
1974 int /* request_id */) 1975 int /* request_id */)
1975 1976
1976 // Sent when the renderer changes the zoom level for a particular url, so the 1977 // Sent when the renderer changes the zoom level for a particular url, so the
1977 // browser can update its records. If remember is true, then url is used to 1978 // browser can update its records. If remember is true, then url is used to
1978 // update the zoom level for all pages in that site. Otherwise, the render 1979 // update the zoom level for all pages in that site. Otherwise, the render
1979 // view's id is used so that only the menu is updated. 1980 // view's id is used so that only the menu is updated.
1980 IPC_MESSAGE_ROUTED3(ViewHostMsg_DidZoomURL, 1981 IPC_MESSAGE_ROUTED3(ViewHostMsg_DidZoomURL,
1981 double /* zoom_level */, 1982 double /* zoom_level */,
1982 bool /* remember */, 1983 bool /* remember */,
1983 GURL /* url */) 1984 GURL /* url */)
1984 1985
1985 #if defined(OS_WIN) 1986 #if defined(OS_WIN)
1986 // Duplicates a shared memory handle from the renderer to the browser. Then 1987 // Duplicates a shared memory handle from the renderer to the browser. Then
1987 // the renderer can flush the handle. 1988 // the renderer can flush the handle.
1988 IPC_SYNC_MESSAGE_ROUTED1_1(ViewHostMsg_DuplicateSection, 1989 IPC_SYNC_MESSAGE_ROUTED1_1(ViewHostMsg_DuplicateSection,
1989 base::SharedMemoryHandle /* renderer handle */, 1990 base::SharedMemoryHandle /* renderer handle */,
1990 base::SharedMemoryHandle /* browser handle */) 1991 base::SharedMemoryHandle /* browser handle */)
1991 #endif 1992 #endif
1992 1993
1993 #if defined(USE_X11) 1994 #if defined(USE_X11)
1994 // Asks the browser to create a temporary file for the renderer to fill 1995 // Asks the browser to create a temporary file for the renderer to fill
1995 // in resulting NativeMetafile in printing. 1996 // in resulting NativeMetafile in printing.
1996 IPC_SYNC_MESSAGE_CONTROL0_2(ViewHostMsg_AllocateTempFileForPrinting, 1997 IPC_SYNC_MESSAGE_CONTROL0_2(ViewHostMsg_AllocateTempFileForPrinting,
1997 base::FileDescriptor /* temp file fd */, 1998 base::FileDescriptor /* temp file fd */,
1998 int /* fd in browser*/) 1999 int /* fd in browser*/)
1999 IPC_MESSAGE_CONTROL1(ViewHostMsg_TempFileForPrintingWritten, 2000 IPC_MESSAGE_CONTROL1(ViewHostMsg_TempFileForPrintingWritten,
2000 int /* fd in browser */) 2001 int /* fd in browser */)
2001 #endif 2002 #endif
2002 2003
2003 #if defined(OS_MACOSX) 2004 #if defined(OS_MACOSX)
2004 // Asks the browser to create a block of shared memory for the renderer to 2005 // Asks the browser to create a block of shared memory for the renderer to
2005 // pass NativeMetafile data to the browser. 2006 // pass NativeMetafile data to the browser.
2006 IPC_SYNC_MESSAGE_ROUTED1_1(ViewHostMsg_AllocatePDFTransport, 2007 IPC_SYNC_MESSAGE_ROUTED1_1(ViewHostMsg_AllocatePDFTransport,
2007 uint32 /* buffer size */, 2008 uint32 /* buffer size */,
2008 base::SharedMemoryHandle /* browser handle */) 2009 base::SharedMemoryHandle /* browser handle */)
2009 #endif 2010 #endif
2010 2011
2011 #if defined(OS_POSIX) 2012 #if defined(OS_POSIX)
2012 // Asks the browser to create a block of shared memory for the renderer to 2013 // Asks the browser to create a block of shared memory for the renderer to
2013 // fill in and pass back to the browser. 2014 // fill in and pass back to the browser.
2014 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_AllocateSharedMemoryBuffer, 2015 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_AllocateSharedMemoryBuffer,
2015 uint32 /* buffer size */, 2016 uint32 /* buffer size */,
2016 base::SharedMemoryHandle /* browser handle */) 2017 base::SharedMemoryHandle /* browser handle */)
2017 #endif 2018 #endif
2018 2019
2019 // Provide the browser process with information about the WebCore resource 2020 // Provide the browser process with information about the WebCore resource
2020 // cache. 2021 // cache.
2021 IPC_MESSAGE_CONTROL1(ViewHostMsg_ResourceTypeStats, 2022 IPC_MESSAGE_CONTROL1(ViewHostMsg_ResourceTypeStats,
2022 WebKit::WebCache::ResourceTypeStats) 2023 WebKit::WebCache::ResourceTypeStats)
2023 2024
2024 // Notify the browser that this render process can or can't be suddenly 2025 // Notify the browser that this render process can or can't be suddenly
2025 // terminated. 2026 // terminated.
2026 IPC_MESSAGE_CONTROL1(ViewHostMsg_SuddenTerminationChanged, 2027 IPC_MESSAGE_CONTROL1(ViewHostMsg_SuddenTerminationChanged,
2027 bool /* enabled */) 2028 bool /* enabled */)
2028 2029
2029 // Returns the window location of the window this widget is embeded. 2030 // Returns the window location of the window this widget is embeded.
2030 // TODO(shess): Provide a mapping from reply_msg->routing_id() to 2031 // TODO(shess): Provide a mapping from reply_msg->routing_id() to
2031 // HWND so that we can eliminate the NativeViewId parameter. 2032 // HWND so that we can eliminate the NativeViewId parameter.
2032 IPC_SYNC_MESSAGE_ROUTED1_1(ViewHostMsg_GetRootWindowRect, 2033 IPC_SYNC_MESSAGE_ROUTED1_1(ViewHostMsg_GetRootWindowRect,
2033 gfx::NativeViewId /* window */, 2034 gfx::NativeViewId /* window */,
2034 gfx::Rect /* Out: Window location */) 2035 gfx::Rect /* Out: Window location */)
2035 2036
2036 // Informs the browser of a new appcache host. 2037 // Informs the browser of a new appcache host.
2037 IPC_MESSAGE_CONTROL1(AppCacheMsg_RegisterHost, 2038 IPC_MESSAGE_CONTROL1(AppCacheMsg_RegisterHost,
2038 int /* host_id */) 2039 int /* host_id */)
2039 2040
2040 // Informs the browser of an appcache host being destroyed. 2041 // Informs the browser of an appcache host being destroyed.
2041 IPC_MESSAGE_CONTROL1(AppCacheMsg_UnregisterHost, 2042 IPC_MESSAGE_CONTROL1(AppCacheMsg_UnregisterHost,
2042 int /* host_id */) 2043 int /* host_id */)
2043 2044
2044 // Initiates the cache selection algorithm for the given host. 2045 // Initiates the cache selection algorithm for the given host.
2045 // This is sent prior to any subresource loads. An AppCacheMsg_CacheSelected 2046 // This is sent prior to any subresource loads. An AppCacheMsg_CacheSelected
2046 // message will be sent in response. 2047 // message will be sent in response.
2047 // 'host_id' indentifies a specific document or worker 2048 // 'host_id' indentifies a specific document or worker
2048 // 'document_url' the url of the main resource 2049 // 'document_url' the url of the main resource
2049 // 'appcache_document_was_loaded_from' the id of the appcache the main 2050 // 'appcache_document_was_loaded_from' the id of the appcache the main
2050 // resource was loaded from or kNoCacheId 2051 // resource was loaded from or kNoCacheId
2051 // 'opt_manifest_url' the manifest url specified in the <html> tag if any 2052 // 'opt_manifest_url' the manifest url specified in the <html> tag if any
2052 IPC_MESSAGE_CONTROL4(AppCacheMsg_SelectCache, 2053 IPC_MESSAGE_CONTROL4(AppCacheMsg_SelectCache,
2053 int /* host_id */, 2054 int /* host_id */,
2054 GURL /* document_url */, 2055 GURL /* document_url */,
2055 int64 /* appcache_document_was_loaded_from */, 2056 int64 /* appcache_document_was_loaded_from */,
2056 GURL /* opt_manifest_url */) 2057 GURL /* opt_manifest_url */)
2057 2058
2058 // Initiates worker specific cache selection algorithm for the given host. 2059 // Initiates worker specific cache selection algorithm for the given host.
2059 IPC_MESSAGE_CONTROL3(AppCacheMsg_SelectCacheForWorker, 2060 IPC_MESSAGE_CONTROL3(AppCacheMsg_SelectCacheForWorker,
2060 int /* host_id */, 2061 int /* host_id */,
2061 int /* parent_process_id */, 2062 int /* parent_process_id */,
2062 int /* parent_host_id */) 2063 int /* parent_host_id */)
2063 IPC_MESSAGE_CONTROL2(AppCacheMsg_SelectCacheForSharedWorker, 2064 IPC_MESSAGE_CONTROL2(AppCacheMsg_SelectCacheForSharedWorker,
2064 int /* host_id */, 2065 int /* host_id */,
2065 int64 /* appcache_id */) 2066 int64 /* appcache_id */)
2066 2067
2067 // Informs the browser of a 'foreign' entry in an appcache. 2068 // Informs the browser of a 'foreign' entry in an appcache.
2068 IPC_MESSAGE_CONTROL3(AppCacheMsg_MarkAsForeignEntry, 2069 IPC_MESSAGE_CONTROL3(AppCacheMsg_MarkAsForeignEntry,
2069 int /* host_id */, 2070 int /* host_id */,
2070 GURL /* document_url */, 2071 GURL /* document_url */,
2071 int64 /* appcache_document_was_loaded_from */) 2072 int64 /* appcache_document_was_loaded_from */)
2072 2073
2073 // Returns the status of the appcache associated with host_id. 2074 // Returns the status of the appcache associated with host_id.
2074 IPC_SYNC_MESSAGE_CONTROL1_1(AppCacheMsg_GetStatus, 2075 IPC_SYNC_MESSAGE_CONTROL1_1(AppCacheMsg_GetStatus,
2075 int /* host_id */, 2076 int /* host_id */,
2076 appcache::Status) 2077 appcache::Status)
2077 2078
2078 // Initiates an update of the appcache associated with host_id. 2079 // Initiates an update of the appcache associated with host_id.
2079 IPC_SYNC_MESSAGE_CONTROL1_1(AppCacheMsg_StartUpdate, 2080 IPC_SYNC_MESSAGE_CONTROL1_1(AppCacheMsg_StartUpdate,
2080 int /* host_id */, 2081 int /* host_id */,
2081 bool /* success */) 2082 bool /* success */)
2082 2083
2083 // Swaps a new pending appcache, if there is one, into use for host_id. 2084 // Swaps a new pending appcache, if there is one, into use for host_id.
2084 IPC_SYNC_MESSAGE_CONTROL1_1(AppCacheMsg_SwapCache, 2085 IPC_SYNC_MESSAGE_CONTROL1_1(AppCacheMsg_SwapCache,
2085 int /* host_id */, 2086 int /* host_id */,
2086 bool /* success */) 2087 bool /* success */)
2087 2088
2088 // Gets resource list from appcache synchronously. 2089 // Gets resource list from appcache synchronously.
2089 IPC_SYNC_MESSAGE_CONTROL1_1(AppCacheMsg_GetResourceList, 2090 IPC_SYNC_MESSAGE_CONTROL1_1(AppCacheMsg_GetResourceList,
2090 int /* host_id in*/, 2091 int /* host_id in*/,
2091 std::vector<appcache::AppCacheResourceInfo> 2092 std::vector<appcache::AppCacheResourceInfo>
2092 /* resources out */) 2093 /* resources out */)
2093 2094
2094 // Queries the browser for AutoFill suggestions for a form input field. 2095 // Queries the browser for AutoFill suggestions for a form input field.
2095 IPC_MESSAGE_ROUTED3(ViewHostMsg_QueryFormFieldAutoFill, 2096 IPC_MESSAGE_ROUTED3(ViewHostMsg_QueryFormFieldAutoFill,
2096 int /* id of this message */, 2097 int /* id of this message */,
2097 webkit_glue::FormData /* the form */, 2098 webkit_glue::FormData /* the form */,
2098 webkit_glue::FormField /* the form field */) 2099 webkit_glue::FormField /* the form field */)
2099 2100
2100 // Sent when the popup with AutoFill suggestions for a form is shown. 2101 // Sent when the popup with AutoFill suggestions for a form is shown.
2101 IPC_MESSAGE_ROUTED0(ViewHostMsg_DidShowAutoFillSuggestions) 2102 IPC_MESSAGE_ROUTED0(ViewHostMsg_DidShowAutoFillSuggestions)
2102 2103
2103 // Instructs the browser to fill in the values for a form using AutoFill 2104 // Instructs the browser to fill in the values for a form using AutoFill
2104 // profile data. 2105 // profile data.
2105 IPC_MESSAGE_ROUTED4(ViewHostMsg_FillAutoFillFormData, 2106 IPC_MESSAGE_ROUTED4(ViewHostMsg_FillAutoFillFormData,
2106 int /* id of this message */, 2107 int /* id of this message */,
2107 webkit_glue::FormData /* the form */, 2108 webkit_glue::FormData /* the form */,
2108 webkit_glue::FormField /* the form field */, 2109 webkit_glue::FormField /* the form field */,
2109 int /* profile unique ID */) 2110 int /* profile unique ID */)
2110 2111
2111 // Sent when a form is previewed or filled with AutoFill suggestions. 2112 // Sent when a form is previewed or filled with AutoFill suggestions.
2112 IPC_MESSAGE_ROUTED0(ViewHostMsg_DidFillAutoFillFormData) 2113 IPC_MESSAGE_ROUTED0(ViewHostMsg_DidFillAutoFillFormData)
2113 2114
2114 // Instructs the browser to remove the specified Autocomplete entry from the 2115 // Instructs the browser to remove the specified Autocomplete entry from the
2115 // database. 2116 // database.
2116 IPC_MESSAGE_ROUTED2(ViewHostMsg_RemoveAutocompleteEntry, 2117 IPC_MESSAGE_ROUTED2(ViewHostMsg_RemoveAutocompleteEntry,
2117 string16 /* field name */, 2118 string16 /* field name */,
2118 string16 /* value */) 2119 string16 /* value */)
2119 2120
2120 // Instructs the browser to show the AutoFill dialog. 2121 // Instructs the browser to show the AutoFill dialog.
2121 IPC_MESSAGE_ROUTED0(ViewHostMsg_ShowAutoFillDialog) 2122 IPC_MESSAGE_ROUTED0(ViewHostMsg_ShowAutoFillDialog)
2122 2123
2123 // Get the list of proxies to use for |url|, as a semicolon delimited list 2124 // Get the list of proxies to use for |url|, as a semicolon delimited list
2124 // of "<TYPE> <HOST>:<PORT>" | "DIRECT". See also 2125 // of "<TYPE> <HOST>:<PORT>" | "DIRECT". See also
2125 // PluginProcessHostMsg_ResolveProxy which does the same thing. 2126 // PluginProcessHostMsg_ResolveProxy which does the same thing.
2126 IPC_SYNC_MESSAGE_CONTROL1_2(ViewHostMsg_ResolveProxy, 2127 IPC_SYNC_MESSAGE_CONTROL1_2(ViewHostMsg_ResolveProxy,
2127 GURL /* url */, 2128 GURL /* url */,
2128 int /* network error */, 2129 int /* network error */,
2129 std::string /* proxy list */) 2130 std::string /* proxy list */)
2130 2131
2131 // Request that got sent to browser for creating an audio output stream 2132 // Request that got sent to browser for creating an audio output stream
2132 IPC_MESSAGE_ROUTED3(ViewHostMsg_CreateAudioStream, 2133 IPC_MESSAGE_ROUTED3(ViewHostMsg_CreateAudioStream,
2133 int /* stream_id */, 2134 int /* stream_id */,
2134 ViewHostMsg_Audio_CreateStream_Params, 2135 ViewHostMsg_Audio_CreateStream_Params,
2135 bool /* low-latency */) 2136 bool /* low-latency */)
2136 2137
2137 // Tell the browser the audio buffer prepared for stream 2138 // Tell the browser the audio buffer prepared for stream
2138 // (render_view_id, stream_id) is filled and is ready to be consumed. 2139 // (render_view_id, stream_id) is filled and is ready to be consumed.
2139 IPC_MESSAGE_ROUTED2(ViewHostMsg_NotifyAudioPacketReady, 2140 IPC_MESSAGE_ROUTED2(ViewHostMsg_NotifyAudioPacketReady,
2140 int /* stream_id */, 2141 int /* stream_id */,
2141 uint32 /* packet size */) 2142 uint32 /* packet size */)
2142 2143
2143 // Start buffering and play the audio stream specified by 2144 // Start buffering and play the audio stream specified by
2144 // (render_view_id, stream_id). 2145 // (render_view_id, stream_id).
2145 IPC_MESSAGE_ROUTED1(ViewHostMsg_PlayAudioStream, 2146 IPC_MESSAGE_ROUTED1(ViewHostMsg_PlayAudioStream,
2146 int /* stream_id */) 2147 int /* stream_id */)
2147 2148
2148 // Pause the audio stream specified by (render_view_id, stream_id). 2149 // Pause the audio stream specified by (render_view_id, stream_id).
2149 IPC_MESSAGE_ROUTED1(ViewHostMsg_PauseAudioStream, 2150 IPC_MESSAGE_ROUTED1(ViewHostMsg_PauseAudioStream,
2150 int /* stream_id */) 2151 int /* stream_id */)
2151 2152
2152 // Discard all buffered audio data for the specified audio stream. 2153 // Discard all buffered audio data for the specified audio stream.
2153 IPC_MESSAGE_ROUTED1(ViewHostMsg_FlushAudioStream, 2154 IPC_MESSAGE_ROUTED1(ViewHostMsg_FlushAudioStream,
2154 int /* stream_id */) 2155 int /* stream_id */)
2155 2156
2156 // Close an audio stream specified by (render_view_id, stream_id). 2157 // Close an audio stream specified by (render_view_id, stream_id).
2157 IPC_MESSAGE_ROUTED1(ViewHostMsg_CloseAudioStream, 2158 IPC_MESSAGE_ROUTED1(ViewHostMsg_CloseAudioStream,
2158 int /* stream_id */) 2159 int /* stream_id */)
2159 2160
2160 // Get audio volume of the stream specified by (render_view_id, stream_id). 2161 // Get audio volume of the stream specified by (render_view_id, stream_id).
2161 IPC_MESSAGE_ROUTED1(ViewHostMsg_GetAudioVolume, 2162 IPC_MESSAGE_ROUTED1(ViewHostMsg_GetAudioVolume,
2162 int /* stream_id */) 2163 int /* stream_id */)
2163 2164
2164 // Set audio volume of the stream specified by (render_view_id, stream_id). 2165 // Set audio volume of the stream specified by (render_view_id, stream_id).
2165 // TODO(hclam): change this to vector if we have channel numbers other than 2. 2166 // TODO(hclam): change this to vector if we have channel numbers other than 2.
2166 IPC_MESSAGE_ROUTED2(ViewHostMsg_SetAudioVolume, 2167 IPC_MESSAGE_ROUTED2(ViewHostMsg_SetAudioVolume,
2167 int /* stream_id */, 2168 int /* stream_id */,
2168 double /* volume */) 2169 double /* volume */)
2169 2170
2170 // A renderer sends this message when an extension process starts an API 2171 // A renderer sends this message when an extension process starts an API
2171 // request. The browser will always respond with a ViewMsg_ExtensionResponse. 2172 // request. The browser will always respond with a ViewMsg_ExtensionResponse.
2172 IPC_MESSAGE_ROUTED1(ViewHostMsg_ExtensionRequest, 2173 IPC_MESSAGE_ROUTED1(ViewHostMsg_ExtensionRequest,
2173 ViewHostMsg_DomMessage_Params) 2174 ViewHostMsg_DomMessage_Params)
2174 2175
2175 // Notify the browser that the given extension added a listener to an event. 2176 // Notify the browser that the given extension added a listener to an event.
2176 IPC_MESSAGE_CONTROL2(ViewHostMsg_ExtensionAddListener, 2177 IPC_MESSAGE_CONTROL2(ViewHostMsg_ExtensionAddListener,
2177 std::string /* extension_id */, 2178 std::string /* extension_id */,
2178 std::string /* name */) 2179 std::string /* name */)
2179 2180
2180 // Notify the browser that the given extension removed a listener from an 2181 // Notify the browser that the given extension removed a listener from an
2181 // event. 2182 // event.
2182 IPC_MESSAGE_CONTROL2(ViewHostMsg_ExtensionRemoveListener, 2183 IPC_MESSAGE_CONTROL2(ViewHostMsg_ExtensionRemoveListener,
2183 std::string /* extension_id */, 2184 std::string /* extension_id */,
2184 std::string /* name */) 2185 std::string /* name */)
2185 2186
2186 #if defined(OS_MACOSX) 2187 #if defined(OS_MACOSX)
2187 // On OSX, we cannot allocated shared memory from within the sandbox, so 2188 // On OSX, we cannot allocated shared memory from within the sandbox, so
2188 // this call exists for the renderer to ask the browser to allocate memory 2189 // this call exists for the renderer to ask the browser to allocate memory
2189 // on its behalf. We return a file descriptor to the POSIX shared memory. 2190 // on its behalf. We return a file descriptor to the POSIX shared memory.
2190 // If the |cache_in_browser| flag is |true|, then a copy of the shmem is kept 2191 // If the |cache_in_browser| flag is |true|, then a copy of the shmem is kept
2191 // by the browser, and it is the caller's repsonsibility to send a 2192 // by the browser, and it is the caller's repsonsibility to send a
2192 // ViewHostMsg_FreeTransportDIB message in order to release the cached shmem. 2193 // ViewHostMsg_FreeTransportDIB message in order to release the cached shmem.
2193 // In all cases, the caller is responsible for deleting the resulting 2194 // In all cases, the caller is responsible for deleting the resulting
2194 // TransportDIB. 2195 // TransportDIB.
2195 IPC_SYNC_MESSAGE_CONTROL2_1(ViewHostMsg_AllocTransportDIB, 2196 IPC_SYNC_MESSAGE_CONTROL2_1(ViewHostMsg_AllocTransportDIB,
2196 size_t, /* bytes requested */ 2197 size_t, /* bytes requested */
2197 bool, /* cache in the browser */ 2198 bool, /* cache in the browser */
2198 TransportDIB::Handle /* DIB */) 2199 TransportDIB::Handle /* DIB */)
2199 2200
2200 // Since the browser keeps handles to the allocated transport DIBs, this 2201 // Since the browser keeps handles to the allocated transport DIBs, this
2201 // message is sent to tell the browser that it may release them when the 2202 // message is sent to tell the browser that it may release them when the
2202 // renderer is finished with them. 2203 // renderer is finished with them.
2203 IPC_MESSAGE_CONTROL1(ViewHostMsg_FreeTransportDIB, 2204 IPC_MESSAGE_CONTROL1(ViewHostMsg_FreeTransportDIB,
2204 TransportDIB::Id /* DIB id */) 2205 TransportDIB::Id /* DIB id */)
2205 2206
2206 // Instructs the browser to start or stop plugin IME. 2207 // Instructs the browser to start or stop plugin IME.
2207 IPC_MESSAGE_ROUTED2(ViewHostMsg_SetPluginImeEnabled, 2208 IPC_MESSAGE_ROUTED2(ViewHostMsg_SetPluginImeEnabled,
2208 bool, /* enabled */ 2209 bool, /* enabled */
2209 int /* plugin_id */) 2210 int /* plugin_id */)
2210 2211
2211 //--------------------------------------------------------------------------- 2212 //---------------------------------------------------------------------------
2212 // Messages related to accelerated plugins 2213 // Messages related to accelerated plugins
2213 2214
2214 // This is sent from the renderer to the browser to allocate a fake 2215 // This is sent from the renderer to the browser to allocate a fake
2215 // PluginWindowHandle on the browser side which is used to identify 2216 // PluginWindowHandle on the browser side which is used to identify
2216 // the plugin to the browser later when backing store is allocated 2217 // the plugin to the browser later when backing store is allocated
2217 // or reallocated. |opaque| indicates whether the plugin's output is 2218 // or reallocated. |opaque| indicates whether the plugin's output is
2218 // considered to be opaque, as opposed to translucent. This message 2219 // considered to be opaque, as opposed to translucent. This message
2219 // is reused for rendering the accelerated compositor's output. 2220 // is reused for rendering the accelerated compositor's output.
2220 // |root| indicates whether the output is supposed to cover the 2221 // |root| indicates whether the output is supposed to cover the
2221 // entire window. 2222 // entire window.
2222 IPC_SYNC_MESSAGE_ROUTED2_1(ViewHostMsg_AllocateFakePluginWindowHandle, 2223 IPC_SYNC_MESSAGE_ROUTED2_1(ViewHostMsg_AllocateFakePluginWindowHandle,
2223 bool /* opaque */, 2224 bool /* opaque */,
2224 bool /* root */, 2225 bool /* root */,
2225 gfx::PluginWindowHandle /* id */) 2226 gfx::PluginWindowHandle /* id */)
2226 2227
2227 // Destroys a fake window handle previously allocated using 2228 // Destroys a fake window handle previously allocated using
2228 // AllocateFakePluginWindowHandle. 2229 // AllocateFakePluginWindowHandle.
2229 IPC_MESSAGE_ROUTED1(ViewHostMsg_DestroyFakePluginWindowHandle, 2230 IPC_MESSAGE_ROUTED1(ViewHostMsg_DestroyFakePluginWindowHandle,
2230 gfx::PluginWindowHandle /* id */) 2231 gfx::PluginWindowHandle /* id */)
2231 2232
2232 // This message, used on Mac OS X 10.5 and earlier (no IOSurface support), 2233 // This message, used on Mac OS X 10.5 and earlier (no IOSurface support),
2233 // is sent from the renderer to the browser on behalf of the plug-in 2234 // is sent from the renderer to the browser on behalf of the plug-in
2234 // to indicate that a new backing store was allocated for that plug-in 2235 // to indicate that a new backing store was allocated for that plug-in
2235 // instance. 2236 // instance.
2236 IPC_MESSAGE_ROUTED4(ViewHostMsg_AcceleratedSurfaceSetTransportDIB, 2237 IPC_MESSAGE_ROUTED4(ViewHostMsg_AcceleratedSurfaceSetTransportDIB,
2237 gfx::PluginWindowHandle /* window */, 2238 gfx::PluginWindowHandle /* window */,
2238 int32 /* width */, 2239 int32 /* width */,
2239 int32 /* height */, 2240 int32 /* height */,
2240 TransportDIB::Handle /* handle for the DIB */) 2241 TransportDIB::Handle /* handle for the DIB */)
2241 2242
2242 // This message, used on Mac OS X 10.6 and later (where IOSurface is 2243 // This message, used on Mac OS X 10.6 and later (where IOSurface is
2243 // supported), is sent from the renderer to the browser on behalf of the 2244 // supported), is sent from the renderer to the browser on behalf of the
2244 // plug-in to indicate that a new backing store was allocated for that 2245 // plug-in to indicate that a new backing store was allocated for that
2245 // plug-in instance. 2246 // plug-in instance.
2246 // 2247 //
2247 // NOTE: the original intent was to pass a mach port as the IOSurface 2248 // NOTE: the original intent was to pass a mach port as the IOSurface
2248 // identifier but it looks like that will be a lot of work. For now we pass an 2249 // identifier but it looks like that will be a lot of work. For now we pass an
2249 // ID from IOSurfaceGetID. 2250 // ID from IOSurfaceGetID.
2250 IPC_MESSAGE_ROUTED4(ViewHostMsg_AcceleratedSurfaceSetIOSurface, 2251 IPC_MESSAGE_ROUTED4(ViewHostMsg_AcceleratedSurfaceSetIOSurface,
2251 gfx::PluginWindowHandle /* window */, 2252 gfx::PluginWindowHandle /* window */,
2252 int32 /* width */, 2253 int32 /* width */,
2253 int32 /* height */, 2254 int32 /* height */,
2254 uint64 /* surface_id */) 2255 uint64 /* surface_id */)
2255 2256
2256 // This message notifies the browser process that the plug-in 2257 // This message notifies the browser process that the plug-in
2257 // swapped the buffers associated with the given "window", which 2258 // swapped the buffers associated with the given "window", which
2258 // should cause the browser to redraw the various plug-ins' 2259 // should cause the browser to redraw the various plug-ins'
2259 // contents. 2260 // contents.
2260 IPC_MESSAGE_ROUTED2(ViewHostMsg_AcceleratedSurfaceBuffersSwapped, 2261 IPC_MESSAGE_ROUTED2(ViewHostMsg_AcceleratedSurfaceBuffersSwapped,
2261 gfx::PluginWindowHandle /* window */, 2262 gfx::PluginWindowHandle /* window */,
2262 uint64 /* surface_id */) 2263 uint64 /* surface_id */)
2263 #endif 2264 #endif
2264 2265
2265 // A renderer sends this to the browser process when it wants to create a 2266 // A renderer sends this to the browser process when it wants to create a
2266 // worker. The browser will create the worker process if necessary, and 2267 // worker. The browser will create the worker process if necessary, and
2267 // will return the route id on success. On error returns MSG_ROUTING_NONE. 2268 // will return the route id on success. On error returns MSG_ROUTING_NONE.
2268 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_CreateWorker, 2269 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_CreateWorker,
2269 ViewHostMsg_CreateWorker_Params, 2270 ViewHostMsg_CreateWorker_Params,
2270 int /* route_id */) 2271 int /* route_id */)
2271 2272
2272 // This message is sent to the browser to see if an instance of this shared 2273 // This message is sent to the browser to see if an instance of this shared
2273 // worker already exists. If so, it returns exists == true. If a 2274 // worker already exists. If so, it returns exists == true. If a
2274 // non-empty name is passed, also validates that the url matches the url of 2275 // non-empty name is passed, also validates that the url matches the url of
2275 // the existing worker. If a matching worker is found, the passed-in 2276 // the existing worker. If a matching worker is found, the passed-in
2276 // document_id is associated with that worker, to ensure that the worker 2277 // document_id is associated with that worker, to ensure that the worker
2277 // stays alive until the document is detached. 2278 // stays alive until the document is detached.
2278 // The route_id returned can be used to forward messages to the worker via 2279 // The route_id returned can be used to forward messages to the worker via
2279 // ForwardToWorker if it exists, otherwise it should be passed in to any 2280 // ForwardToWorker if it exists, otherwise it should be passed in to any
2280 // future call to CreateWorker to avoid creating duplicate workers. 2281 // future call to CreateWorker to avoid creating duplicate workers.
2281 IPC_SYNC_MESSAGE_CONTROL1_3(ViewHostMsg_LookupSharedWorker, 2282 IPC_SYNC_MESSAGE_CONTROL1_3(ViewHostMsg_LookupSharedWorker,
2282 ViewHostMsg_CreateWorker_Params, 2283 ViewHostMsg_CreateWorker_Params,
2283 bool /* exists */, 2284 bool /* exists */,
2284 int /* route_id */, 2285 int /* route_id */,
2285 bool /* url_mismatch */) 2286 bool /* url_mismatch */)
2286 2287
2287 // A renderer sends this to the browser process when a document has been 2288 // A renderer sends this to the browser process when a document has been
2288 // detached. The browser will use this to constrain the lifecycle of worker 2289 // detached. The browser will use this to constrain the lifecycle of worker
2289 // processes (SharedWorkers are shut down when their last associated document 2290 // processes (SharedWorkers are shut down when their last associated document
2290 // is detached). 2291 // is detached).
2291 IPC_MESSAGE_CONTROL1(ViewHostMsg_DocumentDetached, 2292 IPC_MESSAGE_CONTROL1(ViewHostMsg_DocumentDetached,
2292 uint64 /* document_id */) 2293 uint64 /* document_id */)
2293 2294
2294 // A message sent to the browser on behalf of a renderer which wants to show 2295 // A message sent to the browser on behalf of a renderer which wants to show
2295 // a desktop notification. 2296 // a desktop notification.
2296 IPC_MESSAGE_ROUTED1(ViewHostMsg_ShowDesktopNotification, 2297 IPC_MESSAGE_ROUTED1(ViewHostMsg_ShowDesktopNotification,
2297 ViewHostMsg_ShowNotification_Params) 2298 ViewHostMsg_ShowNotification_Params)
2298 IPC_MESSAGE_ROUTED1(ViewHostMsg_CancelDesktopNotification, 2299 IPC_MESSAGE_ROUTED1(ViewHostMsg_CancelDesktopNotification,
2299 int /* notification_id */ ) 2300 int /* notification_id */ )
2300 IPC_MESSAGE_ROUTED2(ViewHostMsg_RequestNotificationPermission, 2301 IPC_MESSAGE_ROUTED2(ViewHostMsg_RequestNotificationPermission,
2301 GURL /* origin */, 2302 GURL /* origin */,
2302 int /* callback_context */) 2303 int /* callback_context */)
2303 IPC_SYNC_MESSAGE_ROUTED1_1(ViewHostMsg_CheckNotificationPermission, 2304 IPC_SYNC_MESSAGE_ROUTED1_1(ViewHostMsg_CheckNotificationPermission,
2304 GURL /* source page */, 2305 GURL /* source page */,
2305 int /* permission_result */) 2306 int /* permission_result */)
2306 2307
2307 // Sent if the worker object has sent a ViewHostMsg_CreateDedicatedWorker 2308 // Sent if the worker object has sent a ViewHostMsg_CreateDedicatedWorker
2308 // message and not received a ViewMsg_WorkerCreated reply, but in the 2309 // message and not received a ViewMsg_WorkerCreated reply, but in the
2309 // mean time it's destroyed. This tells the browser to not create the queued 2310 // mean time it's destroyed. This tells the browser to not create the queued
2310 // worker. 2311 // worker.
2311 IPC_MESSAGE_CONTROL1(ViewHostMsg_CancelCreateDedicatedWorker, 2312 IPC_MESSAGE_CONTROL1(ViewHostMsg_CancelCreateDedicatedWorker,
2312 int /* route_id */) 2313 int /* route_id */)
2313 2314
2314 // Wraps an IPC message that's destined to the worker on the renderer->browser 2315 // Wraps an IPC message that's destined to the worker on the renderer->browser
2315 // hop. 2316 // hop.
2316 IPC_MESSAGE_CONTROL1(ViewHostMsg_ForwardToWorker, 2317 IPC_MESSAGE_CONTROL1(ViewHostMsg_ForwardToWorker,
2317 IPC::Message /* message */) 2318 IPC::Message /* message */)
2318 2319
2319 // Open a channel to all listening contexts owned by the extension with 2320 // Open a channel to all listening contexts owned by the extension with
2320 // the given ID. This always returns a valid port ID which can be used for 2321 // the given ID. This always returns a valid port ID which can be used for
2321 // sending messages. If an error occurred, the opener will be notified 2322 // sending messages. If an error occurred, the opener will be notified
2322 // asynchronously. 2323 // asynchronously.
2323 IPC_SYNC_MESSAGE_CONTROL4_1(ViewHostMsg_OpenChannelToExtension, 2324 IPC_SYNC_MESSAGE_CONTROL4_1(ViewHostMsg_OpenChannelToExtension,
2324 int /* routing_id */, 2325 int /* routing_id */,
2325 std::string /* source_extension_id */, 2326 std::string /* source_extension_id */,
2326 std::string /* target_extension_id */, 2327 std::string /* target_extension_id */,
2327 std::string /* channel_name */, 2328 std::string /* channel_name */,
2328 int /* port_id */) 2329 int /* port_id */)
2329 2330
2330 // Get a port handle to the given tab. The handle can be used for sending 2331 // Get a port handle to the given tab. The handle can be used for sending
2331 // messages to the extension. 2332 // messages to the extension.
2332 IPC_SYNC_MESSAGE_CONTROL4_1(ViewHostMsg_OpenChannelToTab, 2333 IPC_SYNC_MESSAGE_CONTROL4_1(ViewHostMsg_OpenChannelToTab,
2333 int /* routing_id */, 2334 int /* routing_id */,
2334 int /* tab_id */, 2335 int /* tab_id */,
2335 std::string /* extension_id */, 2336 std::string /* extension_id */,
2336 std::string /* channel_name */, 2337 std::string /* channel_name */,
2337 int /* port_id */) 2338 int /* port_id */)
2338 2339
2339 // Send a message to an extension process. The handle is the value returned 2340 // Send a message to an extension process. The handle is the value returned
2340 // by ViewHostMsg_OpenChannelTo*. 2341 // by ViewHostMsg_OpenChannelTo*.
2341 IPC_MESSAGE_ROUTED2(ViewHostMsg_ExtensionPostMessage, 2342 IPC_MESSAGE_ROUTED2(ViewHostMsg_ExtensionPostMessage,
2342 int /* port_id */, 2343 int /* port_id */,
2343 std::string /* message */) 2344 std::string /* message */)
2344 2345
2345 // Send a message to an extension process. The handle is the value returned 2346 // Send a message to an extension process. The handle is the value returned
2346 // by ViewHostMsg_OpenChannelTo*. 2347 // by ViewHostMsg_OpenChannelTo*.
2347 IPC_MESSAGE_CONTROL1(ViewHostMsg_ExtensionCloseChannel, 2348 IPC_MESSAGE_CONTROL1(ViewHostMsg_ExtensionCloseChannel,
2348 int /* port_id */) 2349 int /* port_id */)
2349 2350
2350 // Sent to notify the browser about renderer accessibility notifications. 2351 // Sent to notify the browser about renderer accessibility notifications.
2351 // The browser responds with a ViewMsg_AccessibilityNotifications_ACK. 2352 // The browser responds with a ViewMsg_AccessibilityNotifications_ACK.
2352 IPC_MESSAGE_ROUTED1( 2353 IPC_MESSAGE_ROUTED1(
2353 ViewHostMsg_AccessibilityNotifications, 2354 ViewHostMsg_AccessibilityNotifications,
2354 std::vector<ViewHostMsg_AccessibilityNotification_Params>) 2355 std::vector<ViewHostMsg_AccessibilityNotification_Params>)
2355 2356
2356 // Message sent from the renderer to the browser to request that the browser 2357 // Message sent from the renderer to the browser to request that the browser
2357 // close all sockets. Used for debugging/testing. 2358 // close all sockets. Used for debugging/testing.
2358 IPC_MESSAGE_CONTROL0(ViewHostMsg_CloseCurrentConnections) 2359 IPC_MESSAGE_CONTROL0(ViewHostMsg_CloseCurrentConnections)
2359 2360
2360 // Message sent from the renderer to the browser to request that the browser 2361 // Message sent from the renderer to the browser to request that the browser
2361 // enable or disable the cache. Used for debugging/testing. 2362 // enable or disable the cache. Used for debugging/testing.
2362 IPC_MESSAGE_CONTROL1(ViewHostMsg_SetCacheMode, 2363 IPC_MESSAGE_CONTROL1(ViewHostMsg_SetCacheMode,
2363 bool /* enabled */) 2364 bool /* enabled */)
2364 2365
2365 // Message sent from the renderer to the browser to request that the browser 2366 // Message sent from the renderer to the browser to request that the browser
2366 // clear the cache. Used for debugging/testing. 2367 // clear the cache. Used for debugging/testing.
2367 IPC_SYNC_MESSAGE_CONTROL0_1(ViewHostMsg_ClearCache, 2368 IPC_SYNC_MESSAGE_CONTROL0_1(ViewHostMsg_ClearCache,
2368 int /* result */) 2369 int /* result */)
2369 2370
2370 // Message sent from the renderer to the browser to request that the browser 2371 // Message sent from the renderer to the browser to request that the browser
2371 // enable or disable spdy. Used for debugging/testing/benchmarking. 2372 // enable or disable spdy. Used for debugging/testing/benchmarking.
2372 IPC_MESSAGE_CONTROL1(ViewHostMsg_EnableSpdy, 2373 IPC_MESSAGE_CONTROL1(ViewHostMsg_EnableSpdy,
2373 bool /* enable */) 2374 bool /* enable */)
2374 2375
2375 // Message sent from the renderer to the browser to request that the browser 2376 // Message sent from the renderer to the browser to request that the browser
2376 // cache |data| associated with |url|. 2377 // cache |data| associated with |url|.
2377 IPC_MESSAGE_CONTROL3(ViewHostMsg_DidGenerateCacheableMetadata, 2378 IPC_MESSAGE_CONTROL3(ViewHostMsg_DidGenerateCacheableMetadata,
2378 GURL /* url */, 2379 GURL /* url */,
2379 double /* expected_response_time */, 2380 double /* expected_response_time */,
2380 std::vector<char> /* data */) 2381 std::vector<char> /* data */)
2381 2382
2382 // Get the storage area id for a particular origin within a namespace. 2383 // Get the storage area id for a particular origin within a namespace.
2383 IPC_SYNC_MESSAGE_CONTROL2_1(ViewHostMsg_DOMStorageStorageAreaId, 2384 IPC_SYNC_MESSAGE_CONTROL2_1(ViewHostMsg_DOMStorageStorageAreaId,
2384 int64 /* namespace_id */, 2385 int64 /* namespace_id */,
2385 string16 /* origin */, 2386 string16 /* origin */,
2386 int64 /* storage_area_id */) 2387 int64 /* storage_area_id */)
2387 2388
2388 // Get the length of a storage area. 2389 // Get the length of a storage area.
2389 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_DOMStorageLength, 2390 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_DOMStorageLength,
2390 int64 /* storage_area_id */, 2391 int64 /* storage_area_id */,
2391 unsigned /* length */) 2392 unsigned /* length */)
2392 2393
2393 // Get a the ith key within a storage area. 2394 // Get a the ith key within a storage area.
2394 IPC_SYNC_MESSAGE_CONTROL2_1(ViewHostMsg_DOMStorageKey, 2395 IPC_SYNC_MESSAGE_CONTROL2_1(ViewHostMsg_DOMStorageKey,
2395 int64 /* storage_area_id */, 2396 int64 /* storage_area_id */,
2396 unsigned /* index */, 2397 unsigned /* index */,
2397 NullableString16 /* key */) 2398 NullableString16 /* key */)
2398 2399
2399 // Get a value based on a key from a storage area. 2400 // Get a value based on a key from a storage area.
2400 IPC_SYNC_MESSAGE_CONTROL2_1(ViewHostMsg_DOMStorageGetItem, 2401 IPC_SYNC_MESSAGE_CONTROL2_1(ViewHostMsg_DOMStorageGetItem,
2401 int64 /* storage_area_id */, 2402 int64 /* storage_area_id */,
2402 string16 /* key */, 2403 string16 /* key */,
2403 NullableString16 /* value */) 2404 NullableString16 /* value */)
2404 2405
2405 // Set a value that's associated with a key in a storage area. 2406 // Set a value that's associated with a key in a storage area.
2406 IPC_SYNC_MESSAGE_ROUTED4_2(ViewHostMsg_DOMStorageSetItem, 2407 IPC_SYNC_MESSAGE_ROUTED4_2(ViewHostMsg_DOMStorageSetItem,
2407 int64 /* storage_area_id */, 2408 int64 /* storage_area_id */,
2408 string16 /* key */, 2409 string16 /* key */,
2409 string16 /* value */, 2410 string16 /* value */,
2410 GURL /* url */, 2411 GURL /* url */,
2411 WebKit::WebStorageArea::Result /* result */, 2412 WebKit::WebStorageArea::Result /* result */,
2412 NullableString16 /* old_value */) 2413 NullableString16 /* old_value */)
2413 2414
2414 // Remove the value associated with a key in a storage area. 2415 // Remove the value associated with a key in a storage area.
2415 IPC_SYNC_MESSAGE_CONTROL3_1(ViewHostMsg_DOMStorageRemoveItem, 2416 IPC_SYNC_MESSAGE_CONTROL3_1(ViewHostMsg_DOMStorageRemoveItem,
2416 int64 /* storage_area_id */, 2417 int64 /* storage_area_id */,
2417 string16 /* key */, 2418 string16 /* key */,
2418 GURL /* url */, 2419 GURL /* url */,
2419 NullableString16 /* old_value */) 2420 NullableString16 /* old_value */)
2420 2421
2421 // Clear the storage area. 2422 // Clear the storage area.
2422 IPC_SYNC_MESSAGE_CONTROL2_1(ViewHostMsg_DOMStorageClear, 2423 IPC_SYNC_MESSAGE_CONTROL2_1(ViewHostMsg_DOMStorageClear,
2423 int64 /* storage_area_id */, 2424 int64 /* storage_area_id */,
2424 GURL /* url */, 2425 GURL /* url */,
2425 bool /* something_cleared */) 2426 bool /* something_cleared */)
2426 2427
2427 // WebIDBCursor::direction() message. 2428 // WebIDBCursor::direction() message.
2428 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_IDBCursorDirection, 2429 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_IDBCursorDirection,
2429 int32, /* idb_cursor_id */ 2430 int32, /* idb_cursor_id */
2430 int32 /* direction */) 2431 int32 /* direction */)
2431 2432
2432 // WebIDBCursor::key() message. 2433 // WebIDBCursor::key() message.
2433 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_IDBCursorKey, 2434 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_IDBCursorKey,
2434 int32, /* idb_cursor_id */ 2435 int32, /* idb_cursor_id */
2435 IndexedDBKey) 2436 IndexedDBKey)
2436 2437
2437 // WebIDBCursor::value() message. 2438 // WebIDBCursor::value() message.
2438 IPC_SYNC_MESSAGE_CONTROL1_2(ViewHostMsg_IDBCursorValue, 2439 IPC_SYNC_MESSAGE_CONTROL1_2(ViewHostMsg_IDBCursorValue,
2439 int32, /* idb_cursor_id */ 2440 int32, /* idb_cursor_id */
2440 SerializedScriptValue, /* script_value */ 2441 SerializedScriptValue, /* script_value */
2441 IndexedDBKey /* key */) 2442 IndexedDBKey /* key */)
2442 2443
2443 // WebIDBCursor::update() message. 2444 // WebIDBCursor::update() message.
2444 IPC_SYNC_MESSAGE_CONTROL3_1(ViewHostMsg_IDBCursorUpdate, 2445 IPC_SYNC_MESSAGE_CONTROL3_1(ViewHostMsg_IDBCursorUpdate,
2445 int32, /* idb_cursor_id */ 2446 int32, /* idb_cursor_id */
2446 int32, /* response_id */ 2447 int32, /* response_id */
2447 SerializedScriptValue, /* value */ 2448 SerializedScriptValue, /* value */
2448 WebKit::WebExceptionCode /* ec */) 2449 WebKit::WebExceptionCode /* ec */)
2449 2450
2450 // WebIDBCursor::continue() message. 2451 // WebIDBCursor::continue() message.
2451 IPC_SYNC_MESSAGE_CONTROL3_1(ViewHostMsg_IDBCursorContinue, 2452 IPC_SYNC_MESSAGE_CONTROL3_1(ViewHostMsg_IDBCursorContinue,
2452 int32, /* idb_cursor_id */ 2453 int32, /* idb_cursor_id */
2453 int32, /* response_id */ 2454 int32, /* response_id */
2454 IndexedDBKey, /* key */ 2455 IndexedDBKey, /* key */
2455 WebKit::WebExceptionCode /* ec */) 2456 WebKit::WebExceptionCode /* ec */)
2456 2457
2457 // WebIDBCursor::remove() message. 2458 // WebIDBCursor::remove() message.
2458 IPC_SYNC_MESSAGE_CONTROL2_1(ViewHostMsg_IDBCursorDelete, 2459 IPC_SYNC_MESSAGE_CONTROL2_1(ViewHostMsg_IDBCursorDelete,
2459 int32, /* idb_cursor_id */ 2460 int32, /* idb_cursor_id */
2460 int32, /* response_id */ 2461 int32, /* response_id */
2461 WebKit::WebExceptionCode /* ec */) 2462 WebKit::WebExceptionCode /* ec */)
2462 2463
2463 // WebIDBFactory::open() message. 2464 // WebIDBFactory::open() message.
2464 IPC_MESSAGE_CONTROL1(ViewHostMsg_IDBFactoryOpen, 2465 IPC_MESSAGE_CONTROL1(ViewHostMsg_IDBFactoryOpen,
2465 ViewHostMsg_IDBFactoryOpen_Params) 2466 ViewHostMsg_IDBFactoryOpen_Params)
2466 2467
2467 // WebIDBDatabase::name() message. 2468 // WebIDBDatabase::name() message.
2468 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_IDBDatabaseName, 2469 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_IDBDatabaseName,
2469 int32, /* idb_database_id */ 2470 int32, /* idb_database_id */
2470 string16 /* name */) 2471 string16 /* name */)
2471 2472
2472 // WebIDBDatabase::version() message. 2473 // WebIDBDatabase::version() message.
2473 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_IDBDatabaseVersion, 2474 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_IDBDatabaseVersion,
2474 int32, /* idb_database_id */ 2475 int32, /* idb_database_id */
2475 string16 /* vesion */) 2476 string16 /* vesion */)
2476 2477
2477 // WebIDBDatabase::objectStoreNames() message. 2478 // WebIDBDatabase::objectStoreNames() message.
2478 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_IDBDatabaseObjectStoreNames, 2479 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_IDBDatabaseObjectStoreNames,
2479 int32, /* idb_database_id */ 2480 int32, /* idb_database_id */
2480 std::vector<string16> /* objectStoreNames */) 2481 std::vector<string16> /* objectStoreNames */)
2481 2482
2482 // WebIDBDatabase::createObjectStore() message. 2483 // WebIDBDatabase::createObjectStore() message.
2483 IPC_SYNC_MESSAGE_CONTROL1_2(ViewHostMsg_IDBDatabaseCreateObjectStore, 2484 IPC_SYNC_MESSAGE_CONTROL1_2(ViewHostMsg_IDBDatabaseCreateObjectStore,
2484 ViewHostMsg_IDBDatabaseCreateObjectStore_Params, 2485 ViewHostMsg_IDBDatabaseCreateObjectStore_Params,
2485 int32, /* object_store_id */ 2486 int32, /* object_store_id */
2486 WebKit::WebExceptionCode /* ec */) 2487 WebKit::WebExceptionCode /* ec */)
2487 2488
2488 // WebIDBDatabase::removeObjectStore() message. 2489 // WebIDBDatabase::removeObjectStore() message.
2489 IPC_SYNC_MESSAGE_CONTROL3_1(ViewHostMsg_IDBDatabaseDeleteObjectStore, 2490 IPC_SYNC_MESSAGE_CONTROL3_1(ViewHostMsg_IDBDatabaseDeleteObjectStore,
2490 int32, /* idb_database_id */ 2491 int32, /* idb_database_id */
2491 string16, /* name */ 2492 string16, /* name */
2492 int32, /* transaction_id */ 2493 int32, /* transaction_id */
2493 WebKit::WebExceptionCode /* ec */) 2494 WebKit::WebExceptionCode /* ec */)
2494 2495
2495 // WebIDBDatabase::setVersion() message. 2496 // WebIDBDatabase::setVersion() message.
2496 IPC_SYNC_MESSAGE_CONTROL3_1(ViewHostMsg_IDBDatabaseSetVersion, 2497 IPC_SYNC_MESSAGE_CONTROL3_1(ViewHostMsg_IDBDatabaseSetVersion,
2497 int32, /* idb_database_id */ 2498 int32, /* idb_database_id */
2498 int32, /* response_id */ 2499 int32, /* response_id */
2499 string16, /* version */ 2500 string16, /* version */
2500 WebKit::WebExceptionCode /* ec */) 2501 WebKit::WebExceptionCode /* ec */)
2501 2502
2502 // WebIDBDatabase::transaction() message. 2503 // WebIDBDatabase::transaction() message.
2503 // TODO: make this message async. Have the renderer create a 2504 // TODO: make this message async. Have the renderer create a
2504 // temporary ID and keep a map in the browser process of real 2505 // temporary ID and keep a map in the browser process of real
2505 // IDs to temporary IDs. We can then update the transaction 2506 // IDs to temporary IDs. We can then update the transaction
2506 // to its real ID asynchronously. 2507 // to its real ID asynchronously.
2507 IPC_SYNC_MESSAGE_CONTROL4_2(ViewHostMsg_IDBDatabaseTransaction, 2508 IPC_SYNC_MESSAGE_CONTROL4_2(ViewHostMsg_IDBDatabaseTransaction,
2508 int32, /* idb_database_id */ 2509 int32, /* idb_database_id */
2509 std::vector<string16>, /* object_stores */ 2510 std::vector<string16>, /* object_stores */
2510 int32, /* mode */ 2511 int32, /* mode */
2511 int32, /* timeout */ 2512 int32, /* timeout */
2512 int32, /* idb_transaction_id */ 2513 int32, /* idb_transaction_id */
2513 WebKit::WebExceptionCode /* ec */) 2514 WebKit::WebExceptionCode /* ec */)
2514 2515
2515 // WebIDBDatabase::~WebIDBDatabase() message. 2516 // WebIDBDatabase::~WebIDBDatabase() message.
2516 IPC_MESSAGE_CONTROL1(ViewHostMsg_IDBDatabaseDestroyed, 2517 IPC_MESSAGE_CONTROL1(ViewHostMsg_IDBDatabaseDestroyed,
2517 int32 /* idb_database_id */) 2518 int32 /* idb_database_id */)
2518 2519
2519 // WebIDBIndex::name() message. 2520 // WebIDBIndex::name() message.
2520 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_IDBIndexName, 2521 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_IDBIndexName,
2521 int32, /* idb_index_id */ 2522 int32, /* idb_index_id */
2522 string16 /* name */) 2523 string16 /* name */)
2523 2524
2524 // WebIDBIndex::storeName() message. 2525 // WebIDBIndex::storeName() message.
2525 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_IDBIndexStoreName, 2526 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_IDBIndexStoreName,
2526 int32, /* idb_index_id */ 2527 int32, /* idb_index_id */
2527 string16 /* store_name */) 2528 string16 /* store_name */)
2528 2529
2529 // WebIDBIndex::keyPath() message. 2530 // WebIDBIndex::keyPath() message.
2530 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_IDBIndexKeyPath, 2531 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_IDBIndexKeyPath,
2531 int32, /* idb_index_id */ 2532 int32, /* idb_index_id */
2532 NullableString16 /* key_path */) 2533 NullableString16 /* key_path */)
2533 2534
2534 // WebIDBIndex::unique() message. 2535 // WebIDBIndex::unique() message.
2535 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_IDBIndexUnique, 2536 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_IDBIndexUnique,
2536 int32, /* idb_unique_id */ 2537 int32, /* idb_unique_id */
2537 bool /* unique */) 2538 bool /* unique */)
2538 2539
2539 // WebIDBIndex::openObjectCursor() message. 2540 // WebIDBIndex::openObjectCursor() message.
2540 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_IDBIndexOpenObjectCursor, 2541 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_IDBIndexOpenObjectCursor,
2541 ViewHostMsg_IDBIndexOpenCursor_Params, 2542 ViewHostMsg_IDBIndexOpenCursor_Params,
2542 WebKit::WebExceptionCode /* ec */) 2543 WebKit::WebExceptionCode /* ec */)
2543 2544
2544 // WebIDBIndex::openKeyCursor() message. 2545 // WebIDBIndex::openKeyCursor() message.
2545 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_IDBIndexOpenKeyCursor, 2546 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_IDBIndexOpenKeyCursor,
2546 ViewHostMsg_IDBIndexOpenCursor_Params, 2547 ViewHostMsg_IDBIndexOpenCursor_Params,
2547 WebKit::WebExceptionCode /* ec */) 2548 WebKit::WebExceptionCode /* ec */)
2548 2549
2549 // WebIDBIndex::getObject() message. 2550 // WebIDBIndex::getObject() message.
2550 IPC_SYNC_MESSAGE_CONTROL4_1(ViewHostMsg_IDBIndexGetObject, 2551 IPC_SYNC_MESSAGE_CONTROL4_1(ViewHostMsg_IDBIndexGetObject,
2551 int32, /* idb_index_id */ 2552 int32, /* idb_index_id */
2552 int32, /* response_id */ 2553 int32, /* response_id */
2553 IndexedDBKey, /* key */ 2554 IndexedDBKey, /* key */
2554 int32, /* transaction_id */ 2555 int32, /* transaction_id */
2555 WebKit::WebExceptionCode /* ec */) 2556 WebKit::WebExceptionCode /* ec */)
2556 2557
2557 // WebIDBIndex::getKey() message. 2558 // WebIDBIndex::getKey() message.
2558 IPC_SYNC_MESSAGE_CONTROL4_1(ViewHostMsg_IDBIndexGetKey, 2559 IPC_SYNC_MESSAGE_CONTROL4_1(ViewHostMsg_IDBIndexGetKey,
2559 int32, /* idb_index_id */ 2560 int32, /* idb_index_id */
2560 int32, /* response_id */ 2561 int32, /* response_id */
2561 IndexedDBKey, /* key */ 2562 IndexedDBKey, /* key */
2562 int32, /* transaction_id */ 2563 int32, /* transaction_id */
2563 WebKit::WebExceptionCode /* ec */) 2564 WebKit::WebExceptionCode /* ec */)
2564 2565
2565 // WebIDBIndex::~WebIDBIndex() message. 2566 // WebIDBIndex::~WebIDBIndex() message.
2566 IPC_MESSAGE_CONTROL1(ViewHostMsg_IDBIndexDestroyed, 2567 IPC_MESSAGE_CONTROL1(ViewHostMsg_IDBIndexDestroyed,
2567 int32 /* idb_index_id */) 2568 int32 /* idb_index_id */)
2568 2569
2569 // WebIDBObjectStore::name() message. 2570 // WebIDBObjectStore::name() message.
2570 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_IDBObjectStoreName, 2571 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_IDBObjectStoreName,
2571 int32, /* idb_object_store_id */ 2572 int32, /* idb_object_store_id */
2572 string16 /* name */) 2573 string16 /* name */)
2573 2574
2574 // WebIDBObjectStore::keyPath() message. 2575 // WebIDBObjectStore::keyPath() message.
2575 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_IDBObjectStoreKeyPath, 2576 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_IDBObjectStoreKeyPath,
2576 int32, /* idb_object_store_id */ 2577 int32, /* idb_object_store_id */
2577 NullableString16 /* keyPath */) 2578 NullableString16 /* keyPath */)
2578 2579
2579 // WebIDBObjectStore::indexNames() message. 2580 // WebIDBObjectStore::indexNames() message.
2580 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_IDBObjectStoreIndexNames, 2581 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_IDBObjectStoreIndexNames,
2581 int32, /* idb_object_store_id */ 2582 int32, /* idb_object_store_id */
2582 std::vector<string16> /* index_names */) 2583 std::vector<string16> /* index_names */)
2583 2584
2584 // WebIDBObjectStore::get() message. 2585 // WebIDBObjectStore::get() message.
2585 IPC_SYNC_MESSAGE_CONTROL4_1(ViewHostMsg_IDBObjectStoreGet, 2586 IPC_SYNC_MESSAGE_CONTROL4_1(ViewHostMsg_IDBObjectStoreGet,
2586 int32, /* idb_object_store_id */ 2587 int32, /* idb_object_store_id */
2587 int32, /* response_id */ 2588 int32, /* response_id */
2588 IndexedDBKey, /* key */ 2589 IndexedDBKey, /* key */
2589 int32, /* transaction_id */ 2590 int32, /* transaction_id */
2590 WebKit::WebExceptionCode /* ec */) 2591 WebKit::WebExceptionCode /* ec */)
2591 2592
2592 // WebIDBObjectStore::put() message. 2593 // WebIDBObjectStore::put() message.
2593 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_IDBObjectStorePut, 2594 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_IDBObjectStorePut,
2594 ViewHostMsg_IDBObjectStorePut_Params, 2595 ViewHostMsg_IDBObjectStorePut_Params,
2595 WebKit::WebExceptionCode /* ec */) 2596 WebKit::WebExceptionCode /* ec */)
2596 2597
2597 // WebIDBObjectStore::delete() message. 2598 // WebIDBObjectStore::delete() message.
2598 IPC_SYNC_MESSAGE_CONTROL4_1(ViewHostMsg_IDBObjectStoreDelete, 2599 IPC_SYNC_MESSAGE_CONTROL4_1(ViewHostMsg_IDBObjectStoreDelete,
2599 int32, /* idb_object_store_id */ 2600 int32, /* idb_object_store_id */
2600 int32, /* response_id */ 2601 int32, /* response_id */
2601 IndexedDBKey, /* key */ 2602 IndexedDBKey, /* key */
2602 int32, /* transaction_id */ 2603 int32, /* transaction_id */
2603 WebKit::WebExceptionCode /* ec */) 2604 WebKit::WebExceptionCode /* ec */)
2604 2605
2605 // WebIDBObjectStore::createIndex() message. 2606 // WebIDBObjectStore::createIndex() message.
2606 IPC_SYNC_MESSAGE_CONTROL1_2(ViewHostMsg_IDBObjectStoreCreateIndex, 2607 IPC_SYNC_MESSAGE_CONTROL1_2(ViewHostMsg_IDBObjectStoreCreateIndex,
2607 ViewHostMsg_IDBObjectStoreCreateIndex_Params, 2608 ViewHostMsg_IDBObjectStoreCreateIndex_Params,
2608 int32, /* index_id */ 2609 int32, /* index_id */
2609 WebKit::WebExceptionCode /* ec */) 2610 WebKit::WebExceptionCode /* ec */)
2610 2611
2611 // WebIDBObjectStore::index() message. 2612 // WebIDBObjectStore::index() message.
2612 IPC_SYNC_MESSAGE_CONTROL2_2(ViewHostMsg_IDBObjectStoreIndex, 2613 IPC_SYNC_MESSAGE_CONTROL2_2(ViewHostMsg_IDBObjectStoreIndex,
2613 int32, /* idb_object_store_id */ 2614 int32, /* idb_object_store_id */
2614 string16, /* name */ 2615 string16, /* name */
2615 int32, /* idb_index_id */ 2616 int32, /* idb_index_id */
2616 WebKit::WebExceptionCode /* ec */) 2617 WebKit::WebExceptionCode /* ec */)
2617 2618
2618 // WebIDBObjectStore::deleteIndex() message. 2619 // WebIDBObjectStore::deleteIndex() message.
2619 IPC_SYNC_MESSAGE_CONTROL3_1(ViewHostMsg_IDBObjectStoreDeleteIndex, 2620 IPC_SYNC_MESSAGE_CONTROL3_1(ViewHostMsg_IDBObjectStoreDeleteIndex,
2620 int32, /* idb_object_store_id */ 2621 int32, /* idb_object_store_id */
2621 string16, /* name */ 2622 string16, /* name */
2622 int32, /* transaction_id */ 2623 int32, /* transaction_id */
2623 WebKit::WebExceptionCode /* ec */) 2624 WebKit::WebExceptionCode /* ec */)
2624 2625
2625 // WebIDBObjectStore::openCursor() message. 2626 // WebIDBObjectStore::openCursor() message.
2626 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_IDBObjectStoreOpenCursor, 2627 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_IDBObjectStoreOpenCursor,
2627 ViewHostMsg_IDBObjectStoreOpenCursor_Params, 2628 ViewHostMsg_IDBObjectStoreOpenCursor_Params,
2628 WebKit::WebExceptionCode /* ec */) 2629 WebKit::WebExceptionCode /* ec */)
2629 2630
2630 // WebIDBObjectStore::~WebIDBObjectStore() message. 2631 // WebIDBObjectStore::~WebIDBObjectStore() message.
2631 IPC_MESSAGE_CONTROL1(ViewHostMsg_IDBObjectStoreDestroyed, 2632 IPC_MESSAGE_CONTROL1(ViewHostMsg_IDBObjectStoreDestroyed,
2632 int32 /* idb_object_store_id */) 2633 int32 /* idb_object_store_id */)
2633 2634
2634 // WebIDBDatabase::~WebIDBCursor() message. 2635 // WebIDBDatabase::~WebIDBCursor() message.
2635 IPC_MESSAGE_CONTROL1(ViewHostMsg_IDBCursorDestroyed, 2636 IPC_MESSAGE_CONTROL1(ViewHostMsg_IDBCursorDestroyed,
2636 int32 /* idb_cursor_id */) 2637 int32 /* idb_cursor_id */)
2637 2638
2638 // IDBTransaction::ObjectStore message. 2639 // IDBTransaction::ObjectStore message.
2639 IPC_SYNC_MESSAGE_CONTROL2_2(ViewHostMsg_IDBTransactionObjectStore, 2640 IPC_SYNC_MESSAGE_CONTROL2_2(ViewHostMsg_IDBTransactionObjectStore,
2640 int32, /* transaction_id */ 2641 int32, /* transaction_id */
2641 string16, /* name */ 2642 string16, /* name */
2642 int32, /* object_store_id */ 2643 int32, /* object_store_id */
2643 WebKit::WebExceptionCode /* ec */) 2644 WebKit::WebExceptionCode /* ec */)
2644 2645
2645 // WebIDBTransaction::mode() message. 2646 // WebIDBTransaction::mode() message.
2646 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_IDBTransactionMode, 2647 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_IDBTransactionMode,
2647 int32, /* idb_transaction_id */ 2648 int32, /* idb_transaction_id */
2648 int /* mode */) 2649 int /* mode */)
2649 2650
2650 // WebIDBTransaction::abort() message. 2651 // WebIDBTransaction::abort() message.
2651 IPC_MESSAGE_CONTROL1(ViewHostMsg_IDBTransactionAbort, 2652 IPC_MESSAGE_CONTROL1(ViewHostMsg_IDBTransactionAbort,
2652 int32 /* idb_transaction_id */) 2653 int32 /* idb_transaction_id */)
2653 2654
2654 // IDBTransaction::DidCompleteTaskEvents() message. 2655 // IDBTransaction::DidCompleteTaskEvents() message.
2655 IPC_MESSAGE_CONTROL1(ViewHostMsg_IDBTransactionDidCompleteTaskEvents, 2656 IPC_MESSAGE_CONTROL1(ViewHostMsg_IDBTransactionDidCompleteTaskEvents,
2656 int32 /* idb_transaction_id */) 2657 int32 /* idb_transaction_id */)
2657 2658
2658 // WebIDBTransaction::~WebIDBTransaction() message. 2659 // WebIDBTransaction::~WebIDBTransaction() message.
2659 IPC_MESSAGE_CONTROL1(ViewHostMsg_IDBTransactionDestroyed, 2660 IPC_MESSAGE_CONTROL1(ViewHostMsg_IDBTransactionDestroyed,
2660 int32 /* idb_transaction_id */) 2661 int32 /* idb_transaction_id */)
2661 2662
2662 // Get file size in bytes. Set result to -1 if failed to get the file size. 2663 // Get file size in bytes. Set result to -1 if failed to get the file size.
2663 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_GetFileSize, 2664 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_GetFileSize,
2664 FilePath /* path */, 2665 FilePath /* path */,
2665 int64 /* result */) 2666 int64 /* result */)
2666 2667
2667 // Get file modification time in seconds. Set result to 0 if failed to get the 2668 // Get file modification time in seconds. Set result to 0 if failed to get the
2668 // file modification time. 2669 // file modification time.
2669 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_GetFileModificationTime, 2670 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_GetFileModificationTime,
2670 FilePath /* path */, 2671 FilePath /* path */,
2671 base::Time /* result */) 2672 base::Time /* result */)
2672 2673
2673 // Open the file. 2674 // Open the file.
2674 IPC_SYNC_MESSAGE_CONTROL2_1(ViewHostMsg_OpenFile, 2675 IPC_SYNC_MESSAGE_CONTROL2_1(ViewHostMsg_OpenFile,
2675 FilePath /* path */, 2676 FilePath /* path */,
2676 int /* mode */, 2677 int /* mode */,
2677 IPC::PlatformFileForTransit /* result */) 2678 IPC::PlatformFileForTransit /* result */)
2678 2679
2679 // Opens a file asynchronously. The response returns a file descriptor 2680 // Opens a file asynchronously. The response returns a file descriptor
2680 // and an error code from base/platform_file.h. 2681 // and an error code from base/platform_file.h.
2681 IPC_MESSAGE_ROUTED3(ViewHostMsg_AsyncOpenFile, 2682 IPC_MESSAGE_ROUTED3(ViewHostMsg_AsyncOpenFile,
2682 FilePath /* file path */, 2683 FilePath /* file path */,
2683 int /* flags */, 2684 int /* flags */,
2684 int /* message_id */) 2685 int /* message_id */)
2685 2686
2686 // Sent by the renderer process to acknowledge receipt of a 2687 // Sent by the renderer process to acknowledge receipt of a
2687 // ViewMsg_CSSInsertRequest message and css has been inserted into the frame. 2688 // ViewMsg_CSSInsertRequest message and css has been inserted into the frame.
2688 IPC_MESSAGE_ROUTED0(ViewHostMsg_OnCSSInserted) 2689 IPC_MESSAGE_ROUTED0(ViewHostMsg_OnCSSInserted)
2689 2690
2690 // Sent by the renderer process to check whether access to web databases is 2691 // Sent by the renderer process to check whether access to web databases is
2691 // granted by content settings. This may block and trigger a cookie prompt. 2692 // granted by content settings. This may block and trigger a cookie prompt.
2692 IPC_SYNC_MESSAGE_ROUTED4_1(ViewHostMsg_AllowDatabase, 2693 IPC_SYNC_MESSAGE_ROUTED4_1(ViewHostMsg_AllowDatabase,
2693 std::string /* origin_url */, 2694 std::string /* origin_url */,
2694 string16 /* database name */, 2695 string16 /* database name */,
2695 string16 /* database display name */, 2696 string16 /* database display name */,
2696 unsigned long /* estimated size */, 2697 unsigned long /* estimated size */,
2697 bool /* result */) 2698 bool /* result */)
2698 2699
2699 // Asks the browser process to open a DB file with the given name. 2700 // Asks the browser process to open a DB file with the given name.
2700 IPC_SYNC_MESSAGE_CONTROL2_1(ViewHostMsg_DatabaseOpenFile, 2701 IPC_SYNC_MESSAGE_CONTROL2_1(ViewHostMsg_DatabaseOpenFile,
2701 string16 /* vfs file name */, 2702 string16 /* vfs file name */,
2702 int /* desired flags */, 2703 int /* desired flags */,
2703 IPC::PlatformFileForTransit /* file_handle */) 2704 IPC::PlatformFileForTransit /* file_handle */)
2704 2705
2705 // Asks the browser process to delete a DB file 2706 // Asks the browser process to delete a DB file
2706 IPC_SYNC_MESSAGE_CONTROL2_1(ViewHostMsg_DatabaseDeleteFile, 2707 IPC_SYNC_MESSAGE_CONTROL2_1(ViewHostMsg_DatabaseDeleteFile,
2707 string16 /* vfs file name */, 2708 string16 /* vfs file name */,
2708 bool /* whether or not to sync the directory */, 2709 bool /* whether or not to sync the directory */,
2709 int /* SQLite error code */) 2710 int /* SQLite error code */)
2710 2711
2711 // Asks the browser process to return the attributes of a DB file 2712 // Asks the browser process to return the attributes of a DB file
2712 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_DatabaseGetFileAttributes, 2713 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_DatabaseGetFileAttributes,
2713 string16 /* vfs file name */, 2714 string16 /* vfs file name */,
2714 int32 /* the attributes for the given DB file */) 2715 int32 /* the attributes for the given DB file */)
2715 2716
2716 // Asks the browser process to return the size of a DB file 2717 // Asks the browser process to return the size of a DB file
2717 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_DatabaseGetFileSize, 2718 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_DatabaseGetFileSize,
2718 string16 /* vfs file name */, 2719 string16 /* vfs file name */,
2719 int64 /* the size of the given DB file */) 2720 int64 /* the size of the given DB file */)
2720 2721
2721 // Notifies the browser process that a new database has been opened 2722 // Notifies the browser process that a new database has been opened
2722 IPC_MESSAGE_CONTROL4(ViewHostMsg_DatabaseOpened, 2723 IPC_MESSAGE_CONTROL4(ViewHostMsg_DatabaseOpened,
2723 string16 /* origin identifier */, 2724 string16 /* origin identifier */,
2724 string16 /* database name */, 2725 string16 /* database name */,
2725 string16 /* database description */, 2726 string16 /* database description */,
2726 int64 /* estimated size */) 2727 int64 /* estimated size */)
2727 2728
2728 // Notifies the browser process that a database might have been modified 2729 // Notifies the browser process that a database might have been modified
2729 IPC_MESSAGE_CONTROL2(ViewHostMsg_DatabaseModified, 2730 IPC_MESSAGE_CONTROL2(ViewHostMsg_DatabaseModified,
2730 string16 /* origin identifier */, 2731 string16 /* origin identifier */,
2731 string16 /* database name */) 2732 string16 /* database name */)
2732 2733
2733 // Notifies the browser process that a database is about to close 2734 // Notifies the browser process that a database is about to close
2734 IPC_MESSAGE_CONTROL2(ViewHostMsg_DatabaseClosed, 2735 IPC_MESSAGE_CONTROL2(ViewHostMsg_DatabaseClosed,
2735 string16 /* origin identifier */, 2736 string16 /* origin identifier */,
2736 string16 /* database name */) 2737 string16 /* database name */)
2737 2738
2738 // Notifies the browser of the language (ISO 639_1 code language, such as fr, 2739 // Notifies the browser of the language (ISO 639_1 code language, such as fr,
2739 // en, zh...) of the current page. 2740 // en, zh...) of the current page.
2740 IPC_MESSAGE_ROUTED1(ViewHostMsg_PageLanguageDetermined, 2741 IPC_MESSAGE_ROUTED1(ViewHostMsg_PageLanguageDetermined,
2741 std::string /* the language */) 2742 std::string /* the language */)
2742 2743
2743 // Notifies the browser that a page has been translated. 2744 // Notifies the browser that a page has been translated.
2744 IPC_MESSAGE_ROUTED4(ViewHostMsg_PageTranslated, 2745 IPC_MESSAGE_ROUTED4(ViewHostMsg_PageTranslated,
2745 int, /* page id */ 2746 int, /* page id */
2746 std::string /* the original language */, 2747 std::string /* the original language */,
2747 std::string /* the translated language */, 2748 std::string /* the translated language */,
2748 TranslateErrors::Type /* the error type if available */) 2749 TranslateErrors::Type /* the error type if available */)
2749 2750
2750 //--------------------------------------------------------------------------- 2751 //---------------------------------------------------------------------------
2751 // Socket Stream messages: 2752 // Socket Stream messages:
2752 // These are messages from the SocketStreamHandle to the browser. 2753 // These are messages from the SocketStreamHandle to the browser.
2753 2754
2754 // Open new Socket Stream for the |socket_url| identified by |socket_id| 2755 // Open new Socket Stream for the |socket_url| identified by |socket_id|
2755 // in the renderer process. 2756 // in the renderer process.
2756 // The browser starts connecting asynchronously. 2757 // The browser starts connecting asynchronously.
2757 // Once Socket Stream connection is established, the browser will send 2758 // Once Socket Stream connection is established, the browser will send
2758 // ViewMsg_SocketStream_Connected back. 2759 // ViewMsg_SocketStream_Connected back.
2759 IPC_MESSAGE_CONTROL2(ViewHostMsg_SocketStream_Connect, 2760 IPC_MESSAGE_CONTROL2(ViewHostMsg_SocketStream_Connect,
2760 GURL /* socket_url */, 2761 GURL /* socket_url */,
2761 int /* socket_id */) 2762 int /* socket_id */)
2762 2763
2763 // Request to send data on the Socket Stream. 2764 // Request to send data on the Socket Stream.
2764 // SocketStreamHandle can send data at most |max_pending_send_allowed| bytes, 2765 // SocketStreamHandle can send data at most |max_pending_send_allowed| bytes,
2765 // which is given by ViewMsg_SocketStream_Connected at any time. 2766 // which is given by ViewMsg_SocketStream_Connected at any time.
2766 // The number of pending bytes can be tracked by size of |data| sent 2767 // The number of pending bytes can be tracked by size of |data| sent
2767 // and |amount_sent| parameter of ViewMsg_SocketStream_DataSent. 2768 // and |amount_sent| parameter of ViewMsg_SocketStream_DataSent.
2768 // That is, the following constraints is applied: 2769 // That is, the following constraints is applied:
2769 // (accumulated total of |data|) - (accumulated total of |amount_sent|) 2770 // (accumulated total of |data|) - (accumulated total of |amount_sent|)
2770 // <= |max_pending_send_allowed| 2771 // <= |max_pending_send_allowed|
2771 // If the SocketStreamHandle ever tries to exceed the 2772 // If the SocketStreamHandle ever tries to exceed the
2772 // |max_pending_send_allowed|, the connection will be closed. 2773 // |max_pending_send_allowed|, the connection will be closed.
2773 IPC_MESSAGE_CONTROL2(ViewHostMsg_SocketStream_SendData, 2774 IPC_MESSAGE_CONTROL2(ViewHostMsg_SocketStream_SendData,
2774 int /* socket_id */, 2775 int /* socket_id */,
2775 std::vector<char> /* data */) 2776 std::vector<char> /* data */)
2776 2777
2777 // Request to close the Socket Stream. 2778 // Request to close the Socket Stream.
2778 // The browser will send ViewMsg_SocketStream_Closed back when the Socket 2779 // The browser will send ViewMsg_SocketStream_Closed back when the Socket
2779 // Stream is completely closed. 2780 // Stream is completely closed.
2780 IPC_MESSAGE_CONTROL1(ViewHostMsg_SocketStream_Close, 2781 IPC_MESSAGE_CONTROL1(ViewHostMsg_SocketStream_Close,
2781 int /* socket_id */) 2782 int /* socket_id */)
2782 2783
2783 //--------------------------------------------------------------------------- 2784 //---------------------------------------------------------------------------
2784 // Request for cryptographic operation messages: 2785 // Request for cryptographic operation messages:
2785 // These are messages from the renderer to the browser to perform a 2786 // These are messages from the renderer to the browser to perform a
2786 // cryptographic operation. 2787 // cryptographic operation.
2787 2788
2788 // Asks the browser process to generate a keypair for grabbing a client 2789 // Asks the browser process to generate a keypair for grabbing a client
2789 // certificate from a CA (<keygen> tag), and returns the signed public 2790 // certificate from a CA (<keygen> tag), and returns the signed public
2790 // key and challenge string. 2791 // key and challenge string.
2791 IPC_SYNC_MESSAGE_CONTROL3_1(ViewHostMsg_Keygen, 2792 IPC_SYNC_MESSAGE_CONTROL3_1(ViewHostMsg_Keygen,
2792 uint32 /* key size index */, 2793 uint32 /* key size index */,
2793 std::string /* challenge string */, 2794 std::string /* challenge string */,
2794 GURL /* URL of requestor */, 2795 GURL /* URL of requestor */,
2795 std::string /* signed public key and challenge */) 2796 std::string /* signed public key and challenge */)
2796 2797
2797 // The renderer has tried to spell check a word, but couldn't because no 2798 // The renderer has tried to spell check a word, but couldn't because no
2798 // dictionary was available to load. Request that the browser find an 2799 // dictionary was available to load. Request that the browser find an
2799 // appropriate dictionary and return it. 2800 // appropriate dictionary and return it.
2800 IPC_MESSAGE_CONTROL0(ViewHostMsg_SpellChecker_RequestDictionary) 2801 IPC_MESSAGE_CONTROL0(ViewHostMsg_SpellChecker_RequestDictionary)
2801 2802
2802 IPC_SYNC_MESSAGE_CONTROL2_1(ViewHostMsg_SpellChecker_PlatformCheckSpelling, 2803 IPC_SYNC_MESSAGE_CONTROL2_1(ViewHostMsg_SpellChecker_PlatformCheckSpelling,
2803 string16 /* word */, 2804 string16 /* word */,
2804 int /* document tag */, 2805 int /* document tag */,
2805 bool /* correct */) 2806 bool /* correct */)
2806 2807
2807 IPC_SYNC_MESSAGE_CONTROL1_1( 2808 IPC_SYNC_MESSAGE_CONTROL1_1(
2808 ViewHostMsg_SpellChecker_PlatformFillSuggestionList, 2809 ViewHostMsg_SpellChecker_PlatformFillSuggestionList,
2809 string16 /* word */, 2810 string16 /* word */,
2810 std::vector<string16> /* suggestions */) 2811 std::vector<string16> /* suggestions */)
2811 2812
2812 //--------------------------------------------------------------------------- 2813 //---------------------------------------------------------------------------
2813 // Geolocation services messages 2814 // Geolocation services messages
2814 2815
2815 // A GeolocationServiceBridgeImpl in the renderer process has been created. 2816 // A GeolocationServiceBridgeImpl in the renderer process has been created.
2816 // This is used to lazily initialize the host dispatchers and related 2817 // This is used to lazily initialize the host dispatchers and related
2817 // Geolocation infrastructure in the browser process. 2818 // Geolocation infrastructure in the browser process.
2818 IPC_MESSAGE_CONTROL1(ViewHostMsg_Geolocation_RegisterDispatcher, 2819 IPC_MESSAGE_CONTROL1(ViewHostMsg_Geolocation_RegisterDispatcher,
2819 int /* render_view_id */) 2820 int /* render_view_id */)
2820 2821
2821 // A GeolocationServiceBridgeImpl has been destroyed. 2822 // A GeolocationServiceBridgeImpl has been destroyed.
2822 // This is used to let the Geolocation infrastructure do its cleanup. 2823 // This is used to let the Geolocation infrastructure do its cleanup.
2823 IPC_MESSAGE_CONTROL1(ViewHostMsg_Geolocation_UnregisterDispatcher, 2824 IPC_MESSAGE_CONTROL1(ViewHostMsg_Geolocation_UnregisterDispatcher,
2824 int /* render_view_id */) 2825 int /* render_view_id */)
2825 2826
2826 // The |render_view_id| and |bridge_id| representing |host| is requesting 2827 // The |render_view_id| and |bridge_id| representing |host| is requesting
2827 // permission to access geolocation position. 2828 // permission to access geolocation position.
2828 // This will be replied by ViewMsg_Geolocation_PermissionSet. 2829 // This will be replied by ViewMsg_Geolocation_PermissionSet.
2829 IPC_MESSAGE_CONTROL3(ViewHostMsg_Geolocation_RequestPermission, 2830 IPC_MESSAGE_CONTROL3(ViewHostMsg_Geolocation_RequestPermission,
2830 int /* render_view_id */, 2831 int /* render_view_id */,
2831 int /* bridge_id */, 2832 int /* bridge_id */,
2832 GURL /* GURL of the frame requesting geolocation */) 2833 GURL /* GURL of the frame requesting geolocation */)
2833 2834
2834 // The |render_view_id| and |bridge_id| representing |GURL| is cancelling its 2835 // The |render_view_id| and |bridge_id| representing |GURL| is cancelling its
2835 // previous permission request to access geolocation position. 2836 // previous permission request to access geolocation position.
2836 IPC_MESSAGE_CONTROL3(ViewHostMsg_Geolocation_CancelPermissionRequest, 2837 IPC_MESSAGE_CONTROL3(ViewHostMsg_Geolocation_CancelPermissionRequest,
2837 int /* render_view_id */, 2838 int /* render_view_id */,
2838 int /* bridge_id */, 2839 int /* bridge_id */,
2839 GURL /* GURL of the frame */) 2840 GURL /* GURL of the frame */)
2840 2841
2841 // The |render_view_id| and |bridge_id| requests Geolocation service to start 2842 // The |render_view_id| and |bridge_id| requests Geolocation service to start
2842 // updating. 2843 // updating.
2843 // This is an asynchronous call, and the browser process may eventually reply 2844 // This is an asynchronous call, and the browser process may eventually reply
2844 // with the updated geoposition, or an error (access denied, location 2845 // with the updated geoposition, or an error (access denied, location
2845 // unavailable, etc.) 2846 // unavailable, etc.)
2846 IPC_MESSAGE_CONTROL4(ViewHostMsg_Geolocation_StartUpdating, 2847 IPC_MESSAGE_CONTROL4(ViewHostMsg_Geolocation_StartUpdating,
2847 int /* render_view_id */, 2848 int /* render_view_id */,
2848 int /* bridge_id */, 2849 int /* bridge_id */,
2849 GURL /* GURL of the frame requesting geolocation */, 2850 GURL /* GURL of the frame requesting geolocation */,
2850 bool /* enable_high_accuracy */) 2851 bool /* enable_high_accuracy */)
2851 2852
2852 // The |render_view_id| and |bridge_id| requests Geolocation service to stop 2853 // The |render_view_id| and |bridge_id| requests Geolocation service to stop
2853 // updating. 2854 // updating.
2854 // Note that the geolocation service may continue to fetch geolocation data 2855 // Note that the geolocation service may continue to fetch geolocation data
2855 // for other origins. 2856 // for other origins.
2856 IPC_MESSAGE_CONTROL2(ViewHostMsg_Geolocation_StopUpdating, 2857 IPC_MESSAGE_CONTROL2(ViewHostMsg_Geolocation_StopUpdating,
2857 int /* render_view_id */, 2858 int /* render_view_id */,
2858 int /* bridge_id */) 2859 int /* bridge_id */)
2859 2860
2860 // The |render_view_id| and |bridge_id| requests Geolocation service to 2861 // The |render_view_id| and |bridge_id| requests Geolocation service to
2861 // suspend. 2862 // suspend.
2862 // Note that the geolocation service may continue to fetch geolocation data 2863 // Note that the geolocation service may continue to fetch geolocation data
2863 // for other origins. 2864 // for other origins.
2864 IPC_MESSAGE_CONTROL2(ViewHostMsg_Geolocation_Suspend, 2865 IPC_MESSAGE_CONTROL2(ViewHostMsg_Geolocation_Suspend,
2865 int /* render_view_id */, 2866 int /* render_view_id */,
2866 int /* bridge_id */) 2867 int /* bridge_id */)
2867 2868
2868 // The |render_view_id| and |bridge_id| requests Geolocation service to 2869 // The |render_view_id| and |bridge_id| requests Geolocation service to
2869 // resume. 2870 // resume.
2870 IPC_MESSAGE_CONTROL2(ViewHostMsg_Geolocation_Resume, 2871 IPC_MESSAGE_CONTROL2(ViewHostMsg_Geolocation_Resume,
2871 int /* render_view_id */, 2872 int /* render_view_id */,
2872 int /* bridge_id */) 2873 int /* bridge_id */)
2873 2874
2874 // Updates the minimum/maximum allowed zoom percent for this tab from the 2875 // Updates the minimum/maximum allowed zoom percent for this tab from the
2875 // default values. If |remember| is true, then the zoom setting is applied to 2876 // default values. If |remember| is true, then the zoom setting is applied to
2876 // other pages in the site and is saved, otherwise it only applies to this 2877 // other pages in the site and is saved, otherwise it only applies to this
2877 // tab. 2878 // tab.
2878 IPC_MESSAGE_ROUTED3(ViewHostMsg_UpdateZoomLimits, 2879 IPC_MESSAGE_ROUTED3(ViewHostMsg_UpdateZoomLimits,
2879 int /* minimum_percent */, 2880 int /* minimum_percent */,
2880 int /* maximum_percent */, 2881 int /* maximum_percent */,
2881 bool /* remember */) 2882 bool /* remember */)
2882 2883
2883 // Requests the speech input service to start speech recognition on behalf of 2884 // Requests the speech input service to start speech recognition on behalf of
2884 // the given |render_view_id|. 2885 // the given |render_view_id|.
2885 IPC_MESSAGE_CONTROL5(ViewHostMsg_SpeechInput_StartRecognition, 2886 IPC_MESSAGE_CONTROL5(ViewHostMsg_SpeechInput_StartRecognition,
2886 int /* render_view_id */, 2887 int /* render_view_id */,
2887 int /* request_id */, 2888 int /* request_id */,
2888 gfx::Rect /* element_rect */, 2889 gfx::Rect /* element_rect */,
2889 std::string /* language */, 2890 std::string /* language */,
2890 std::string /* grammar */) 2891 std::string /* grammar */)
2891 2892
2892 // Requests the speech input service to cancel speech recognition on behalf of 2893 // Requests the speech input service to cancel speech recognition on behalf of
2893 // the given |render_view_id|. If speech recognition is not happening nor or 2894 // the given |render_view_id|. If speech recognition is not happening nor or
2894 // is happening on behalf of some other render view, this call does nothing. 2895 // is happening on behalf of some other render view, this call does nothing.
2895 IPC_MESSAGE_CONTROL2(ViewHostMsg_SpeechInput_CancelRecognition, 2896 IPC_MESSAGE_CONTROL2(ViewHostMsg_SpeechInput_CancelRecognition,
2896 int /* render_view_id */, 2897 int /* render_view_id */,
2897 int /* request id */) 2898 int /* request id */)
2898 2899
2899 // Requests the speech input service to stop audio recording on behalf of 2900 // Requests the speech input service to stop audio recording on behalf of
2900 // the given |render_view_id|. Any audio recorded so far will be fed to the 2901 // the given |render_view_id|. Any audio recorded so far will be fed to the
2901 // speech recognizer. If speech recognition is not happening nor or is 2902 // speech recognizer. If speech recognition is not happening nor or is
2902 // happening on behalf of some other render view, this call does nothing. 2903 // happening on behalf of some other render view, this call does nothing.
2903 IPC_MESSAGE_CONTROL2(ViewHostMsg_SpeechInput_StopRecording, 2904 IPC_MESSAGE_CONTROL2(ViewHostMsg_SpeechInput_StopRecording,
2904 int /* render_view_id */, 2905 int /* render_view_id */,
2905 int /* request id */) 2906 int /* request id */)
2906 2907
2907 //--------------------------------------------------------------------------- 2908 //---------------------------------------------------------------------------
2908 // Device orientation services messages: 2909 // Device orientation services messages:
2909 2910
2910 // A RenderView requests to start receiving device orientation updates. 2911 // A RenderView requests to start receiving device orientation updates.
2911 IPC_MESSAGE_CONTROL1(ViewHostMsg_DeviceOrientation_StartUpdating, 2912 IPC_MESSAGE_CONTROL1(ViewHostMsg_DeviceOrientation_StartUpdating,
2912 int /* render_view_id */) 2913 int /* render_view_id */)
2913 2914
2914 // A RenderView requests to stop receiving device orientation updates. 2915 // A RenderView requests to stop receiving device orientation updates.
2915 IPC_MESSAGE_CONTROL1(ViewHostMsg_DeviceOrientation_StopUpdating, 2916 IPC_MESSAGE_CONTROL1(ViewHostMsg_DeviceOrientation_StopUpdating,
2916 int /* render_view_id */) 2917 int /* render_view_id */)
2917 2918
2918 //--------------------------------------------------------------------------- 2919 //---------------------------------------------------------------------------
2919 // FileSystem API messages 2920 // FileSystem API messages
2920 // These are messages sent from the renderer to the browser process. 2921 // These are messages sent from the renderer to the browser process.
2921 2922
2922 // WebFrameClient::openFileSystem() message. 2923 // WebFrameClient::openFileSystem() message.
2923 IPC_MESSAGE_CONTROL5(ViewHostMsg_OpenFileSystemRequest, 2924 IPC_MESSAGE_CONTROL5(ViewHostMsg_OpenFileSystemRequest,
2924 int /* request_id */, 2925 int /* request_id */,
2925 GURL /* origin_url */, 2926 GURL /* origin_url */,
2926 fileapi::FileSystemType /* type */, 2927 fileapi::FileSystemType /* type */,
2927 int64 /* requested_size */, 2928 int64 /* requested_size */,
2928 bool /* create */) 2929 bool /* create */)
2929 2930
2930 // WebFileSystem::move() message. 2931 // WebFileSystem::move() message.
2931 IPC_MESSAGE_CONTROL3(ViewHostMsg_FileSystem_Move, 2932 IPC_MESSAGE_CONTROL3(ViewHostMsg_FileSystem_Move,
2932 int /* request_id */, 2933 int /* request_id */,
2933 FilePath /* src path */, 2934 FilePath /* src path */,
2934 FilePath /* dest path */) 2935 FilePath /* dest path */)
2935 2936
2936 // WebFileSystem::copy() message. 2937 // WebFileSystem::copy() message.
2937 IPC_MESSAGE_CONTROL3(ViewHostMsg_FileSystem_Copy, 2938 IPC_MESSAGE_CONTROL3(ViewHostMsg_FileSystem_Copy,
2938 int /* request_id */, 2939 int /* request_id */,
2939 FilePath /* src path */, 2940 FilePath /* src path */,
2940 FilePath /* dest path */) 2941 FilePath /* dest path */)
2941 2942
2942 // WebFileSystem::remove() message. 2943 // WebFileSystem::remove() message.
2943 IPC_MESSAGE_CONTROL3(ViewHostMsg_FileSystem_Remove, 2944 IPC_MESSAGE_CONTROL3(ViewHostMsg_FileSystem_Remove,
2944 int /* request_id */, 2945 int /* request_id */,
2945 FilePath /* path */, 2946 FilePath /* path */,
2946 bool /* recursive */) 2947 bool /* recursive */)
2947 2948
2948 // WebFileSystem::readMetadata() message. 2949 // WebFileSystem::readMetadata() message.
2949 IPC_MESSAGE_CONTROL2(ViewHostMsg_FileSystem_ReadMetadata, 2950 IPC_MESSAGE_CONTROL2(ViewHostMsg_FileSystem_ReadMetadata,
2950 int /* request_id */, 2951 int /* request_id */,
2951 FilePath /* path */) 2952 FilePath /* path */)
2952 2953
2953 // WebFileSystem::create() message. 2954 // WebFileSystem::create() message.
2954 IPC_MESSAGE_CONTROL5(ViewHostMsg_FileSystem_Create, 2955 IPC_MESSAGE_CONTROL5(ViewHostMsg_FileSystem_Create,
2955 int /* request_id */, 2956 int /* request_id */,
2956 FilePath /* path */, 2957 FilePath /* path */,
2957 bool /* exclusive */, 2958 bool /* exclusive */,
2958 bool /* is_directory */, 2959 bool /* is_directory */,
2959 bool /* recursive */) 2960 bool /* recursive */)
2960 2961
2961 // WebFileSystem::exists() messages. 2962 // WebFileSystem::exists() messages.
2962 IPC_MESSAGE_CONTROL3(ViewHostMsg_FileSystem_Exists, 2963 IPC_MESSAGE_CONTROL3(ViewHostMsg_FileSystem_Exists,
2963 int /* request_id */, 2964 int /* request_id */,
2964 FilePath /* path */, 2965 FilePath /* path */,
2965 bool /* is_directory */) 2966 bool /* is_directory */)
2966 2967
2967 // WebFileSystem::readDirectory() message. 2968 // WebFileSystem::readDirectory() message.
2968 IPC_MESSAGE_CONTROL2(ViewHostMsg_FileSystem_ReadDirectory, 2969 IPC_MESSAGE_CONTROL2(ViewHostMsg_FileSystem_ReadDirectory,
2969 int /* request_id */, 2970 int /* request_id */,
2970 FilePath /* path */) 2971 FilePath /* path */)
2971 2972
2972 // WebFileWriter::write() message. 2973 // WebFileWriter::write() message.
2973 IPC_MESSAGE_CONTROL4(ViewHostMsg_FileSystem_Write, 2974 IPC_MESSAGE_CONTROL4(ViewHostMsg_FileSystem_Write,
2974 int /* request id */, 2975 int /* request id */,
2975 FilePath /* file path */, 2976 FilePath /* file path */,
2976 GURL /* blob URL */, 2977 GURL /* blob URL */,
2977 int64 /* position */) 2978 int64 /* position */)
2978 2979
2979 // WebFileWriter::truncate() message. 2980 // WebFileWriter::truncate() message.
2980 IPC_MESSAGE_CONTROL3(ViewHostMsg_FileSystem_Truncate, 2981 IPC_MESSAGE_CONTROL3(ViewHostMsg_FileSystem_Truncate,
2981 int /* request id */, 2982 int /* request id */,
2982 FilePath /* file path */, 2983 FilePath /* file path */,
2983 int64 /* length */) 2984 int64 /* length */)
2984 2985
2985 // Pepper's Touch() message. 2986 // Pepper's Touch() message.
2986 IPC_MESSAGE_CONTROL4(ViewHostMsg_FileSystem_TouchFile, 2987 IPC_MESSAGE_CONTROL4(ViewHostMsg_FileSystem_TouchFile,
2987 int /* request_id */, 2988 int /* request_id */,
2988 FilePath /* path */, 2989 FilePath /* path */,
2989 base::Time /* last_access_time */, 2990 base::Time /* last_access_time */,
2990 base::Time /* last_modified_time */) 2991 base::Time /* last_modified_time */)
2991 2992
2992 // WebFileWriter::cancel() message. 2993 // WebFileWriter::cancel() message.
2993 IPC_MESSAGE_CONTROL2(ViewHostMsg_FileSystem_CancelWrite, 2994 IPC_MESSAGE_CONTROL2(ViewHostMsg_FileSystem_CancelWrite,
2994 int /* request id */, 2995 int /* request id */,
2995 int /* id of request to cancel */) 2996 int /* id of request to cancel */)
2996 2997
2997 //--------------------------------------------------------------------------- 2998 //---------------------------------------------------------------------------
2998 // Blob messages: 2999 // Blob messages:
2999 3000
3000 // Registers a blob URL referring to the specified blob data. 3001 // Registers a blob URL referring to the specified blob data.
3001 IPC_MESSAGE_CONTROL2(ViewHostMsg_RegisterBlobUrl, 3002 IPC_MESSAGE_CONTROL2(ViewHostMsg_RegisterBlobUrl,
3002 GURL /* url */, 3003 GURL /* url */,
3003 scoped_refptr<webkit_blob::BlobData> /* blob_data */) 3004 scoped_refptr<webkit_blob::BlobData> /* blob_data */)
3004 3005
3005 // Registers a blob URL referring to the blob data identified by the specified 3006 // Registers a blob URL referring to the blob data identified by the specified
3006 // source URL. 3007 // source URL.
3007 IPC_MESSAGE_CONTROL2(ViewHostMsg_RegisterBlobUrlFrom, 3008 IPC_MESSAGE_CONTROL2(ViewHostMsg_RegisterBlobUrlFrom,
3008 GURL /* url */, 3009 GURL /* url */,
3009 GURL /* src_url */) 3010 GURL /* src_url */)
3010 3011
3011 // Unregister a blob URL. 3012 // Unregister a blob URL.
3012 IPC_MESSAGE_CONTROL1(ViewHostMsg_UnregisterBlobUrl, GURL /* url */) 3013 IPC_MESSAGE_CONTROL1(ViewHostMsg_UnregisterBlobUrl, GURL /* url */)
3013 3014
3014 // Suggest results ----------------------------------------------------------- 3015 // Suggest results -----------------------------------------------------------
3015 3016
3016 IPC_MESSAGE_ROUTED2(ViewHostMsg_SetSuggestions, 3017 IPC_MESSAGE_ROUTED2(ViewHostMsg_SetSuggestions,
3017 int32 /* page_id */, 3018 int32 /* page_id */,
3018 std::vector<std::string> /* suggestions */) 3019 std::vector<std::string> /* suggestions */)
3019 3020
3020 IPC_MESSAGE_ROUTED2(ViewHostMsg_InstantSupportDetermined, 3021 IPC_MESSAGE_ROUTED2(ViewHostMsg_InstantSupportDetermined,
3021 int32 /* page_id */, 3022 int32 /* page_id */,
3022 bool /* result */) 3023 bool /* result */)
3023 3024
3024 // Client-Side Phishing Detector --------------------------------------------- 3025 // Client-Side Phishing Detector ---------------------------------------------
3025 // Inform the browser that the current URL is phishing according to the 3026 // Inform the browser that the current URL is phishing according to the
3026 // client-side phishing detector. 3027 // client-side phishing detector.
3027 IPC_MESSAGE_ROUTED3(ViewHostMsg_DetectedPhishingSite, 3028 IPC_MESSAGE_ROUTED3(ViewHostMsg_DetectedPhishingSite,
3028 GURL /* phishing_url */, 3029 GURL /* phishing_url */,
3029 double /* phishing_score */, 3030 double /* phishing_score */,
3030 SkBitmap /* thumbnail */) 3031 SkBitmap /* thumbnail */)
3031 3032
3032 // Response from ViewMsg_ScriptEvalRequest. The ID is the parameter supplied 3033 // Response from ViewMsg_ScriptEvalRequest. The ID is the parameter supplied
3033 // to ViewMsg_ScriptEvalRequest. The result has the value returned by the 3034 // to ViewMsg_ScriptEvalRequest. The result has the value returned by the
3034 // script as it's only element, one of Null, Boolean, Integer, Real, Date, or 3035 // script as it's only element, one of Null, Boolean, Integer, Real, Date, or
3035 // String. 3036 // String.
3036 IPC_MESSAGE_ROUTED2(ViewHostMsg_ScriptEvalResponse, 3037 IPC_MESSAGE_ROUTED2(ViewHostMsg_ScriptEvalResponse,
3037 int /* id */, 3038 int /* id */,
3038 ListValue /* result */) 3039 ListValue /* result */)
3039 3040
3040 // Updates the content restrictions, i.e. to disable print/copy. 3041 // Updates the content restrictions, i.e. to disable print/copy.
3041 IPC_MESSAGE_ROUTED1(ViewHostMsg_UpdateContentRestrictions, 3042 IPC_MESSAGE_ROUTED1(ViewHostMsg_UpdateContentRestrictions,
3042 int /* restrictions */) 3043 int /* restrictions */)
3043 3044
3044 // Trusted Pepper Filesystem messages ---------------------------------------- 3045 // Trusted Pepper Filesystem messages ----------------------------------------
3045 3046
3046 // Open the file. 3047 // Open the file.
3047 IPC_SYNC_MESSAGE_CONTROL2_2(ViewHostMsg_PepperOpenFile, 3048 IPC_SYNC_MESSAGE_CONTROL2_2(ViewHostMsg_PepperOpenFile,
3048 FilePath /* path */, 3049 FilePath /* path */,
3049 int /* flags */, 3050 int /* flags */,
3050 base::PlatformFileError /* error_code */, 3051 base::PlatformFileError /* error_code */,
3051 IPC::PlatformFileForTransit /* result */) 3052 IPC::PlatformFileForTransit /* result */)
3052 3053
3053 // Rename the file. 3054 // Rename the file.
3054 IPC_SYNC_MESSAGE_CONTROL2_1(ViewHostMsg_PepperRenameFile, 3055 IPC_SYNC_MESSAGE_CONTROL2_1(ViewHostMsg_PepperRenameFile,
3055 FilePath /* path_from */, 3056 FilePath /* path_from */,
3056 FilePath /* path_to */, 3057 FilePath /* path_to */,
3057 base::PlatformFileError /* error_code */) 3058 base::PlatformFileError /* error_code */)
3058 3059
3059 // Delete the file. 3060 // Delete the file.
3060 IPC_SYNC_MESSAGE_CONTROL2_1(ViewHostMsg_PepperDeleteFileOrDir, 3061 IPC_SYNC_MESSAGE_CONTROL2_1(ViewHostMsg_PepperDeleteFileOrDir,
3061 FilePath /* path */, 3062 FilePath /* path */,
3062 bool /* recursive */, 3063 bool /* recursive */,
3063 base::PlatformFileError /* error_code */) 3064 base::PlatformFileError /* error_code */)
3064 3065
3065 // Create the directory. 3066 // Create the directory.
3066 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_PepperCreateDir, 3067 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_PepperCreateDir,
3067 FilePath /* path */, 3068 FilePath /* path */,
3068 base::PlatformFileError /* error_code */) 3069 base::PlatformFileError /* error_code */)
3069 3070
3070 // Query the file's info. 3071 // Query the file's info.
3071 IPC_SYNC_MESSAGE_CONTROL1_2(ViewHostMsg_PepperQueryFile, 3072 IPC_SYNC_MESSAGE_CONTROL1_2(ViewHostMsg_PepperQueryFile,
3072 FilePath /* path */, 3073 FilePath /* path */,
3073 base::PlatformFileInfo, /* info */ 3074 base::PlatformFileInfo, /* info */
3074 base::PlatformFileError /* error_code */) 3075 base::PlatformFileError /* error_code */)
3075 3076
3076 // Get the directory's contents. 3077 // Get the directory's contents.
3077 IPC_SYNC_MESSAGE_CONTROL1_2(ViewHostMsg_PepperGetDirContents, 3078 IPC_SYNC_MESSAGE_CONTROL1_2(ViewHostMsg_PepperGetDirContents,
3078 FilePath /* path */, 3079 FilePath /* path */,
3079 PepperDirContents, /* contents */ 3080 PepperDirContents, /* contents */
3080 base::PlatformFileError /* error_code */) 3081 base::PlatformFileError /* error_code */)
3081
3082 IPC_END_MESSAGES(ViewHost)
OLDNEW
« no previous file with comments | « chrome/common/render_messages.cc ('k') | chrome/common/service_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698