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

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

Issue 6705012: Move the rest of the content browser->renderer messages to content. Also move drag related messa... (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
« no previous file with comments | « chrome/common/extensions/extension_unpacker.cc ('k') | chrome/common/render_messages.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 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 // Multiply-included file, no traditional include guard. 5 // Multiply-included file, no traditional include guard.
6 #include <map> 6 #include <map>
7 #include <set> 7 #include <set>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 #include "ipc/ipc_message_utils.h" 46 #include "ipc/ipc_message_utils.h"
47 #include "ipc/ipc_platform_file.h" // ifdefed typedef. 47 #include "ipc/ipc_platform_file.h" // ifdefed typedef.
48 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCompositionUnderli ne.h" 48 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCompositionUnderli ne.h"
49 #include "third_party/WebKit/Source/WebKit/chromium/public/WebMediaPlayerAction. h" 49 #include "third_party/WebKit/Source/WebKit/chromium/public/WebMediaPlayerAction. h"
50 #include "third_party/WebKit/Source/WebKit/chromium/public/WebScreenInfo.h" 50 #include "third_party/WebKit/Source/WebKit/chromium/public/WebScreenInfo.h"
51 #include "third_party/skia/include/core/SkBitmap.h" 51 #include "third_party/skia/include/core/SkBitmap.h"
52 #include "ui/gfx/rect.h" 52 #include "ui/gfx/rect.h"
53 #include "webkit/glue/webaccessibility.h" 53 #include "webkit/glue/webaccessibility.h"
54 #include "webkit/glue/webcookie.h" 54 #include "webkit/glue/webcookie.h"
55 #include "webkit/glue/webcursor.h" 55 #include "webkit/glue/webcursor.h"
56 #include "webkit/glue/webdropdata.h"
57 #include "webkit/plugins/npapi/webplugin.h" 56 #include "webkit/plugins/npapi/webplugin.h"
58 #include "webkit/plugins/npapi/webplugininfo.h" 57 #include "webkit/plugins/npapi/webplugininfo.h"
59 58
60 #if defined(OS_POSIX) 59 #if defined(OS_POSIX)
61 #include "base/file_descriptor_posix.h" 60 #include "base/file_descriptor_posix.h"
62 #endif 61 #endif
63 62
64 #if defined(OS_MACOSX) 63 #if defined(OS_MACOSX)
65 #include "content/common/font_descriptor_mac.h" 64 #include "content/common/font_descriptor_mac.h"
66 #endif 65 #endif
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 }; 128 };
130 129
131 template <> 130 template <>
132 struct ParamTraits<webkit::npapi::WebPluginInfo> { 131 struct ParamTraits<webkit::npapi::WebPluginInfo> {
133 typedef webkit::npapi::WebPluginInfo param_type; 132 typedef webkit::npapi::WebPluginInfo param_type;
134 static void Write(Message* m, const param_type& p); 133 static void Write(Message* m, const param_type& p);
135 static bool Read(const Message* m, void** iter, param_type* r); 134 static bool Read(const Message* m, void** iter, param_type* r);
136 static void Log(const param_type& p, std::string* l); 135 static void Log(const param_type& p, std::string* l);
137 }; 136 };
138 137
139 // Traits for WebDropData
140 template <>
141 struct ParamTraits<WebDropData> {
142 typedef WebDropData param_type;
143 static void Write(Message* m, const param_type& p);
144 static bool Read(const Message* m, void** iter, param_type* p);
145 static void Log(const param_type& p, std::string* l);
146 };
147
148 #if defined(OS_POSIX) 138 #if defined(OS_POSIX)
149 139
150 // TODO(port): this shouldn't exist. However, the plugin stuff is really using 140 // TODO(port): this shouldn't exist. However, the plugin stuff is really using
151 // HWNDS (NativeView), and making Windows calls based on them. I've not figured 141 // HWNDS (NativeView), and making Windows calls based on them. I've not figured
152 // out the deal with plugins yet. 142 // out the deal with plugins yet.
153 template <> 143 template <>
154 struct ParamTraits<gfx::NativeView> { 144 struct ParamTraits<gfx::NativeView> {
155 typedef gfx::NativeView param_type; 145 typedef gfx::NativeView param_type;
156 static void Write(Message* m, const param_type& p) { 146 static void Write(Message* m, const param_type& p) {
157 NOTIMPLEMENTED(); 147 NOTIMPLEMENTED();
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 IPC_MESSAGE_ROUTED2(ViewMsg_SetContentSettingsForLoadingURL, 305 IPC_MESSAGE_ROUTED2(ViewMsg_SetContentSettingsForLoadingURL,
316 GURL /* url */, 306 GURL /* url */,
317 ContentSettings /* content_settings */) 307 ContentSettings /* content_settings */)
318 308
319 // Set the content settings for a particular url, so all render views 309 // Set the content settings for a particular url, so all render views
320 // displaying this host url update their content settings to match. 310 // displaying this host url update their content settings to match.
321 IPC_MESSAGE_CONTROL2(ViewMsg_SetContentSettingsForCurrentURL, 311 IPC_MESSAGE_CONTROL2(ViewMsg_SetContentSettingsForCurrentURL,
322 GURL /* url */, 312 GURL /* url */,
323 ContentSettings /* content_settings */) 313 ContentSettings /* content_settings */)
324 314
325 // Change encoding of page in the renderer.
326 IPC_MESSAGE_ROUTED1(ViewMsg_SetPageEncoding,
327 std::string /*new encoding name*/)
328
329 // Reset encoding of page in the renderer back to default.
330 IPC_MESSAGE_ROUTED0(ViewMsg_ResetPageEncodingToDefault)
331
332 // Requests the renderer to reserve a range of page ids.
333 IPC_MESSAGE_ROUTED1(ViewMsg_ReservePageIDRange,
334 int /* size_of_range */)
335
336 // D&d drop target messages.
337 IPC_MESSAGE_ROUTED4(ViewMsg_DragTargetDragEnter,
338 WebDropData /* drop_data */,
339 gfx::Point /* client_pt */,
340 gfx::Point /* screen_pt */,
341 WebKit::WebDragOperationsMask /* ops_allowed */)
342 IPC_MESSAGE_ROUTED3(ViewMsg_DragTargetDragOver,
343 gfx::Point /* client_pt */,
344 gfx::Point /* screen_pt */,
345 WebKit::WebDragOperationsMask /* ops_allowed */)
346 IPC_MESSAGE_ROUTED0(ViewMsg_DragTargetDragLeave)
347 IPC_MESSAGE_ROUTED2(ViewMsg_DragTargetDrop,
348 gfx::Point /* client_pt */,
349 gfx::Point /* screen_pt */)
350
351 // Notifies the renderer of updates in mouse position of an in-progress
352 // drag. if |ended| is true, then the user has ended the drag operation.
353 IPC_MESSAGE_ROUTED4(ViewMsg_DragSourceEndedOrMoved,
354 gfx::Point /* client_pt */,
355 gfx::Point /* screen_pt */,
356 bool /* ended */,
357 WebKit::WebDragOperation /* drag_operation */)
358
359 // Notifies the renderer that the system DoDragDrop call has ended.
360 IPC_MESSAGE_ROUTED0(ViewMsg_DragSourceSystemDragEnded)
361
362 // Used to tell a render view whether it should expose various bindings
363 // that allow JS content extended privileges. See BindingsPolicy for valid
364 // flag values.
365 IPC_MESSAGE_ROUTED1(ViewMsg_AllowBindings,
366 int /* enabled_bindings_flags */)
367
368 // Tell the renderer to add a property to the WebUI binding object. This
369 // only works if we allowed WebUI bindings.
370 IPC_MESSAGE_ROUTED2(ViewMsg_SetWebUIProperty,
371 std::string /* property_name */,
372 std::string /* property_value_json */)
373
374 // This message starts/stop monitoring the input method status of the focused
375 // edit control of a renderer process.
376 // Parameters
377 // * is_active (bool)
378 // Indicates if an input method is active in the browser process.
379 // The possible actions when a renderer process receives this message are
380 // listed below:
381 // Value Action
382 // true Start sending IPC message ViewHostMsg_ImeUpdateTextInputState
383 // to notify the input method status of the focused edit control.
384 // false Stop sending IPC message ViewHostMsg_ImeUpdateTextInputState.
385 IPC_MESSAGE_ROUTED1(ViewMsg_SetInputMethodActive,
386 bool /* is_active */)
387
388 // This message sends a string being composed with an input method.
389 IPC_MESSAGE_ROUTED4(
390 ViewMsg_ImeSetComposition,
391 string16, /* text */
392 std::vector<WebKit::WebCompositionUnderline>, /* underlines */
393 int, /* selectiont_start */
394 int /* selection_end */)
395
396 // This message confirms an ongoing composition.
397 IPC_MESSAGE_ROUTED1(ViewMsg_ImeConfirmComposition,
398 string16 /* text */)
399
400 // Used to notify the render-view that we have received a target URL. Used
401 // to prevent target URLs spamming the browser.
402 IPC_MESSAGE_ROUTED0(ViewMsg_UpdateTargetURL_ACK)
403
404 // Sets the alternate error page URL (link doctor) for the renderer process.
405 IPC_MESSAGE_ROUTED1(ViewMsg_SetAltErrorPageURL, GURL)
406
407 // Install the first missing pluign. 315 // Install the first missing pluign.
408 IPC_MESSAGE_ROUTED0(ViewMsg_InstallMissingPlugin) 316 IPC_MESSAGE_ROUTED0(ViewMsg_InstallMissingPlugin)
409 317
410 // Tells the renderer to empty its plugin list cache, optional reloading 318 // Tells the renderer to empty its plugin list cache, optional reloading
411 // pages containing plugins. 319 // pages containing plugins.
412 IPC_MESSAGE_CONTROL1(ViewMsg_PurgePluginListCache, 320 IPC_MESSAGE_CONTROL1(ViewMsg_PurgePluginListCache,
413 bool /* reload_pages */) 321 bool /* reload_pages */)
414 322
415 // Tells the render view to load all blocked plugins. 323 // Tells the render view to load all blocked plugins.
416 IPC_MESSAGE_ROUTED0(ViewMsg_LoadBlockedPlugins) 324 IPC_MESSAGE_ROUTED0(ViewMsg_LoadBlockedPlugins)
417 325
418 // Tells the render view a prerendered page is about to be displayed. 326 // Tells the render view a prerendered page is about to be displayed.
419 IPC_MESSAGE_ROUTED0(ViewMsg_DisplayPrerenderedPage) 327 IPC_MESSAGE_ROUTED0(ViewMsg_DisplayPrerenderedPage)
420 328
421 IPC_MESSAGE_ROUTED1(ViewMsg_RunFileChooserResponse,
422 std::vector<FilePath> /* selected files */)
423
424 // Used to instruct the RenderView to go into "view source" mode. 329 // Used to instruct the RenderView to go into "view source" mode.
425 IPC_MESSAGE_ROUTED0(ViewMsg_EnableViewSourceMode) 330 IPC_MESSAGE_ROUTED0(ViewMsg_EnableViewSourceMode)
426 331
427 // Get all savable resource links from current webpage, include main 332 // Get all savable resource links from current webpage, include main
428 // frame and sub-frame. 333 // frame and sub-frame.
429 IPC_MESSAGE_ROUTED1(ViewMsg_GetAllSavableResourceLinksForCurrentPage, 334 IPC_MESSAGE_ROUTED1(ViewMsg_GetAllSavableResourceLinksForCurrentPage,
430 GURL /* url of page which is needed to save */) 335 GURL /* url of page which is needed to save */)
431 336
432 // Get html data by serializing all frames of current page with lists 337 // Get html data by serializing all frames of current page with lists
433 // which contain all resource links that have local copy. 338 // which contain all resource links that have local copy.
434 IPC_MESSAGE_ROUTED3(ViewMsg_GetSerializedHtmlDataForCurrentPageWithLocalLinks, 339 IPC_MESSAGE_ROUTED3(ViewMsg_GetSerializedHtmlDataForCurrentPageWithLocalLinks,
435 std::vector<GURL> /* urls that have local copy */, 340 std::vector<GURL> /* urls that have local copy */,
436 std::vector<FilePath> /* paths of local copy */, 341 std::vector<FilePath> /* paths of local copy */,
437 FilePath /* local directory path */) 342 FilePath /* local directory path */)
438 343
439 // Requests application info for the page. The renderer responds back with 344 // Requests application info for the page. The renderer responds back with
440 // ViewHostMsg_DidGetApplicationInfo. 345 // ViewHostMsg_DidGetApplicationInfo.
441 IPC_MESSAGE_ROUTED1(ViewMsg_GetApplicationInfo, int32 /*page_id*/) 346 IPC_MESSAGE_ROUTED1(ViewMsg_GetApplicationInfo, int32 /*page_id*/)
442 347
443 // Requests the renderer to download the specified favicon image encode it as 348 // Requests the renderer to download the specified favicon image encode it as
444 // PNG and send the PNG data back ala ViewHostMsg_DidDownloadFavicon. 349 // PNG and send the PNG data back ala ViewHostMsg_DidDownloadFavicon.
445 IPC_MESSAGE_ROUTED3(ViewMsg_DownloadFavicon, 350 IPC_MESSAGE_ROUTED3(ViewMsg_DownloadFavicon,
446 int /* identifier for the request */, 351 int /* identifier for the request */,
447 GURL /* URL of the image */, 352 GURL /* URL of the image */,
448 int /* Size of the image. Normally 0, but set if you have 353 int /* Size of the image. Normally 0, but set if you have
449 a preferred image size to request, such as when 354 a preferred image size to request, such as when
450 downloading the favicon */) 355 downloading the favicon */)
451 356
452 // When a renderer sends a ViewHostMsg_Focus to the browser process,
453 // the browser has the option of sending a ViewMsg_CantFocus back to
454 // the renderer.
455 IPC_MESSAGE_ROUTED0(ViewMsg_CantFocus)
456
457 // Instructs the renderer to invoke the frame's shouldClose method, which
458 // runs the onbeforeunload event handler. Expects the result to be returned
459 // via ViewHostMsg_ShouldClose.
460 IPC_MESSAGE_ROUTED0(ViewMsg_ShouldClose)
461
462 // Instructs the renderer to close the current page, including running the
463 // onunload event handler. See the struct in render_messages.h for more.
464 //
465 // Expects a ClosePage_ACK message when finished, where the parameters are
466 // echoed back.
467 IPC_MESSAGE_ROUTED1(ViewMsg_ClosePage,
468 ViewMsg_ClosePage_Params)
469
470 // Asks the renderer to send back stats on the WebCore cache broken down by 357 // Asks the renderer to send back stats on the WebCore cache broken down by
471 // resource types. 358 // resource types.
472 IPC_MESSAGE_CONTROL0(ViewMsg_GetCacheResourceStats) 359 IPC_MESSAGE_CONTROL0(ViewMsg_GetCacheResourceStats)
473 360
474 // Asks the renderer to send back Histograms. 361 // Asks the renderer to send back Histograms.
475 IPC_MESSAGE_CONTROL1(ViewMsg_GetRendererHistograms, 362 IPC_MESSAGE_CONTROL1(ViewMsg_GetRendererHistograms,
476 int /* sequence number of Renderer Histograms. */) 363 int /* sequence number of Renderer Histograms. */)
477 364
478 #if defined(USE_TCMALLOC) 365 #if defined(USE_TCMALLOC)
479 // Asks the renderer to send back tcmalloc stats. 366 // Asks the renderer to send back tcmalloc stats.
480 IPC_MESSAGE_CONTROL0(ViewMsg_GetRendererTcmalloc) 367 IPC_MESSAGE_CONTROL0(ViewMsg_GetRendererTcmalloc)
481 #endif 368 #endif
482 369
483 // Asks the renderer to send back V8 heap stats. 370 // Asks the renderer to send back V8 heap stats.
484 IPC_MESSAGE_CONTROL0(ViewMsg_GetV8HeapStats) 371 IPC_MESSAGE_CONTROL0(ViewMsg_GetV8HeapStats)
485 372
486 // Notifies the renderer about ui theme changes
487 IPC_MESSAGE_ROUTED0(ViewMsg_ThemeChanged)
488
489 // Notifies the renderer that a paint is to be generated for the rectangle
490 // passed in.
491 IPC_MESSAGE_ROUTED1(ViewMsg_Repaint,
492 gfx::Size /* The view size to be repainted */)
493
494 // Posts a message to the renderer. 373 // Posts a message to the renderer.
495 IPC_MESSAGE_ROUTED3(ViewMsg_HandleMessageFromExternalHost, 374 IPC_MESSAGE_ROUTED3(ViewMsg_HandleMessageFromExternalHost,
496 std::string /* The message */, 375 std::string /* The message */,
497 std::string /* The origin */, 376 std::string /* The origin */,
498 std::string /* The target*/) 377 std::string /* The target*/)
499 378
500 // Sent to the renderer when a popup window should no longer count against 379 // Sent to the renderer when a popup window should no longer count against
501 // the current popup count (either because it's not a popup or because it was 380 // the current popup count (either because it's not a popup or because it was
502 // a generated by a user action or because a constrained popup got turned 381 // a generated by a user action or because a constrained popup got turned
503 // into a full window). 382 // into a full window).
504 IPC_MESSAGE_ROUTED0(ViewMsg_DisassociateFromPopupCount) 383 IPC_MESSAGE_ROUTED0(ViewMsg_DisassociateFromPopupCount)
505 384
506 // Sent by the Browser process to alert a window about whether a it should 385 // Sent by the Browser process to alert a window about whether a it should
507 // allow a scripted window.close(). The renderer assumes every new window is a 386 // allow a scripted window.close(). The renderer assumes every new window is a
508 // blocked popup until notified otherwise. 387 // blocked popup until notified otherwise.
509 IPC_MESSAGE_ROUTED1(ViewMsg_AllowScriptToClose, 388 IPC_MESSAGE_ROUTED1(ViewMsg_AllowScriptToClose,
510 bool /* script_can_close */) 389 bool /* script_can_close */)
511 390
512 // Notification that a move or resize renderer's containing window has
513 // started.
514 IPC_MESSAGE_ROUTED0(ViewMsg_MoveOrResizeStarted)
515
516 // The browser sends this message in response to all extension api calls. 391 // The browser sends this message in response to all extension api calls.
517 IPC_MESSAGE_ROUTED4(ViewMsg_ExtensionResponse, 392 IPC_MESSAGE_ROUTED4(ViewMsg_ExtensionResponse,
518 int /* request_id */, 393 int /* request_id */,
519 bool /* success */, 394 bool /* success */,
520 std::string /* response */, 395 std::string /* response */,
521 std::string /* error */) 396 std::string /* error */)
522 397
523 // This message is optionally routed. If used as a control message, it 398 // This message is optionally routed. If used as a control message, it
524 // will call a javascript function in every registered context in the 399 // will call a javascript function in every registered context in the
525 // target process. If routed, it will be restricted to the contexts that 400 // target process. If routed, it will be restricted to the contexts that
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
563 IPC_MESSAGE_CONTROL1(ViewMsg_ExtensionLoaded, ViewMsg_ExtensionLoaded_Params) 438 IPC_MESSAGE_CONTROL1(ViewMsg_ExtensionLoaded, ViewMsg_ExtensionLoaded_Params)
564 439
565 // Notifies the renderer that an extension was unloaded in the browser. 440 // Notifies the renderer that an extension was unloaded in the browser.
566 IPC_MESSAGE_CONTROL1(ViewMsg_ExtensionUnloaded, std::string) 441 IPC_MESSAGE_CONTROL1(ViewMsg_ExtensionUnloaded, std::string)
567 442
568 // Updates the scripting whitelist for extensions in the render process. This is 443 // Updates the scripting whitelist for extensions in the render process. This is
569 // only used for testing. 444 // only used for testing.
570 IPC_MESSAGE_CONTROL1(ViewMsg_Extension_SetScriptingWhitelist, 445 IPC_MESSAGE_CONTROL1(ViewMsg_Extension_SetScriptingWhitelist,
571 Extension::ScriptingWhitelist /* extenison ids */) 446 Extension::ScriptingWhitelist /* extenison ids */)
572 447
573 // Changes the text direction of the currently selected input field (if any).
574 IPC_MESSAGE_ROUTED1(ViewMsg_SetTextDirection,
575 WebKit::WebTextDirection /* direction */)
576
577 // Tells the renderer to clear the focused node (if any).
578 IPC_MESSAGE_ROUTED0(ViewMsg_ClearFocusedNode)
579
580 // Make the RenderView transparent and render it onto a custom background. The
581 // background will be tiled in both directions if it is not large enough.
582 IPC_MESSAGE_ROUTED1(ViewMsg_SetBackground,
583 SkBitmap /* background */)
584
585 // Reply to ViewHostMsg_RequestMove, ViewHostMsg_ShowView, and
586 // ViewHostMsg_ShowWidget to inform the renderer that the browser has
587 // processed the move. The browser may have ignored the move, but it finished
588 // processing. This is used because the renderer keeps a temporary cache of
589 // the widget position while these asynchronous operations are in progress.
590 IPC_MESSAGE_ROUTED0(ViewMsg_Move_ACK)
591
592 // Used to instruct the RenderView to send back updates to the preferred size.
593 IPC_MESSAGE_ROUTED1(ViewMsg_EnablePreferredSizeChangedMode, int /*flags*/)
594
595 IPC_MESSAGE_ROUTED4(ViewMsg_SearchBoxChange, 448 IPC_MESSAGE_ROUTED4(ViewMsg_SearchBoxChange,
596 string16 /* value */, 449 string16 /* value */,
597 bool /* verbatim */, 450 bool /* verbatim */,
598 int /* selection_start */, 451 int /* selection_start */,
599 int /* selection_end */) 452 int /* selection_end */)
600 IPC_MESSAGE_ROUTED2(ViewMsg_SearchBoxSubmit, 453 IPC_MESSAGE_ROUTED2(ViewMsg_SearchBoxSubmit,
601 string16 /* value */, 454 string16 /* value */,
602 bool /* verbatim */) 455 bool /* verbatim */)
603 IPC_MESSAGE_ROUTED0(ViewMsg_SearchBoxCancel) 456 IPC_MESSAGE_ROUTED0(ViewMsg_SearchBoxCancel)
604 IPC_MESSAGE_ROUTED1(ViewMsg_SearchBoxResize, 457 IPC_MESSAGE_ROUTED1(ViewMsg_SearchBoxResize,
605 gfx::Rect /* search_box_bounds */) 458 gfx::Rect /* search_box_bounds */)
606 IPC_MESSAGE_ROUTED4(ViewMsg_DetermineIfPageSupportsInstant, 459 IPC_MESSAGE_ROUTED4(ViewMsg_DetermineIfPageSupportsInstant,
607 string16 /* value*/, 460 string16 /* value*/,
608 bool /* verbatim */, 461 bool /* verbatim */,
609 int /* selection_start */, 462 int /* selection_start */,
610 int /* selection_end */) 463 int /* selection_end */)
611 464
612 // Used to tell the renderer not to add scrollbars with height and
613 // width below a threshold.
614 IPC_MESSAGE_ROUTED1(ViewMsg_DisableScrollbarsForSmallWindows,
615 gfx::Size /* disable_scrollbar_size_limit */)
616
617 // Activate/deactivate the RenderView (i.e., set its controls' tint
618 // accordingly, etc.).
619 IPC_MESSAGE_ROUTED1(ViewMsg_SetActive,
620 bool /* active */)
621
622 #if defined(OS_MACOSX)
623 // Let the RenderView know its window has changed visibility.
624 IPC_MESSAGE_ROUTED1(ViewMsg_SetWindowVisibility,
625 bool /* visibile */)
626
627 // Let the RenderView know its window's frame has changed.
628 IPC_MESSAGE_ROUTED2(ViewMsg_WindowFrameChanged,
629 gfx::Rect /* window frame */,
630 gfx::Rect /* content view frame */)
631
632 // Tell the renderer that plugin IME has completed.
633 IPC_MESSAGE_ROUTED2(ViewMsg_PluginImeCompositionCompleted,
634 string16 /* text */,
635 int /* plugin_id */)
636 #endif
637
638 // Response message to ViewHostMsg_CreateShared/DedicatedWorker.
639 // Sent when the worker has started.
640 IPC_MESSAGE_ROUTED0(ViewMsg_WorkerCreated)
641
642 // Tell the renderer which browser window it's being attached to. 465 // Tell the renderer which browser window it's being attached to.
643 IPC_MESSAGE_ROUTED1(ViewMsg_UpdateBrowserWindowId, 466 IPC_MESSAGE_ROUTED1(ViewMsg_UpdateBrowserWindowId,
644 int /* id of browser window */) 467 int /* id of browser window */)
645 468
646 // Tell the renderer which type this view is. 469 // Tell the renderer which type this view is.
647 IPC_MESSAGE_ROUTED1(ViewMsg_NotifyRenderViewType, 470 IPC_MESSAGE_ROUTED1(ViewMsg_NotifyRenderViewType,
648 ViewType::Type /* view_type */) 471 ViewType::Type /* view_type */)
649 472
650 // Notification that renderer should run some JavaScript code. 473 // Notification that renderer should run some JavaScript code.
651 IPC_MESSAGE_ROUTED1(ViewMsg_ExecuteCode, 474 IPC_MESSAGE_ROUTED1(ViewMsg_ExecuteCode,
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
712 535
713 // Relay a request from assistive technology to perform the default action 536 // Relay a request from assistive technology to perform the default action
714 // on a given node. 537 // on a given node.
715 IPC_MESSAGE_ROUTED1(ViewMsg_AccessibilityDoDefaultAction, 538 IPC_MESSAGE_ROUTED1(ViewMsg_AccessibilityDoDefaultAction,
716 int /* object id */) 539 int /* object id */)
717 540
718 // Tells the render view that a ViewHostMsg_AccessibilityNotifications 541 // Tells the render view that a ViewHostMsg_AccessibilityNotifications
719 // message was processed and it can send addition notifications. 542 // message was processed and it can send addition notifications.
720 IPC_MESSAGE_ROUTED0(ViewMsg_AccessibilityNotifications_ACK) 543 IPC_MESSAGE_ROUTED0(ViewMsg_AccessibilityNotifications_ACK)
721 544
722 // The response to ViewHostMsg_AsyncOpenFile.
723 IPC_MESSAGE_ROUTED3(ViewMsg_AsyncOpenFile_ACK,
724 base::PlatformFileError /* error_code */,
725 IPC::PlatformFileForTransit /* file descriptor */,
726 int /* message_id */)
727
728 // A classification model for client-side phishing detection. 545 // A classification model for client-side phishing detection.
729 // The given file contains an encoded safe_browsing::ClientSideModel 546 // The given file contains an encoded safe_browsing::ClientSideModel
730 // protocol buffer. 547 // protocol buffer.
731 IPC_MESSAGE_CONTROL1(ViewMsg_SetPhishingModel, 548 IPC_MESSAGE_CONTROL1(ViewMsg_SetPhishingModel,
732 IPC::PlatformFileForTransit /* model_file */) 549 IPC::PlatformFileForTransit /* model_file */)
733 550
734 // Request a DOM tree when a malware interstitial is shown. 551 // Request a DOM tree when a malware interstitial is shown.
735 IPC_MESSAGE_ROUTED0(ViewMsg_GetMalwareDOMDetails) 552 IPC_MESSAGE_ROUTED0(ViewMsg_GetMalwareDOMDetails)
736 553
737 // Tells the renderer to begin phishing detection for the given toplevel URL 554 // Tells the renderer to begin phishing detection for the given toplevel URL
738 // which it has started loading. 555 // which it has started loading.
739 IPC_MESSAGE_ROUTED1(ViewMsg_StartPhishingDetection, GURL) 556 IPC_MESSAGE_ROUTED1(ViewMsg_StartPhishingDetection, GURL)
740 557
741 // Tells the renderer that the network state has changed and that
742 // window.navigator.onLine should be updated for all WebViews.
743 IPC_MESSAGE_ROUTED1(ViewMsg_NetworkStateChanged,
744 bool /* online */)
745
746 //----------------------------------------------------------------------------- 558 //-----------------------------------------------------------------------------
747 // TabContents messages 559 // TabContents messages
748 // These are messages sent from the renderer to the browser process. 560 // These are messages sent from the renderer to the browser process.
749 561
750 // Sent by the renderer when it is creating a new window. The browser creates 562 // Sent by the renderer when it is creating a new window. The browser creates
751 // a tab for it and responds with a ViewMsg_CreatingNew_ACK. If route_id is 563 // a tab for it and responds with a ViewMsg_CreatingNew_ACK. If route_id is
752 // MSG_ROUTING_NONE, the view couldn't be created. 564 // MSG_ROUTING_NONE, the view couldn't be created.
753 IPC_SYNC_MESSAGE_CONTROL1_2(ViewHostMsg_CreateWindow, 565 IPC_SYNC_MESSAGE_CONTROL1_2(ViewHostMsg_CreateWindow,
754 ViewHostMsg_CreateWindow_Params, 566 ViewHostMsg_CreateWindow_Params,
755 int /* route_id */, 567 int /* route_id */,
(...skipping 468 matching lines...) Expand 10 before | Expand all | Expand 10 after
1224 1036
1225 // Notification that the text selection has changed. 1037 // Notification that the text selection has changed.
1226 IPC_MESSAGE_ROUTED1(ViewHostMsg_SelectionChanged, 1038 IPC_MESSAGE_ROUTED1(ViewHostMsg_SelectionChanged,
1227 std::string /* currently selected text */) 1039 std::string /* currently selected text */)
1228 1040
1229 // Asks the browser to display the file chooser. The result is returned in a 1041 // Asks the browser to display the file chooser. The result is returned in a
1230 // ViewHost_RunFileChooserResponse message. 1042 // ViewHost_RunFileChooserResponse message.
1231 IPC_MESSAGE_ROUTED1(ViewHostMsg_RunFileChooser, 1043 IPC_MESSAGE_ROUTED1(ViewHostMsg_RunFileChooser,
1232 ViewHostMsg_RunFileChooser_Params) 1044 ViewHostMsg_RunFileChooser_Params)
1233 1045
1234 // Used to tell the parent the user started dragging in the content area. The
1235 // WebDropData struct contains contextual information about the pieces of the
1236 // page the user dragged. The parent uses this notification to initiate a
1237 // drag session at the OS level.
1238 IPC_MESSAGE_ROUTED4(ViewHostMsg_StartDragging,
1239 WebDropData /* drop_data */,
1240 WebKit::WebDragOperationsMask /* ops_allowed */,
1241 SkBitmap /* image */,
1242 gfx::Point /* image_offset */)
1243
1244 // The page wants to update the mouse cursor during a drag & drop operation.
1245 // |is_drop_target| is true if the mouse is over a valid drop target.
1246 IPC_MESSAGE_ROUTED1(ViewHostMsg_UpdateDragCursor,
1247 WebKit::WebDragOperation /* drag_operation */)
1248
1249 // Tells the browser to move the focus to the next (previous if reverse is 1046 // Tells the browser to move the focus to the next (previous if reverse is
1250 // true) focusable element. 1047 // true) focusable element.
1251 IPC_MESSAGE_ROUTED1(ViewHostMsg_TakeFocus, bool /* reverse */) 1048 IPC_MESSAGE_ROUTED1(ViewHostMsg_TakeFocus, bool /* reverse */)
1252 1049
1253 // Notification that the page has an OpenSearch description document 1050 // Notification that the page has an OpenSearch description document
1254 // associated with it. 1051 // associated with it.
1255 IPC_MESSAGE_ROUTED3(ViewHostMsg_PageHasOSDD, 1052 IPC_MESSAGE_ROUTED3(ViewHostMsg_PageHasOSDD,
1256 int32 /* page_id */, 1053 int32 /* page_id */,
1257 GURL /* url of OS description document */, 1054 GURL /* url of OS description document */,
1258 ViewHostMsg_PageHasOSDD_Type) 1055 ViewHostMsg_PageHasOSDD_Type)
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
1408 int32 /* complete status */) 1205 int32 /* complete status */)
1409 1206
1410 IPC_MESSAGE_ROUTED2(ViewHostMsg_DidGetApplicationInfo, 1207 IPC_MESSAGE_ROUTED2(ViewHostMsg_DidGetApplicationInfo,
1411 int32 /* page_id */, 1208 int32 /* page_id */,
1412 WebApplicationInfo) 1209 WebApplicationInfo)
1413 1210
1414 // Sent by the renderer to implement chrome.app.installApplication(). 1211 // Sent by the renderer to implement chrome.app.installApplication().
1415 IPC_MESSAGE_ROUTED1(ViewHostMsg_InstallApplication, 1212 IPC_MESSAGE_ROUTED1(ViewHostMsg_InstallApplication,
1416 WebApplicationInfo) 1213 WebApplicationInfo)
1417 1214
1418 // Provides the result from running OnMsgShouldClose. |proceed| matches the
1419 // return value of the the frame's shouldClose method (which includes the
1420 // onbeforeunload handler): true if the user decided to proceed with leaving
1421 // the page.
1422 IPC_MESSAGE_ROUTED1(ViewHostMsg_ShouldClose_ACK,
1423 bool /* proceed */)
1424
1425 // Indicates that the current page has been closed, after a ClosePage
1426 // message. The parameters are just echoed from the ClosePage request.
1427 IPC_MESSAGE_ROUTED1(ViewHostMsg_ClosePage_ACK,
1428 ViewMsg_ClosePage_Params)
1429
1430 IPC_MESSAGE_ROUTED4(ViewHostMsg_DidDownloadFavicon, 1215 IPC_MESSAGE_ROUTED4(ViewHostMsg_DidDownloadFavicon,
1431 int /* Identifier of the request */, 1216 int /* Identifier of the request */,
1432 GURL /* URL of the image */, 1217 GURL /* URL of the image */,
1433 bool /* true if there was a network error */, 1218 bool /* true if there was a network error */,
1434 SkBitmap /* image_data */) 1219 SkBitmap /* image_data */)
1435 1220
1436 // Sent when the renderer process is done processing a DataReceived 1221 // Sent when the renderer process is done processing a DataReceived
1437 // message. 1222 // message.
1438 IPC_MESSAGE_ROUTED1(ViewHostMsg_DataReceived_ACK, 1223 IPC_MESSAGE_ROUTED1(ViewHostMsg_DataReceived_ACK,
1439 int /* request_id */) 1224 int /* request_id */)
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
1602 1387
1603 // This message notifies the browser process that the plug-in 1388 // This message notifies the browser process that the plug-in
1604 // swapped the buffers associated with the given "window", which 1389 // swapped the buffers associated with the given "window", which
1605 // should cause the browser to redraw the various plug-ins' 1390 // should cause the browser to redraw the various plug-ins'
1606 // contents. 1391 // contents.
1607 IPC_MESSAGE_ROUTED2(ViewHostMsg_AcceleratedSurfaceBuffersSwapped, 1392 IPC_MESSAGE_ROUTED2(ViewHostMsg_AcceleratedSurfaceBuffersSwapped,
1608 gfx::PluginWindowHandle /* window */, 1393 gfx::PluginWindowHandle /* window */,
1609 uint64 /* surface_id */) 1394 uint64 /* surface_id */)
1610 #endif 1395 #endif
1611 1396
1612 // A renderer sends this to the browser process when it wants to create a
1613 // worker. The browser will create the worker process if necessary, and
1614 // will return the route id on success. On error returns MSG_ROUTING_NONE.
1615 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_CreateWorker,
1616 ViewHostMsg_CreateWorker_Params,
1617 int /* route_id */)
1618
1619 // This message is sent to the browser to see if an instance of this shared
1620 // worker already exists. If so, it returns exists == true. If a
1621 // non-empty name is passed, also validates that the url matches the url of
1622 // the existing worker. If a matching worker is found, the passed-in
1623 // document_id is associated with that worker, to ensure that the worker
1624 // stays alive until the document is detached.
1625 // The route_id returned can be used to forward messages to the worker via
1626 // ForwardToWorker if it exists, otherwise it should be passed in to any
1627 // future call to CreateWorker to avoid creating duplicate workers.
1628 IPC_SYNC_MESSAGE_CONTROL1_3(ViewHostMsg_LookupSharedWorker,
1629 ViewHostMsg_CreateWorker_Params,
1630 bool /* exists */,
1631 int /* route_id */,
1632 bool /* url_mismatch */)
1633
1634 // A renderer sends this to the browser process when a document has been
1635 // detached. The browser will use this to constrain the lifecycle of worker
1636 // processes (SharedWorkers are shut down when their last associated document
1637 // is detached).
1638 IPC_MESSAGE_CONTROL1(ViewHostMsg_DocumentDetached,
1639 uint64 /* document_id */)
1640
1641 // Sent if the worker object has sent a ViewHostMsg_CreateDedicatedWorker
1642 // message and not received a ViewMsg_WorkerCreated reply, but in the
1643 // mean time it's destroyed. This tells the browser to not create the queued
1644 // worker.
1645 IPC_MESSAGE_CONTROL1(ViewHostMsg_CancelCreateDedicatedWorker,
1646 int /* route_id */)
1647
1648 // Wraps an IPC message that's destined to the worker on the renderer->browser
1649 // hop.
1650 IPC_MESSAGE_CONTROL1(ViewHostMsg_ForwardToWorker,
1651 IPC::Message /* message */)
1652
1653 // Open a channel to all listening contexts owned by the extension with 1397 // Open a channel to all listening contexts owned by the extension with
1654 // the given ID. This always returns a valid port ID which can be used for 1398 // the given ID. This always returns a valid port ID which can be used for
1655 // sending messages. If an error occurred, the opener will be notified 1399 // sending messages. If an error occurred, the opener will be notified
1656 // asynchronously. 1400 // asynchronously.
1657 IPC_SYNC_MESSAGE_CONTROL4_1(ViewHostMsg_OpenChannelToExtension, 1401 IPC_SYNC_MESSAGE_CONTROL4_1(ViewHostMsg_OpenChannelToExtension,
1658 int /* routing_id */, 1402 int /* routing_id */,
1659 std::string /* source_extension_id */, 1403 std::string /* source_extension_id */,
1660 std::string /* target_extension_id */, 1404 std::string /* target_extension_id */,
1661 std::string /* channel_name */, 1405 std::string /* channel_name */,
1662 int /* port_id */) 1406 int /* port_id */)
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
1817 // Register a new handler for URL requests with the given scheme. 1561 // Register a new handler for URL requests with the given scheme.
1818 IPC_MESSAGE_ROUTED3(ViewHostMsg_RegisterProtocolHandler, 1562 IPC_MESSAGE_ROUTED3(ViewHostMsg_RegisterProtocolHandler,
1819 std::string /* scheme */, 1563 std::string /* scheme */,
1820 GURL /* url */, 1564 GURL /* url */,
1821 string16 /* title */) 1565 string16 /* title */)
1822 1566
1823 // Send from the renderer to the browser to return the script running result. 1567 // Send from the renderer to the browser to return the script running result.
1824 IPC_MESSAGE_ROUTED2(ViewHostMsg_ExecuteCodeFinished, 1568 IPC_MESSAGE_ROUTED2(ViewHostMsg_ExecuteCodeFinished,
1825 int, /* request id */ 1569 int, /* request id */
1826 bool /* whether the script ran successfully */) 1570 bool /* whether the script ran successfully */)
OLDNEW
« no previous file with comments | « chrome/common/extensions/extension_unpacker.cc ('k') | chrome/common/render_messages.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698