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

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

Issue 6721021: Move a bunch of renderer->browser messages to content. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 // IPC messages for page rendering. 5 // IPC messages for page rendering.
6 // Multiply-included message file, hence no include guard. 6 // Multiply-included message file, hence no include guard.
7 7
8 #include "base/process.h"
8 #include "content/common/common_param_traits.h" 9 #include "content/common/common_param_traits.h"
9 #include "content/common/css_colors.h" 10 #include "content/common/css_colors.h"
10 #include "content/common/edit_command.h" 11 #include "content/common/edit_command.h"
12 #include "content/common/navigation_gesture.h"
11 #include "content/common/page_transition_types.h" 13 #include "content/common/page_transition_types.h"
12 #include "content/common/page_zoom.h" 14 #include "content/common/page_zoom.h"
13 #include "content/common/renderer_preferences.h" 15 #include "content/common/renderer_preferences.h"
16 #include "content/common/window_container_type.h"
14 #include "ipc/ipc_message_macros.h" 17 #include "ipc/ipc_message_macros.h"
15 #include "ipc/ipc_platform_file.h" 18 #include "ipc/ipc_platform_file.h"
19 #include "net/base/host_port_pair.h"
16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCompositionUnderli ne.h" 20 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCompositionUnderli ne.h"
17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFindOptions.h" 21 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFindOptions.h"
18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebMediaPlayerAction. h" 22 #include "third_party/WebKit/Source/WebKit/chromium/public/WebMediaPlayerAction. h"
23 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h"
24 #include "third_party/WebKit/Source/WebKit/chromium/public/WebScreenInfo.h"
19 #include "ui/gfx/rect.h" 25 #include "ui/gfx/rect.h"
20 #include "webkit/glue/context_menu.h" 26 #include "webkit/glue/context_menu.h"
27 #include "webkit/glue/password_form.h"
28 #include "webkit/glue/webcookie.h"
21 #include "webkit/glue/webmenuitem.h" 29 #include "webkit/glue/webmenuitem.h"
22 #include "webkit/glue/webpreferences.h" 30 #include "webkit/glue/webpreferences.h"
31 #include "webkit/plugins/npapi/webplugin.h"
32 #include "webkit/plugins/npapi/webplugininfo.h"
33
34 #if defined(OS_MACOSX)
35 #include "content/common/font_descriptor_mac.h"
36 #endif
23 37
24 // Define enums used in this file inside an include-guard. 38 // Define enums used in this file inside an include-guard.
25 #ifndef CONTENT_COMMON_VIEW_MESSAGES_H_ 39 #ifndef CONTENT_COMMON_VIEW_MESSAGES_H_
26 #define CONTENT_COMMON_VIEW_MESSAGES_H_ 40 #define CONTENT_COMMON_VIEW_MESSAGES_H_
27 41
28 class ViewMsg_Navigate_Type { 42 struct ViewHostMsg_RunFileChooser_Mode {
43 public:
44 enum Value {
45 // Requires that the file exists before allowing the user to pick it.
46 Open,
47
48 // Like Open, but allows picking multiple files to open.
49 OpenMultiple,
50
51 // Like Open, but selects a folder.
52 OpenFolder,
53
54 // Allows picking a nonexistent file, and prompts to overwrite if the file
55 // already exists.
56 Save,
57 };
58 };
59
60 // Values that may be OR'd together to form the 'flags' parameter of a
61 // ViewHostMsg_UpdateRect_Params structure.
62 struct ViewHostMsg_UpdateRect_Flags {
63 enum {
64 IS_RESIZE_ACK = 1 << 0,
65 IS_RESTORE_ACK = 1 << 1,
66 IS_REPAINT_ACK = 1 << 2,
67 };
68 static bool is_resize_ack(int flags) {
69 return (flags & IS_RESIZE_ACK) != 0;
70 }
71 static bool is_restore_ack(int flags) {
72 return (flags & IS_RESTORE_ACK) != 0;
73 }
74 static bool is_repaint_ack(int flags) {
75 return (flags & IS_REPAINT_ACK) != 0;
76 }
77 };
78
79 struct ViewMsg_Navigate_Type {
29 public: 80 public:
30 enum Value { 81 enum Value {
31 // Reload the page. 82 // Reload the page.
32 RELOAD, 83 RELOAD,
33 84
34 // Reload the page, ignoring any cache entries. 85 // Reload the page, ignoring any cache entries.
35 RELOAD_IGNORING_CACHE, 86 RELOAD_IGNORING_CACHE,
36 87
37 // The navigation is the result of session restore and should honor the 88 // The navigation is the result of session restore and should honor the
38 // page's cache policy while restoring form state. This is set to true if 89 // page's cache policy while restoring form state. This is set to true if
(...skipping 23 matching lines...) Expand all
62 113
63 // The action that should be taken when the find is completed. 114 // The action that should be taken when the find is completed.
64 Action action; 115 Action action;
65 }; 116 };
66 117
67 #endif // CONTENT_COMMON_VIEW_MESSAGES_H_ 118 #endif // CONTENT_COMMON_VIEW_MESSAGES_H_
68 119
69 #define IPC_MESSAGE_START ViewMsgStart 120 #define IPC_MESSAGE_START ViewMsgStart
70 121
71 IPC_ENUM_TRAITS(CSSColors::CSSColorName) 122 IPC_ENUM_TRAITS(CSSColors::CSSColorName)
123 IPC_ENUM_TRAITS(NavigationGesture)
72 IPC_ENUM_TRAITS(PageZoom::Function) 124 IPC_ENUM_TRAITS(PageZoom::Function)
73 IPC_ENUM_TRAITS(RendererPreferencesHintingEnum) 125 IPC_ENUM_TRAITS(RendererPreferencesHintingEnum)
74 IPC_ENUM_TRAITS(RendererPreferencesSubpixelRenderingEnum) 126 IPC_ENUM_TRAITS(RendererPreferencesSubpixelRenderingEnum)
127 IPC_ENUM_TRAITS(ViewHostMsg_RunFileChooser_Mode::Value)
75 IPC_ENUM_TRAITS(ViewMsg_Navigate_Type::Value) 128 IPC_ENUM_TRAITS(ViewMsg_Navigate_Type::Value)
76 IPC_ENUM_TRAITS(ViewMsg_StopFinding_Params::Action) 129 IPC_ENUM_TRAITS(ViewMsg_StopFinding_Params::Action)
77 IPC_ENUM_TRAITS(WebKit::WebContextMenuData::MediaType) 130 IPC_ENUM_TRAITS(WebKit::WebContextMenuData::MediaType)
78 IPC_ENUM_TRAITS(WebKit::WebMediaPlayerAction::Type) 131 IPC_ENUM_TRAITS(WebKit::WebMediaPlayerAction::Type)
132 IPC_ENUM_TRAITS(WebKit::WebPopupType)
79 IPC_ENUM_TRAITS(WebMenuItem::Type) 133 IPC_ENUM_TRAITS(WebMenuItem::Type)
134 IPC_ENUM_TRAITS(WindowContainerType)
135
136 IPC_STRUCT_TRAITS_BEGIN(ContextMenuParams)
137 IPC_STRUCT_TRAITS_MEMBER(media_type)
138 IPC_STRUCT_TRAITS_MEMBER(x)
139 IPC_STRUCT_TRAITS_MEMBER(y)
140 IPC_STRUCT_TRAITS_MEMBER(link_url)
141 IPC_STRUCT_TRAITS_MEMBER(unfiltered_link_url)
142 IPC_STRUCT_TRAITS_MEMBER(src_url)
143 IPC_STRUCT_TRAITS_MEMBER(is_image_blocked)
144 IPC_STRUCT_TRAITS_MEMBER(page_url)
145 IPC_STRUCT_TRAITS_MEMBER(frame_url)
146 IPC_STRUCT_TRAITS_MEMBER(frame_content_state)
147 IPC_STRUCT_TRAITS_MEMBER(media_flags)
148 IPC_STRUCT_TRAITS_MEMBER(selection_text)
149 IPC_STRUCT_TRAITS_MEMBER(misspelled_word)
150 IPC_STRUCT_TRAITS_MEMBER(dictionary_suggestions)
151 IPC_STRUCT_TRAITS_MEMBER(spellcheck_enabled)
152 IPC_STRUCT_TRAITS_MEMBER(is_editable)
153 #if defined(OS_MACOSX)
154 IPC_STRUCT_TRAITS_MEMBER(writing_direction_default)
155 IPC_STRUCT_TRAITS_MEMBER(writing_direction_left_to_right)
156 IPC_STRUCT_TRAITS_MEMBER(writing_direction_right_to_left)
157 #endif // OS_MACOSX
158 IPC_STRUCT_TRAITS_MEMBER(edit_flags)
159 IPC_STRUCT_TRAITS_MEMBER(security_info)
160 IPC_STRUCT_TRAITS_MEMBER(frame_charset)
161 IPC_STRUCT_TRAITS_MEMBER(custom_context)
162 IPC_STRUCT_TRAITS_MEMBER(custom_items)
163 IPC_STRUCT_TRAITS_END()
80 164
81 IPC_STRUCT_TRAITS_BEGIN(EditCommand) 165 IPC_STRUCT_TRAITS_BEGIN(EditCommand)
82 IPC_STRUCT_TRAITS_MEMBER(name) 166 IPC_STRUCT_TRAITS_MEMBER(name)
83 IPC_STRUCT_TRAITS_MEMBER(value) 167 IPC_STRUCT_TRAITS_MEMBER(value)
84 IPC_STRUCT_TRAITS_END() 168 IPC_STRUCT_TRAITS_END()
85 169
170 #if defined(OS_MACOSX)
171 IPC_STRUCT_TRAITS_BEGIN(FontDescriptor)
172 IPC_STRUCT_TRAITS_MEMBER(font_name)
173 IPC_STRUCT_TRAITS_MEMBER(font_point_size)
174 IPC_STRUCT_TRAITS_END()
175 #endif
176
86 IPC_STRUCT_TRAITS_BEGIN(RendererPreferences) 177 IPC_STRUCT_TRAITS_BEGIN(RendererPreferences)
87 IPC_STRUCT_TRAITS_MEMBER(can_accept_load_drops) 178 IPC_STRUCT_TRAITS_MEMBER(can_accept_load_drops)
88 IPC_STRUCT_TRAITS_MEMBER(should_antialias_text) 179 IPC_STRUCT_TRAITS_MEMBER(should_antialias_text)
89 IPC_STRUCT_TRAITS_MEMBER(hinting) 180 IPC_STRUCT_TRAITS_MEMBER(hinting)
90 IPC_STRUCT_TRAITS_MEMBER(subpixel_rendering) 181 IPC_STRUCT_TRAITS_MEMBER(subpixel_rendering)
91 IPC_STRUCT_TRAITS_MEMBER(focus_ring_color) 182 IPC_STRUCT_TRAITS_MEMBER(focus_ring_color)
92 IPC_STRUCT_TRAITS_MEMBER(thumb_active_color) 183 IPC_STRUCT_TRAITS_MEMBER(thumb_active_color)
93 IPC_STRUCT_TRAITS_MEMBER(thumb_inactive_color) 184 IPC_STRUCT_TRAITS_MEMBER(thumb_inactive_color)
94 IPC_STRUCT_TRAITS_MEMBER(track_color) 185 IPC_STRUCT_TRAITS_MEMBER(track_color)
95 IPC_STRUCT_TRAITS_MEMBER(active_selection_bg_color) 186 IPC_STRUCT_TRAITS_MEMBER(active_selection_bg_color)
(...skipping 19 matching lines...) Expand all
115 IPC_STRUCT_TRAITS_MEMBER(forward) 206 IPC_STRUCT_TRAITS_MEMBER(forward)
116 IPC_STRUCT_TRAITS_MEMBER(matchCase) 207 IPC_STRUCT_TRAITS_MEMBER(matchCase)
117 IPC_STRUCT_TRAITS_MEMBER(findNext) 208 IPC_STRUCT_TRAITS_MEMBER(findNext)
118 IPC_STRUCT_TRAITS_END() 209 IPC_STRUCT_TRAITS_END()
119 210
120 IPC_STRUCT_TRAITS_BEGIN(WebKit::WebMediaPlayerAction) 211 IPC_STRUCT_TRAITS_BEGIN(WebKit::WebMediaPlayerAction)
121 IPC_STRUCT_TRAITS_MEMBER(type) 212 IPC_STRUCT_TRAITS_MEMBER(type)
122 IPC_STRUCT_TRAITS_MEMBER(enable) 213 IPC_STRUCT_TRAITS_MEMBER(enable)
123 IPC_STRUCT_TRAITS_END() 214 IPC_STRUCT_TRAITS_END()
124 215
216 IPC_STRUCT_TRAITS_BEGIN(WebKit::WebRect)
217 IPC_STRUCT_TRAITS_MEMBER(x)
218 IPC_STRUCT_TRAITS_MEMBER(y)
219 IPC_STRUCT_TRAITS_MEMBER(width)
220 IPC_STRUCT_TRAITS_MEMBER(height)
221 IPC_STRUCT_TRAITS_END()
222
223 IPC_STRUCT_TRAITS_BEGIN(WebKit::WebScreenInfo)
224 IPC_STRUCT_TRAITS_MEMBER(depth)
225 IPC_STRUCT_TRAITS_MEMBER(depthPerComponent)
226 IPC_STRUCT_TRAITS_MEMBER(isMonochrome)
227 IPC_STRUCT_TRAITS_MEMBER(rect)
228 IPC_STRUCT_TRAITS_MEMBER(availableRect)
229 IPC_STRUCT_TRAITS_END()
230
125 IPC_STRUCT_TRAITS_BEGIN(WebPreferences) 231 IPC_STRUCT_TRAITS_BEGIN(WebPreferences)
126 IPC_STRUCT_TRAITS_MEMBER(standard_font_family) 232 IPC_STRUCT_TRAITS_MEMBER(standard_font_family)
127 IPC_STRUCT_TRAITS_MEMBER(fixed_font_family) 233 IPC_STRUCT_TRAITS_MEMBER(fixed_font_family)
128 IPC_STRUCT_TRAITS_MEMBER(serif_font_family) 234 IPC_STRUCT_TRAITS_MEMBER(serif_font_family)
129 IPC_STRUCT_TRAITS_MEMBER(sans_serif_font_family) 235 IPC_STRUCT_TRAITS_MEMBER(sans_serif_font_family)
130 IPC_STRUCT_TRAITS_MEMBER(cursive_font_family) 236 IPC_STRUCT_TRAITS_MEMBER(cursive_font_family)
131 IPC_STRUCT_TRAITS_MEMBER(fantasy_font_family) 237 IPC_STRUCT_TRAITS_MEMBER(fantasy_font_family)
132 IPC_STRUCT_TRAITS_MEMBER(default_font_size) 238 IPC_STRUCT_TRAITS_MEMBER(default_font_size)
133 IPC_STRUCT_TRAITS_MEMBER(default_fixed_font_size) 239 IPC_STRUCT_TRAITS_MEMBER(default_fixed_font_size)
134 IPC_STRUCT_TRAITS_MEMBER(minimum_font_size) 240 IPC_STRUCT_TRAITS_MEMBER(minimum_font_size)
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 IPC_STRUCT_TRAITS_MEMBER(enabled) 296 IPC_STRUCT_TRAITS_MEMBER(enabled)
191 IPC_STRUCT_TRAITS_MEMBER(checked) 297 IPC_STRUCT_TRAITS_MEMBER(checked)
192 IPC_STRUCT_TRAITS_MEMBER(submenu) 298 IPC_STRUCT_TRAITS_MEMBER(submenu)
193 IPC_STRUCT_TRAITS_END() 299 IPC_STRUCT_TRAITS_END()
194 300
195 IPC_STRUCT_TRAITS_BEGIN(webkit_glue::CustomContextMenuContext) 301 IPC_STRUCT_TRAITS_BEGIN(webkit_glue::CustomContextMenuContext)
196 IPC_STRUCT_TRAITS_MEMBER(is_pepper_menu) 302 IPC_STRUCT_TRAITS_MEMBER(is_pepper_menu)
197 IPC_STRUCT_TRAITS_MEMBER(request_id) 303 IPC_STRUCT_TRAITS_MEMBER(request_id)
198 IPC_STRUCT_TRAITS_END() 304 IPC_STRUCT_TRAITS_END()
199 305
200 IPC_STRUCT_TRAITS_BEGIN(ContextMenuParams) 306 IPC_STRUCT_TRAITS_BEGIN(webkit_glue::WebCookie)
201 IPC_STRUCT_TRAITS_MEMBER(media_type) 307 IPC_STRUCT_TRAITS_MEMBER(name)
202 IPC_STRUCT_TRAITS_MEMBER(x) 308 IPC_STRUCT_TRAITS_MEMBER(value)
203 IPC_STRUCT_TRAITS_MEMBER(y) 309 IPC_STRUCT_TRAITS_MEMBER(domain)
204 IPC_STRUCT_TRAITS_MEMBER(link_url) 310 IPC_STRUCT_TRAITS_MEMBER(path)
205 IPC_STRUCT_TRAITS_MEMBER(unfiltered_link_url) 311 IPC_STRUCT_TRAITS_MEMBER(expires)
206 IPC_STRUCT_TRAITS_MEMBER(src_url) 312 IPC_STRUCT_TRAITS_MEMBER(http_only)
207 IPC_STRUCT_TRAITS_MEMBER(is_image_blocked) 313 IPC_STRUCT_TRAITS_MEMBER(secure)
208 IPC_STRUCT_TRAITS_MEMBER(page_url) 314 IPC_STRUCT_TRAITS_MEMBER(session)
209 IPC_STRUCT_TRAITS_MEMBER(frame_url)
210 IPC_STRUCT_TRAITS_MEMBER(frame_content_state)
211 IPC_STRUCT_TRAITS_MEMBER(media_flags)
212 IPC_STRUCT_TRAITS_MEMBER(selection_text)
213 IPC_STRUCT_TRAITS_MEMBER(misspelled_word)
214 IPC_STRUCT_TRAITS_MEMBER(dictionary_suggestions)
215 IPC_STRUCT_TRAITS_MEMBER(spellcheck_enabled)
216 IPC_STRUCT_TRAITS_MEMBER(is_editable)
217 #if defined(OS_MACOSX)
218 IPC_STRUCT_TRAITS_MEMBER(writing_direction_default)
219 IPC_STRUCT_TRAITS_MEMBER(writing_direction_left_to_right)
220 IPC_STRUCT_TRAITS_MEMBER(writing_direction_right_to_left)
221 #endif // OS_MACOSX
222 IPC_STRUCT_TRAITS_MEMBER(edit_flags)
223 IPC_STRUCT_TRAITS_MEMBER(security_info)
224 IPC_STRUCT_TRAITS_MEMBER(frame_charset)
225 IPC_STRUCT_TRAITS_MEMBER(custom_context)
226 IPC_STRUCT_TRAITS_MEMBER(custom_items)
227 IPC_STRUCT_TRAITS_END() 315 IPC_STRUCT_TRAITS_END()
228 316
229 IPC_STRUCT_BEGIN(ViewMsg_ClosePage_Params) 317 IPC_STRUCT_TRAITS_BEGIN(webkit::npapi::WebPluginGeometry)
230 // The identifier of the RenderProcessHost for the currently closing view. 318 IPC_STRUCT_TRAITS_MEMBER(window)
231 // 319 IPC_STRUCT_TRAITS_MEMBER(window_rect)
232 // These first two parameters are technically redundant since they are 320 IPC_STRUCT_TRAITS_MEMBER(clip_rect)
233 // needed only when processing the ACK message, and the processor 321 IPC_STRUCT_TRAITS_MEMBER(cutout_rects)
234 // theoretically knows both the process and route ID. However, this is 322 IPC_STRUCT_TRAITS_MEMBER(rects_valid)
235 // difficult to figure out with our current implementation, so this 323 IPC_STRUCT_TRAITS_MEMBER(visible)
236 // information is duplicate here. 324 IPC_STRUCT_TRAITS_END()
237 IPC_STRUCT_MEMBER(int, closing_process_id)
238 325
239 // The route identifier for the currently closing RenderView. 326 IPC_STRUCT_TRAITS_BEGIN(webkit::npapi::WebPluginMimeType)
240 IPC_STRUCT_MEMBER(int, closing_route_id) 327 IPC_STRUCT_TRAITS_MEMBER(mime_type)
328 IPC_STRUCT_TRAITS_MEMBER(file_extensions)
329 IPC_STRUCT_TRAITS_MEMBER(description)
330 IPC_STRUCT_TRAITS_END()
241 331
242 // True when this close is for the first (closing) tab of a cross-site 332 IPC_STRUCT_TRAITS_BEGIN(webkit::npapi::WebPluginInfo)
243 // transition where we switch processes. False indicates the close is for the 333 IPC_STRUCT_TRAITS_MEMBER(name)
244 // entire tab. 334 IPC_STRUCT_TRAITS_MEMBER(path)
245 // 335 IPC_STRUCT_TRAITS_MEMBER(version)
246 // When true, the new_* variables below must be filled in. Otherwise they must 336 IPC_STRUCT_TRAITS_MEMBER(desc)
247 // both be -1. 337 IPC_STRUCT_TRAITS_MEMBER(mime_types)
248 IPC_STRUCT_MEMBER(bool, for_cross_site_transition) 338 IPC_STRUCT_TRAITS_MEMBER(enabled)
339 IPC_STRUCT_TRAITS_END()
249 340
250 // The identifier of the RenderProcessHost for the new view attempting to 341 IPC_STRUCT_BEGIN(ViewHostMsg_CreateWindow_Params)
251 // replace the closing one above. This must be valid when 342 // Routing ID of the view initiating the open.
252 // for_cross_site_transition is set, and must be -1 otherwise. 343 IPC_STRUCT_MEMBER(int, opener_id)
253 IPC_STRUCT_MEMBER(int, new_render_process_host_id)
254 344
255 // The identifier of the *request* the new view made that is causing the 345 // True if this open request came in the context of a user gesture.
256 // cross-site transition. This is *not* a route_id, but the request that we 346 IPC_STRUCT_MEMBER(bool, user_gesture)
257 // will resume once the ACK from the closing view has been received. This 347
258 // must be valid when for_cross_site_transition is set, and must be -1 348 // Type of window requested.
259 // otherwise. 349 IPC_STRUCT_MEMBER(WindowContainerType, window_container_type)
260 IPC_STRUCT_MEMBER(int, new_request_id) 350
351 // The session storage namespace ID this view should use.
352 IPC_STRUCT_MEMBER(int64, session_storage_namespace_id)
353
354 // The name of the resulting frame that should be created (empty if none
355 // has been specified).
356 IPC_STRUCT_MEMBER(string16, frame_name)
357
358 // The frame identifier of the frame initiating the open.
359 IPC_STRUCT_MEMBER(int64, opener_frame_id)
360
361 // The URL of the frame initiating the open.
362 IPC_STRUCT_MEMBER(GURL, opener_url)
363
364 // The security origin of the frame initiating the open.
365 IPC_STRUCT_MEMBER(std::string, opener_security_origin)
366
367 // The URL that will be loaded in the new window (empty if none has been
368 // sepcified).
369 IPC_STRUCT_MEMBER(GURL, target_url)
261 IPC_STRUCT_END() 370 IPC_STRUCT_END()
262 371
372
263 IPC_STRUCT_BEGIN(ViewHostMsg_CreateWorker_Params) 373 IPC_STRUCT_BEGIN(ViewHostMsg_CreateWorker_Params)
264 // URL for the worker script. 374 // URL for the worker script.
265 IPC_STRUCT_MEMBER(GURL, url) 375 IPC_STRUCT_MEMBER(GURL, url)
266 376
267 // True if this is a SharedWorker, false if it is a dedicated Worker. 377 // True if this is a SharedWorker, false if it is a dedicated Worker.
268 IPC_STRUCT_MEMBER(bool, is_shared) 378 IPC_STRUCT_MEMBER(bool, is_shared)
269 379
270 // Name for a SharedWorker, otherwise empty string. 380 // Name for a SharedWorker, otherwise empty string.
271 IPC_STRUCT_MEMBER(string16, name) 381 IPC_STRUCT_MEMBER(string16, name)
272 382
273 // The ID of the parent document (unique within parent renderer). 383 // The ID of the parent document (unique within parent renderer).
274 IPC_STRUCT_MEMBER(unsigned long long, document_id) 384 IPC_STRUCT_MEMBER(unsigned long long, document_id)
275 385
276 // RenderView routing id used to send messages back to the parent. 386 // RenderView routing id used to send messages back to the parent.
277 IPC_STRUCT_MEMBER(int, render_view_route_id) 387 IPC_STRUCT_MEMBER(int, render_view_route_id)
278 388
279 // The route ID to associate with the worker. If MSG_ROUTING_NONE is passed, 389 // The route ID to associate with the worker. If MSG_ROUTING_NONE is passed,
280 // a new unique ID is created and assigned to the worker. 390 // a new unique ID is created and assigned to the worker.
281 IPC_STRUCT_MEMBER(int, route_id) 391 IPC_STRUCT_MEMBER(int, route_id)
282 392
283 // The ID of the parent's appcache host, only valid for dedicated workers. 393 // The ID of the parent's appcache host, only valid for dedicated workers.
284 IPC_STRUCT_MEMBER(int, parent_appcache_host_id) 394 IPC_STRUCT_MEMBER(int, parent_appcache_host_id)
285 395
286 // The ID of the appcache the main shared worker script resource was loaded 396 // The ID of the appcache the main shared worker script resource was loaded
287 // from, only valid for shared workers. 397 // from, only valid for shared workers.
288 IPC_STRUCT_MEMBER(int64, script_resource_appcache_id) 398 IPC_STRUCT_MEMBER(int64, script_resource_appcache_id)
289 IPC_STRUCT_END() 399 IPC_STRUCT_END()
290 400
401 // Parameters structure for ViewHostMsg_FrameNavigate, which has too many data
402 // parameters to be reasonably put in a predefined IPC message.
403 IPC_STRUCT_BEGIN(ViewHostMsg_FrameNavigate_Params)
404 // Page ID of this navigation. The renderer creates a new unique page ID
405 // anytime a new session history entry is created. This means you'll get new
406 // page IDs for user actions, and the old page IDs will be reloaded when
407 // iframes are loaded automatically.
408 IPC_STRUCT_MEMBER(int32, page_id)
409
410 // The frame ID for this navigation. The frame ID uniquely identifies the
411 // frame the navigation happened in for a given renderer.
412 IPC_STRUCT_MEMBER(int64, frame_id)
413
414 // URL of the page being loaded.
415 IPC_STRUCT_MEMBER(GURL, url)
416
417 // URL of the referrer of this load. WebKit generates this based on the
418 // source of the event that caused the load.
419 IPC_STRUCT_MEMBER(GURL, referrer)
420
421 // The type of transition.
422 IPC_STRUCT_MEMBER(PageTransition::Type, transition)
423
424 // Lists the redirects that occurred on the way to the current page. This
425 // vector has the same format as reported by the WebDataSource in the glue,
426 // with the current page being the last one in the list (so even when
427 // there's no redirect, there will be one entry in the list.
428 IPC_STRUCT_MEMBER(std::vector<GURL>, redirects)
429
430 // Set to false if we want to update the session history but not update
431 // the browser history. E.g., on unreachable urls.
432 IPC_STRUCT_MEMBER(bool, should_update_history)
433
434 // See SearchableFormData for a description of these.
435 IPC_STRUCT_MEMBER(GURL, searchable_form_url)
436 IPC_STRUCT_MEMBER(std::string, searchable_form_encoding)
437
438 // See password_form.h.
439 IPC_STRUCT_MEMBER(webkit_glue::PasswordForm, password_form)
440
441 // Information regarding the security of the connection (empty if the
442 // connection was not secure).
443 IPC_STRUCT_MEMBER(std::string, security_info)
444
445 // The gesture that initiated this navigation.
446 IPC_STRUCT_MEMBER(NavigationGesture, gesture)
447
448 // Contents MIME type of main frame.
449 IPC_STRUCT_MEMBER(std::string, contents_mime_type)
450
451 // True if this was a post request.
452 IPC_STRUCT_MEMBER(bool, is_post)
453
454 // Whether the frame navigation resulted in no change to the documents within
455 // the page. For example, the navigation may have just resulted in scrolling
456 // to a named anchor.
457 IPC_STRUCT_MEMBER(bool, was_within_same_page)
458
459 // The status code of the HTTP request.
460 IPC_STRUCT_MEMBER(int, http_status_code)
461
462 // Remote address of the socket which fetched this resource.
463 IPC_STRUCT_MEMBER(net::HostPortPair, socket_address)
464
465 // True if the connection was proxied. In this case, socket_address
466 // will represent the address of the proxy, rather than the remote host.
467 IPC_STRUCT_MEMBER(bool, was_fetched_via_proxy)
468
469 // Serialized history item state to store in the navigation entry.
470 IPC_STRUCT_MEMBER(std::string, content_state)
471 IPC_STRUCT_END()
472
291 IPC_STRUCT_BEGIN(ViewMsg_Navigate_Params) 473 IPC_STRUCT_BEGIN(ViewMsg_Navigate_Params)
292 // The page_id for this navigation, or -1 if it is a new navigation. Back, 474 // The page_id for this navigation, or -1 if it is a new navigation. Back,
293 // Forward, and Reload navigations should have a valid page_id. If the load 475 // Forward, and Reload navigations should have a valid page_id. If the load
294 // succeeds, then this page_id will be reflected in the resultant 476 // succeeds, then this page_id will be reflected in the resultant
295 // ViewHostMsg_FrameNavigate message. 477 // ViewHostMsg_FrameNavigate message.
296 IPC_STRUCT_MEMBER(int32, page_id) 478 IPC_STRUCT_MEMBER(int32, page_id)
297 479
298 // If page_id is -1, then pending_history_list_offset will also be -1. 480 // If page_id is -1, then pending_history_list_offset will also be -1.
299 // Otherwise, it contains the offset into the history list corresponding to 481 // Otherwise, it contains the offset into the history list corresponding to
300 // the current navigation. 482 // the current navigation.
(...skipping 21 matching lines...) Expand all
322 // Type of navigation. 504 // Type of navigation.
323 IPC_STRUCT_MEMBER(ViewMsg_Navigate_Type::Value, navigation_type) 505 IPC_STRUCT_MEMBER(ViewMsg_Navigate_Type::Value, navigation_type)
324 506
325 // The time the request was created 507 // The time the request was created
326 IPC_STRUCT_MEMBER(base::Time, request_time) 508 IPC_STRUCT_MEMBER(base::Time, request_time)
327 509
328 // Extra headers (separated by \n) to send during the request. 510 // Extra headers (separated by \n) to send during the request.
329 IPC_STRUCT_MEMBER(std::string, extra_headers) 511 IPC_STRUCT_MEMBER(std::string, extra_headers)
330 IPC_STRUCT_END() 512 IPC_STRUCT_END()
331 513
514 IPC_STRUCT_BEGIN(ViewHostMsg_RunFileChooser_Params)
515 IPC_STRUCT_MEMBER(ViewHostMsg_RunFileChooser_Mode::Value, mode)
516
517 // Title to be used for the dialog. This may be empty for the default title,
518 // which will be either "Open" or "Save" depending on the mode.
519 IPC_STRUCT_MEMBER(string16, title)
520
521 // Default file name to select in the dialog.
522 IPC_STRUCT_MEMBER(FilePath, default_file_name)
523
524 // A comma-separated MIME types such as "audio/*,text/plain", that is used
525 // to restrict selectable files to such types.
526 IPC_STRUCT_MEMBER(string16, accept_types)
527 IPC_STRUCT_END()
528
332 // This message is used for supporting popup menus on Mac OS X using native 529 // This message is used for supporting popup menus on Mac OS X using native
333 // Cocoa controls. The renderer sends us this message which we use to populate 530 // Cocoa controls. The renderer sends us this message which we use to populate
334 // the popup menu. 531 // the popup menu.
335 IPC_STRUCT_BEGIN(ViewHostMsg_ShowPopup_Params) 532 IPC_STRUCT_BEGIN(ViewHostMsg_ShowPopup_Params)
336 // Position on the screen. 533 // Position on the screen.
337 IPC_STRUCT_MEMBER(gfx::Rect, bounds) 534 IPC_STRUCT_MEMBER(gfx::Rect, bounds)
338 535
339 // The height of each item in the menu. 536 // The height of each item in the menu.
340 IPC_STRUCT_MEMBER(int, item_height) 537 IPC_STRUCT_MEMBER(int, item_height)
341 538
342 // The size of the font to use for those items. 539 // The size of the font to use for those items.
343 IPC_STRUCT_MEMBER(double, item_font_size) 540 IPC_STRUCT_MEMBER(double, item_font_size)
344 541
345 // The currently selected (displayed) item in the menu. 542 // The currently selected (displayed) item in the menu.
346 IPC_STRUCT_MEMBER(int, selected_item) 543 IPC_STRUCT_MEMBER(int, selected_item)
347 544
348 // The entire list of items in the popup menu. 545 // The entire list of items in the popup menu.
349 IPC_STRUCT_MEMBER(std::vector<WebMenuItem>, popup_items) 546 IPC_STRUCT_MEMBER(std::vector<WebMenuItem>, popup_items)
350 547
351 // Whether items should be right-aligned. 548 // Whether items should be right-aligned.
352 IPC_STRUCT_MEMBER(bool, right_aligned) 549 IPC_STRUCT_MEMBER(bool, right_aligned)
353 IPC_STRUCT_END() 550 IPC_STRUCT_END()
354 551
552 IPC_STRUCT_BEGIN(ViewHostMsg_UpdateRect_Params)
553 // The bitmap to be painted into the view at the locations specified by
554 // update_rects.
555 IPC_STRUCT_MEMBER(TransportDIB::Id, bitmap)
556
557 // The position and size of the bitmap.
558 IPC_STRUCT_MEMBER(gfx::Rect, bitmap_rect)
559
560 // The scroll offset. Only one of these can be non-zero, and if they are
561 // both zero, then it means there is no scrolling and the scroll_rect is
562 // ignored.
563 IPC_STRUCT_MEMBER(int, dx)
564 IPC_STRUCT_MEMBER(int, dy)
565
566 // The rectangular region to scroll.
567 IPC_STRUCT_MEMBER(gfx::Rect, scroll_rect)
568
569 // The scroll offset of the render view.
570 IPC_STRUCT_MEMBER(gfx::Point, scroll_offset)
571
572 // The regions of the bitmap (in view coords) that contain updated pixels.
573 // In the case of scrolling, this includes the scroll damage rect.
574 IPC_STRUCT_MEMBER(std::vector<gfx::Rect>, copy_rects)
575
576 // The size of the RenderView when this message was generated. This is
577 // included so the host knows how large the view is from the perspective of
578 // the renderer process. This is necessary in case a resize operation is in
579 // progress.
580 IPC_STRUCT_MEMBER(gfx::Size, view_size)
581
582 // The area of the RenderView reserved for resize corner when this message
583 // was generated. Reported for the same reason as view_size is.
584 IPC_STRUCT_MEMBER(gfx::Rect, resizer_rect)
585
586 // New window locations for plugin child windows.
587 IPC_STRUCT_MEMBER(std::vector<webkit::npapi::WebPluginGeometry>,
588 plugin_window_moves)
589
590 // The following describes the various bits that may be set in flags:
591 //
592 // ViewHostMsg_UpdateRect_Flags::IS_RESIZE_ACK
593 // Indicates that this is a response to a ViewMsg_Resize message.
594 //
595 // ViewHostMsg_UpdateRect_Flags::IS_RESTORE_ACK
596 // Indicates that this is a response to a ViewMsg_WasRestored message.
597 //
598 // ViewHostMsg_UpdateRect_Flags::IS_REPAINT_ACK
599 // Indicates that this is a response to a ViewMsg_Repaint message.
600 //
601 // If flags is zero, then this message corresponds to an unsoliticed paint
602 // request by the render view. Any of the above bits may be set in flags,
603 // which would indicate that this paint message is an ACK for multiple
604 // request messages.
605 IPC_STRUCT_MEMBER(int, flags)
606 IPC_STRUCT_END()
607
608 IPC_STRUCT_BEGIN(ViewMsg_ClosePage_Params)
609 // The identifier of the RenderProcessHost for the currently closing view.
610 //
611 // These first two parameters are technically redundant since they are
612 // needed only when processing the ACK message, and the processor
613 // theoretically knows both the process and route ID. However, this is
614 // difficult to figure out with our current implementation, so this
615 // information is duplicate here.
616 IPC_STRUCT_MEMBER(int, closing_process_id)
617
618 // The route identifier for the currently closing RenderView.
619 IPC_STRUCT_MEMBER(int, closing_route_id)
620
621 // True when this close is for the first (closing) tab of a cross-site
622 // transition where we switch processes. False indicates the close is for the
623 // entire tab.
624 //
625 // When true, the new_* variables below must be filled in. Otherwise they must
626 // both be -1.
627 IPC_STRUCT_MEMBER(bool, for_cross_site_transition)
628
629 // The identifier of the RenderProcessHost for the new view attempting to
630 // replace the closing one above. This must be valid when
631 // for_cross_site_transition is set, and must be -1 otherwise.
632 IPC_STRUCT_MEMBER(int, new_render_process_host_id)
633
634 // The identifier of the *request* the new view made that is causing the
635 // cross-site transition. This is *not* a route_id, but the request that we
636 // will resume once the ACK from the closing view has been received. This
637 // must be valid when for_cross_site_transition is set, and must be -1
638 // otherwise.
639 IPC_STRUCT_MEMBER(int, new_request_id)
640 IPC_STRUCT_END()
641
355 IPC_STRUCT_BEGIN(ViewMsg_New_Params) 642 IPC_STRUCT_BEGIN(ViewMsg_New_Params)
356 // The parent window's id. 643 // The parent window's id.
357 IPC_STRUCT_MEMBER(gfx::NativeViewId, parent_window) 644 IPC_STRUCT_MEMBER(gfx::NativeViewId, parent_window)
358 645
359 // Renderer-wide preferences. 646 // Renderer-wide preferences.
360 IPC_STRUCT_MEMBER(RendererPreferences, renderer_preferences) 647 IPC_STRUCT_MEMBER(RendererPreferences, renderer_preferences)
361 648
362 // Preferences for this view. 649 // Preferences for this view.
363 IPC_STRUCT_MEMBER(WebPreferences, web_preferences) 650 IPC_STRUCT_MEMBER(WebPreferences, web_preferences)
364 651
(...skipping 414 matching lines...) Expand 10 before | Expand all | Expand 10 after
779 int /* message_id */) 1066 int /* message_id */)
780 1067
781 // Tells the renderer that the network state has changed and that 1068 // Tells the renderer that the network state has changed and that
782 // window.navigator.onLine should be updated for all WebViews. 1069 // window.navigator.onLine should be updated for all WebViews.
783 IPC_MESSAGE_ROUTED1(ViewMsg_NetworkStateChanged, 1070 IPC_MESSAGE_ROUTED1(ViewMsg_NetworkStateChanged,
784 bool /* online */) 1071 bool /* online */)
785 1072
786 1073
787 // Messages sent from the renderer to the browser. 1074 // Messages sent from the renderer to the browser.
788 1075
1076 // Sent by the renderer when it is creating a new window. The browser creates
1077 // a tab for it and responds with a ViewMsg_CreatingNew_ACK. If route_id is
1078 // MSG_ROUTING_NONE, the view couldn't be created.
1079 IPC_SYNC_MESSAGE_CONTROL1_2(ViewHostMsg_CreateWindow,
1080 ViewHostMsg_CreateWindow_Params,
1081 int /* route_id */,
1082 int64 /* cloned_session_storage_namespace_id */)
1083
1084 // Similar to ViewHostMsg_CreateWindow, except used for sub-widgets, like
1085 // <select> dropdowns. This message is sent to the TabContents that
1086 // contains the widget being created.
1087 IPC_SYNC_MESSAGE_CONTROL2_1(ViewHostMsg_CreateWidget,
1088 int /* opener_id */,
1089 WebKit::WebPopupType /* popup type */,
1090 int /* route_id */)
1091
1092 // Similar to ViewHostMsg_CreateWidget except the widget is a full screen
1093 // window.
1094 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_CreateFullscreenWidget,
1095 int /* opener_id */,
1096 int /* route_id */)
1097
1098 // These three messages are sent to the parent RenderViewHost to display the
1099 // page/widget that was created by
1100 // CreateWindow/CreateWidget/CreateFullscreenWidget. routing_id
1101 // refers to the id that was returned from the Create message above.
1102 // The initial_position parameter is a rectangle in screen coordinates.
1103 //
1104 // FUTURE: there will probably be flags here to control if the result is
1105 // in a new window.
1106 IPC_MESSAGE_ROUTED4(ViewHostMsg_ShowView,
1107 int /* route_id */,
1108 WindowOpenDisposition /* disposition */,
1109 gfx::Rect /* initial_pos */,
1110 bool /* opened_by_user_gesture */)
1111
1112 IPC_MESSAGE_ROUTED2(ViewHostMsg_ShowWidget,
1113 int /* route_id */,
1114 gfx::Rect /* initial_pos */)
1115
1116 // Message to show a full screen widget.
1117 IPC_MESSAGE_ROUTED1(ViewHostMsg_ShowFullscreenWidget,
1118 int /* route_id */)
1119
1120 // This message is sent after ViewHostMsg_ShowView to cause the RenderView
1121 // to run in a modal fashion until it is closed.
1122 IPC_SYNC_MESSAGE_ROUTED0_0(ViewHostMsg_RunModal)
1123
1124 // Indicates the renderer is ready in response to a ViewMsg_New or
1125 // a ViewMsg_CreatingNew_ACK.
1126 IPC_MESSAGE_ROUTED0(ViewHostMsg_RenderViewReady)
1127
1128 // Indicates the renderer process is gone. This actually is sent by the
1129 // browser process to itself, but keeps the interface cleaner.
1130 IPC_MESSAGE_ROUTED2(ViewHostMsg_RenderViewGone,
1131 int, /* this really is base::TerminationStatus */
1132 int /* exit_code */)
1133
1134 // Sent by the renderer process to request that the browser close the view.
1135 // This corresponds to the window.close() API, and the browser may ignore
1136 // this message. Otherwise, the browser will generates a ViewMsg_Close
1137 // message to close the view.
1138 IPC_MESSAGE_ROUTED0(ViewHostMsg_Close)
1139
1140 // Sent by the renderer process to request that the browser move the view.
1141 // This corresponds to the window.resizeTo() and window.moveTo() APIs, and
1142 // the browser may ignore this message.
1143 IPC_MESSAGE_ROUTED1(ViewHostMsg_RequestMove,
1144 gfx::Rect /* position */)
1145
1146 // Notifies the browser that a frame in the view has changed. This message
1147 // has a lot of parameters and is packed/unpacked by functions defined in
1148 // render_messages.h.
1149 IPC_MESSAGE_ROUTED1(ViewHostMsg_FrameNavigate,
1150 ViewHostMsg_FrameNavigate_Params)
1151
789 // Used to tell the parent that the user right clicked on an area of the 1152 // Used to tell the parent that the user right clicked on an area of the
790 // content area, and a context menu should be shown for it. The params 1153 // content area, and a context menu should be shown for it. The params
791 // object contains information about the node(s) that were selected when the 1154 // object contains information about the node(s) that were selected when the
792 // user right clicked. 1155 // user right clicked.
793 IPC_MESSAGE_ROUTED1(ViewHostMsg_ContextMenu, ContextMenuParams) 1156 IPC_MESSAGE_ROUTED1(ViewHostMsg_ContextMenu, ContextMenuParams)
794 1157
795 // Message to show a popup menu using native cocoa controls (Mac only). 1158 // Message to show a popup menu using native cocoa controls (Mac only).
796 IPC_MESSAGE_ROUTED1(ViewHostMsg_ShowPopup, 1159 IPC_MESSAGE_ROUTED1(ViewHostMsg_ShowPopup,
797 ViewHostMsg_ShowPopup_Params) 1160 ViewHostMsg_ShowPopup_Params)
798 1161
(...skipping 23 matching lines...) Expand all
822 // onbeforeunload handler): true if the user decided to proceed with leaving 1185 // onbeforeunload handler): true if the user decided to proceed with leaving
823 // the page. 1186 // the page.
824 IPC_MESSAGE_ROUTED1(ViewHostMsg_ShouldClose_ACK, 1187 IPC_MESSAGE_ROUTED1(ViewHostMsg_ShouldClose_ACK,
825 bool /* proceed */) 1188 bool /* proceed */)
826 1189
827 // Indicates that the current page has been closed, after a ClosePage 1190 // Indicates that the current page has been closed, after a ClosePage
828 // message. The parameters are just echoed from the ClosePage request. 1191 // message. The parameters are just echoed from the ClosePage request.
829 IPC_MESSAGE_ROUTED1(ViewHostMsg_ClosePage_ACK, 1192 IPC_MESSAGE_ROUTED1(ViewHostMsg_ClosePage_ACK,
830 ViewMsg_ClosePage_Params) 1193 ViewMsg_ClosePage_Params)
831 1194
1195 // Notifies the browser that we have session history information.
1196 // page_id: unique ID that allows us to distinguish between history entries.
1197 IPC_MESSAGE_ROUTED2(ViewHostMsg_UpdateState,
1198 int32 /* page_id */,
1199 std::string /* state */)
1200
1201 // Notifies the browser that a document has been loaded in a frame.
1202 IPC_MESSAGE_ROUTED1(ViewHostMsg_DocumentLoadedInFrame,
1203 int64 /* frame_id */)
1204
1205 // Notifies the browser that a frame finished loading.
1206 IPC_MESSAGE_ROUTED1(ViewHostMsg_DidFinishLoad,
1207 int64 /* frame_id */)
1208
1209 // Changes the title for the page in the UI when the page is navigated or the
1210 // title changes.
1211 // TODO(darin): use a UTF-8 string to reduce data size
1212 IPC_MESSAGE_ROUTED2(ViewHostMsg_UpdateTitle,
1213 int32,
1214 std::wstring)
1215
1216 // Changes the icon url for the page in the UI.
1217 IPC_MESSAGE_ROUTED2(ViewHostMsg_UpdateIconURL,
1218 int32,
1219 GURL)
1220
1221 // Change the encoding name of the page in UI when the page has detected
1222 // proper encoding name.
1223 IPC_MESSAGE_ROUTED1(ViewHostMsg_UpdateEncoding,
1224 std::string /* new encoding name */)
1225
1226 // Notifies the browser that we want to show a destination url for a potential
1227 // action (e.g. when the user is hovering over a link).
1228 IPC_MESSAGE_ROUTED2(ViewHostMsg_UpdateTargetURL,
1229 int32,
1230 GURL)
1231
1232 // Sent when the renderer starts loading the page. This corresponds to
1233 // WebKit's notion of the throbber starting. Note that sometimes you may get
1234 // duplicates of these during a single load.
1235 IPC_MESSAGE_ROUTED0(ViewHostMsg_DidStartLoading)
1236
1237 // Sent when the renderer is done loading a page. This corresponds to WebKit's
1238 // notion of the throbber stopping.
1239 IPC_MESSAGE_ROUTED0(ViewHostMsg_DidStopLoading)
1240
1241 // Sent when the renderer main frame has made progress loading.
1242 IPC_MESSAGE_ROUTED1(ViewHostMsg_DidChangeLoadProgress,
1243 double /* load_progress */)
1244
1245 // Sent when the document element is available for the toplevel frame. This
1246 // happens after the page starts loading, but before all resources are
1247 // finished.
1248 IPC_MESSAGE_ROUTED0(ViewHostMsg_DocumentAvailableInMainFrame)
1249
1250 // Sent when after the onload handler has been invoked for the document
1251 // in the toplevel frame.
1252 IPC_MESSAGE_ROUTED1(ViewHostMsg_DocumentOnLoadCompletedInMainFrame,
1253 int32 /* page_id */)
1254
1255 // Sent when the renderer loads a resource from its memory cache.
1256 // The security info is non empty if the resource was originally loaded over
1257 // a secure connection.
1258 // Note: May only be sent once per URL per frame per committed load.
1259 IPC_MESSAGE_ROUTED2(ViewHostMsg_DidLoadResourceFromMemoryCache,
1260 GURL /* url */,
1261 std::string /* security info */)
1262
1263 // Sent when the renderer displays insecure content in a secure page.
1264 IPC_MESSAGE_ROUTED0(ViewHostMsg_DidDisplayInsecureContent)
1265
1266 // Sent when the renderer runs insecure content in a secure origin.
1267 IPC_MESSAGE_ROUTED2(ViewHostMsg_DidRunInsecureContent,
1268 std::string /* security_origin */,
1269 GURL /* target URL */)
1270
1271 // Sent when the renderer starts a provisional load for a frame.
1272 IPC_MESSAGE_ROUTED3(ViewHostMsg_DidStartProvisionalLoadForFrame,
1273 int64 /* frame_id */,
1274 bool /* true if it is the main frame */,
1275 GURL /* url */)
1276
1277 // Sent when the renderer fails a provisional load with an error.
1278 IPC_MESSAGE_ROUTED5(ViewHostMsg_DidFailProvisionalLoadWithError,
1279 int64 /* frame_id */,
1280 bool /* true if it is the main frame */,
1281 int /* error_code */,
1282 GURL /* url */,
1283 bool /* true if the failure is the result of
1284 navigating to a POST again and we're going to
1285 show the POST interstitial */)
1286
1287 // Tells the render view that a ViewHostMsg_PaintAtSize message was
1288 // processed, and the DIB is ready for use. |tag| has the same value that
1289 // the tag sent along with ViewMsg_PaintAtSize.
1290 IPC_MESSAGE_ROUTED2(ViewHostMsg_PaintAtSize_ACK,
1291 int /* tag */,
1292 gfx::Size /* size */)
1293
1294 // Sent to update part of the view. In response to this message, the host
1295 // generates a ViewMsg_UpdateRect_ACK message.
1296 IPC_MESSAGE_ROUTED1(ViewHostMsg_UpdateRect,
1297 ViewHostMsg_UpdateRect_Params)
1298
1299 // Sent by the renderer when accelerated compositing is enabled or disabled to
1300 // notify the browser whether or not is should do painting.
1301 IPC_MESSAGE_ROUTED1(ViewHostMsg_DidActivateAcceleratedCompositing,
1302 bool /* true if the accelerated compositor is actve */)
1303
1304 // Acknowledges receipt of a ViewMsg_HandleInputEvent message.
1305 // Payload is a WebInputEvent::Type which is the type of the event, followed
1306 // by an optional WebInputEvent which is provided only if the event was not
1307 // processed.
1308 IPC_MESSAGE_ROUTED0(ViewHostMsg_HandleInputEvent_ACK)
1309
1310 IPC_MESSAGE_ROUTED0(ViewHostMsg_Focus)
1311 IPC_MESSAGE_ROUTED0(ViewHostMsg_Blur)
1312
1313 // Message sent from renderer to the browser when focus changes inside the
1314 // webpage. The parameter says whether the newly focused element needs
1315 // keyboard input (true for textfields, text areas and content editable divs).
1316 IPC_MESSAGE_ROUTED1(ViewHostMsg_FocusedNodeChanged,
1317 bool /* is_editable_node */)
1318
1319 // Returns the window location of the given window.
1320 // TODO(shess): Provide a mapping from reply_msg->routing_id() to
1321 // HWND so that we can eliminate the NativeViewId parameter.
1322 IPC_SYNC_MESSAGE_ROUTED1_1(ViewHostMsg_GetWindowRect,
1323 gfx::NativeViewId /* window */,
1324 gfx::Rect /* Out: Window location */)
1325
1326 IPC_MESSAGE_ROUTED1(ViewHostMsg_SetCursor,
1327 WebCursor)
1328
1329 // Used to set a cookie. The cookie is set asynchronously, but will be
1330 // available to a subsequent ViewHostMsg_GetCookies request.
1331 IPC_MESSAGE_ROUTED3(ViewHostMsg_SetCookie,
1332 GURL /* url */,
1333 GURL /* first_party_for_cookies */,
1334 std::string /* cookie */)
1335
1336 // Used to get cookies for the given URL. This may block waiting for a
1337 // previous SetCookie message to be processed.
1338 IPC_SYNC_MESSAGE_ROUTED2_1(ViewHostMsg_GetCookies,
1339 GURL /* url */,
1340 GURL /* first_party_for_cookies */,
1341 std::string /* cookies */)
1342
1343 // Used to get raw cookie information for the given URL. This may block
1344 // waiting for a previous SetCookie message to be processed.
1345 IPC_SYNC_MESSAGE_ROUTED2_1(ViewHostMsg_GetRawCookies,
1346 GURL /* url */,
1347 GURL /* first_party_for_cookies */,
1348 std::vector<webkit_glue::WebCookie>
1349 /* raw_cookies */)
1350
1351 // Used to delete cookie for the given URL and name
1352 IPC_SYNC_MESSAGE_CONTROL2_0(ViewHostMsg_DeleteCookie,
1353 GURL /* url */,
1354 std::string /* cookie_name */)
1355
1356 // Used to check if cookies are enabled for the given URL. This may block
1357 // waiting for a previous SetCookie message to be processed.
1358 IPC_SYNC_MESSAGE_ROUTED2_1(ViewHostMsg_CookiesEnabled,
1359 GURL /* url */,
1360 GURL /* first_party_for_cookies */,
1361 bool /* cookies_enabled */)
1362
1363 // Used to get the list of plugins
1364 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_GetPlugins,
1365 bool /* refresh*/,
1366 std::vector<webkit::npapi::WebPluginInfo> /* plugins */)
1367
1368 // Return information about a plugin for the given URL and MIME
1369 // type. If there is no matching plugin, |found| is false. If
1370 // |enabled| in the WebPluginInfo struct is false, the plug-in is
1371 // treated as if it was not installed at all.
1372 //
1373 // TODO(jam): until we get ContentSetting out of content completely, sending it
1374 // as int temporarily so we can move these messages to content.
1375 //
1376 // If |setting| is set to CONTENT_SETTING_BLOCK, the plug-in is
1377 // blocked by the content settings for |policy_url|. It still
1378 // appears in navigator.plugins in Javascript though, and can be
1379 // loaded via click-to-play.
1380 //
1381 // If |setting| is set to CONTENT_SETTING_ALLOW, the domain is
1382 // explicitly white-listed for the plug-in, or the user has chosen
1383 // not to block nonsandboxed plugins.
1384 //
1385 // If |setting| is set to CONTENT_SETTING_DEFAULT, the plug-in is
1386 // neither blocked nor white-listed, which means that it's allowed
1387 // by default and can still be blocked if it's non-sandboxed.
1388 //
1389 // |actual_mime_type| is the actual mime type supported by the
1390 // plugin found that match the URL given (one for each item in
1391 // |info|).
1392 IPC_SYNC_MESSAGE_CONTROL4_4(ViewHostMsg_GetPluginInfo,
1393 int /* routing_id */,
1394 GURL /* url */,
1395 GURL /* policy_url */,
1396 std::string /* mime_type */,
1397 bool /* found */,
1398 webkit::npapi::WebPluginInfo /* plugin info */,
1399 int /* setting */,
1400 std::string /* actual_mime_type */)
1401
1402 // A renderer sends this to the browser process when it wants to
1403 // create a plugin. The browser will create the plugin process if
1404 // necessary, and will return a handle to the channel on success.
1405 // On error an empty string is returned.
1406 IPC_SYNC_MESSAGE_CONTROL3_2(ViewHostMsg_OpenChannelToPlugin,
1407 int /* routing_id */,
1408 GURL /* url */,
1409 std::string /* mime_type */,
1410 IPC::ChannelHandle /* channel_handle */,
1411 webkit::npapi::WebPluginInfo /* info */)
832 1412
833 // A renderer sends this to the browser process when it wants to create a 1413 // A renderer sends this to the browser process when it wants to create a
834 // worker. The browser will create the worker process if necessary, and 1414 // worker. The browser will create the worker process if necessary, and
835 // will return the route id on success. On error returns MSG_ROUTING_NONE. 1415 // will return the route id on success. On error returns MSG_ROUTING_NONE.
836 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_CreateWorker, 1416 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_CreateWorker,
837 ViewHostMsg_CreateWorker_Params, 1417 ViewHostMsg_CreateWorker_Params,
838 int /* route_id */) 1418 int /* route_id */)
839 1419
840 // This message is sent to the browser to see if an instance of this shared 1420 // This message is sent to the browser to see if an instance of this shared
841 // worker already exists. If so, it returns exists == true. If a 1421 // worker already exists. If so, it returns exists == true. If a
(...skipping 21 matching lines...) Expand all
863 // hop. 1443 // hop.
864 IPC_MESSAGE_CONTROL1(ViewHostMsg_ForwardToWorker, 1444 IPC_MESSAGE_CONTROL1(ViewHostMsg_ForwardToWorker,
865 IPC::Message /* message */) 1445 IPC::Message /* message */)
866 1446
867 // Sent if the worker object has sent a ViewHostMsg_CreateDedicatedWorker 1447 // Sent if the worker object has sent a ViewHostMsg_CreateDedicatedWorker
868 // message and not received a ViewMsg_WorkerCreated reply, but in the 1448 // message and not received a ViewMsg_WorkerCreated reply, but in the
869 // mean time it's destroyed. This tells the browser to not create the queued 1449 // mean time it's destroyed. This tells the browser to not create the queued
870 // worker. 1450 // worker.
871 IPC_MESSAGE_CONTROL1(ViewHostMsg_CancelCreateDedicatedWorker, 1451 IPC_MESSAGE_CONTROL1(ViewHostMsg_CancelCreateDedicatedWorker,
872 int /* route_id */) 1452 int /* route_id */)
1453
1454 // Tells the browser that a specific Appcache manifest in the current page
1455 // was accessed.
1456 IPC_MESSAGE_ROUTED2(ViewHostMsg_AppCacheAccessed,
1457 GURL /* manifest url */,
1458 bool /* blocked by policy */)
1459
1460 // Tells the browser that a specific Web database in the current page was
1461 // accessed.
1462 IPC_MESSAGE_ROUTED5(ViewHostMsg_WebDatabaseAccessed,
1463 GURL /* origin url */,
1464 string16 /* database name */,
1465 string16 /* database display name */,
1466 unsigned long /* estimated size */,
1467 bool /* blocked by policy */)
1468
1469 // Initiates a download based on user actions like 'ALT+click'.
1470 IPC_MESSAGE_ROUTED2(ViewHostMsg_DownloadUrl,
1471 GURL /* url */,
1472 GURL /* referrer */)
1473
1474 // Used to go to the session history entry at the given offset (ie, -1 will
1475 // return the "back" item).
1476 IPC_MESSAGE_ROUTED1(ViewHostMsg_GoToEntryAtOffset,
1477 int /* offset (from current) of history item to get */)
1478
1479 IPC_SYNC_MESSAGE_ROUTED4_2(ViewHostMsg_RunJavaScriptMessage,
1480 std::wstring /* in - alert message */,
1481 std::wstring /* in - default prompt */,
1482 GURL /* in - originating page URL */,
1483 int /* in - dialog flags */,
1484 bool /* out - success */,
1485 std::wstring /* out - prompt field */)
1486
1487 // Provides the contents for the given page that was loaded recently.
1488 IPC_MESSAGE_ROUTED5(ViewHostMsg_PageContents,
1489 GURL /* URL of the page */,
1490 int32 /* page id */,
1491 string16 /* page contents */,
1492 std::string /* page ISO639_1 language code */,
1493 bool /* whether the page can be translated */)
1494
1495 // Requests that the given URL be opened in the specified manner.
1496 IPC_MESSAGE_ROUTED3(ViewHostMsg_OpenURL,
1497 GURL /* url */,
1498 GURL /* referrer */,
1499 WindowOpenDisposition /* disposition */)
1500
1501 // Notifies that the preferred size of the content changed.
1502 IPC_MESSAGE_ROUTED1(ViewHostMsg_DidContentsPreferredSizeChange,
1503 gfx::Size /* pref_size */)
1504
1505 // A message from HTML-based UI. When (trusted) Javascript calls
1506 // send(message, args), this message is sent to the browser.
1507 IPC_MESSAGE_ROUTED3(ViewHostMsg_WebUISend,
1508 GURL /* source_url */,
1509 std::string /* message */,
1510 std::string /* args (as a JSON string) */)
1511
1512 // A renderer sends this to the browser process when it wants to
1513 // create a pepper plugin. The browser will create the plugin process if
1514 // necessary, and will return a handle to the channel on success.
1515 // On error an empty string is returned.
1516 IPC_SYNC_MESSAGE_CONTROL1_2(ViewHostMsg_OpenChannelToPepperPlugin,
1517 FilePath /* path */,
1518 base::ProcessHandle /* plugin_process_handle */,
1519 IPC::ChannelHandle /* handle to channel */)
1520
1521 #if defined(USE_X11)
1522 // A renderer sends this when it needs a browser-side widget for
1523 // hosting a windowed plugin. id is the XID of the plugin window, for which
1524 // the container is created.
1525 IPC_SYNC_MESSAGE_ROUTED1_0(ViewHostMsg_CreatePluginContainer,
1526 gfx::PluginWindowHandle /* id */)
1527
1528 // Destroy a plugin container previously created using CreatePluginContainer.
1529 // id is the XID of the plugin window corresponding to the container that is
1530 // to be destroyed.
1531 IPC_SYNC_MESSAGE_ROUTED1_0(ViewHostMsg_DestroyPluginContainer,
1532 gfx::PluginWindowHandle /* id */)
1533 #endif
1534
1535 #if defined(OS_MACOSX)
1536 // Request that the browser load a font into shared memory for us.
1537 IPC_SYNC_MESSAGE_CONTROL1_2(ViewHostMsg_LoadFont,
1538 FontDescriptor /* font to load */,
1539 uint32 /* buffer size */,
1540 base::SharedMemoryHandle /* font data */)
1541 #endif
1542
1543 #if defined(OS_WIN)
1544 // Request that the given font be loaded by the browser so it's cached by the
1545 // OS. Please see ChildProcessHost::PreCacheFont for details.
1546 IPC_SYNC_MESSAGE_CONTROL1_0(ViewHostMsg_PreCacheFont,
1547 LOGFONT /* font data */)
1548 #endif // defined(OS_WIN)
1549
1550 // Returns WebScreenInfo corresponding to the view.
1551 // TODO(shess): Provide a mapping from reply_msg->routing_id() to
1552 // HWND so that we can eliminate the NativeViewId parameter.
1553 IPC_SYNC_MESSAGE_ROUTED1_1(ViewHostMsg_GetScreenInfo,
1554 gfx::NativeViewId /* view */,
1555 WebKit::WebScreenInfo /* results */)
1556
1557 // Send the tooltip text for the current mouse position to the browser.
1558 IPC_MESSAGE_ROUTED2(ViewHostMsg_SetTooltipText,
1559 std::wstring /* tooltip text string */,
1560 WebKit::WebTextDirection /* text direction hint */)
1561
1562 // Notification that the text selection has changed.
1563 IPC_MESSAGE_ROUTED1(ViewHostMsg_SelectionChanged,
1564 std::string /* currently selected text */)
1565
1566 // Asks the browser to display the file chooser. The result is returned in a
1567 // ViewHost_RunFileChooserResponse message.
1568 IPC_MESSAGE_ROUTED1(ViewHostMsg_RunFileChooser,
1569 ViewHostMsg_RunFileChooser_Params)
1570
1571 // Tells the browser to move the focus to the next (previous if reverse is
1572 // true) focusable element.
1573 IPC_MESSAGE_ROUTED1(ViewHostMsg_TakeFocus,
1574 bool /* reverse */)
1575
1576 // Returns the window location of the window this widget is embeded.
1577 // TODO(shess): Provide a mapping from reply_msg->routing_id() to
1578 // HWND so that we can eliminate the NativeViewId parameter.
1579 IPC_SYNC_MESSAGE_ROUTED1_1(ViewHostMsg_GetRootWindowRect,
1580 gfx::NativeViewId /* window */,
1581 gfx::Rect /* Out: Window location */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698