OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/memory/shared_memory.h" | 8 #include "base/memory/shared_memory.h" |
9 #include "base/process/process.h" | 9 #include "base/process/process.h" |
10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 #include "content/common/mac/font_descriptor.h" | 64 #include "content/common/mac/font_descriptor.h" |
65 #include "third_party/WebKit/public/web/mac/WebScrollbarTheme.h" | 65 #include "third_party/WebKit/public/web/mac/WebScrollbarTheme.h" |
66 #endif | 66 #endif |
67 | 67 |
68 #undef IPC_MESSAGE_EXPORT | 68 #undef IPC_MESSAGE_EXPORT |
69 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT | 69 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT |
70 | 70 |
71 #define IPC_MESSAGE_START ViewMsgStart | 71 #define IPC_MESSAGE_START ViewMsgStart |
72 | 72 |
73 IPC_ENUM_TRAITS(AccessibilityMode) | 73 IPC_ENUM_TRAITS(AccessibilityMode) |
| 74 IPC_ENUM_TRAITS(ViewMsg_Navigate_Type::Value) |
74 IPC_ENUM_TRAITS(blink::WebMediaPlayerAction::Type) | 75 IPC_ENUM_TRAITS(blink::WebMediaPlayerAction::Type) |
75 IPC_ENUM_TRAITS(blink::WebPluginAction::Type) | 76 IPC_ENUM_TRAITS(blink::WebPluginAction::Type) |
76 IPC_ENUM_TRAITS(blink::WebPopupType) | 77 IPC_ENUM_TRAITS(blink::WebPopupType) |
77 IPC_ENUM_TRAITS(blink::WebTextDirection) | 78 IPC_ENUM_TRAITS(blink::WebTextDirection) |
78 IPC_ENUM_TRAITS(WindowContainerType) | 79 IPC_ENUM_TRAITS(WindowContainerType) |
79 IPC_ENUM_TRAITS(content::FaviconURL::IconType) | 80 IPC_ENUM_TRAITS(content::FaviconURL::IconType) |
80 IPC_ENUM_TRAITS(content::FileChooserParams::Mode) | 81 IPC_ENUM_TRAITS(content::FileChooserParams::Mode) |
81 IPC_ENUM_TRAITS(content::JavaScriptMessageType) | 82 IPC_ENUM_TRAITS(content::JavaScriptMessageType) |
82 IPC_ENUM_TRAITS(content::MenuItem::Type) | 83 IPC_ENUM_TRAITS(content::MenuItem::Type) |
83 IPC_ENUM_TRAITS(content::NavigationGesture) | 84 IPC_ENUM_TRAITS(content::NavigationGesture) |
(...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
470 | 471 |
471 // All the above coordinates are in DIP. This is the scale factor needed | 472 // All the above coordinates are in DIP. This is the scale factor needed |
472 // to convert them to pixels. | 473 // to convert them to pixels. |
473 IPC_STRUCT_MEMBER(float, scale_factor) | 474 IPC_STRUCT_MEMBER(float, scale_factor) |
474 | 475 |
475 // The latency information for the frame. Only valid when accelerated | 476 // The latency information for the frame. Only valid when accelerated |
476 // compositing is disabled. | 477 // compositing is disabled. |
477 IPC_STRUCT_MEMBER(std::vector<ui::LatencyInfo>, latency_info) | 478 IPC_STRUCT_MEMBER(std::vector<ui::LatencyInfo>, latency_info) |
478 IPC_STRUCT_END() | 479 IPC_STRUCT_END() |
479 | 480 |
| 481 IPC_STRUCT_BEGIN(ViewMsg_Navigate_Params) |
| 482 // The page_id for this navigation, or -1 if it is a new navigation. Back, |
| 483 // Forward, and Reload navigations should have a valid page_id. If the load |
| 484 // succeeds, then this page_id will be reflected in the resultant |
| 485 // FrameHostMsg_DidCommitProvisionalLoad message. |
| 486 IPC_STRUCT_MEMBER(int32, page_id) |
| 487 |
| 488 // If page_id is -1, then pending_history_list_offset will also be -1. |
| 489 // Otherwise, it contains the offset into the history list corresponding to |
| 490 // the current navigation. |
| 491 IPC_STRUCT_MEMBER(int, pending_history_list_offset) |
| 492 |
| 493 // Informs the RenderView of where its current page contents reside in |
| 494 // session history and the total size of the session history list. |
| 495 IPC_STRUCT_MEMBER(int, current_history_list_offset) |
| 496 IPC_STRUCT_MEMBER(int, current_history_list_length) |
| 497 |
| 498 // Informs the RenderView the session history should be cleared. In that |
| 499 // case, the RenderView needs to notify the browser that the clearing was |
| 500 // succesful when the navigation commits. |
| 501 IPC_STRUCT_MEMBER(bool, should_clear_history_list) |
| 502 |
| 503 // The URL to load. |
| 504 IPC_STRUCT_MEMBER(GURL, url) |
| 505 |
| 506 // Base URL for use in WebKit's SubstituteData. |
| 507 // Is only used with data: URLs. |
| 508 IPC_STRUCT_MEMBER(GURL, base_url_for_data_url) |
| 509 |
| 510 // History URL for use in WebKit's SubstituteData. |
| 511 // Is only used with data: URLs. |
| 512 IPC_STRUCT_MEMBER(GURL, history_url_for_data_url) |
| 513 |
| 514 // The URL to send in the "Referer" header field. Can be empty if there is |
| 515 // no referrer. |
| 516 IPC_STRUCT_MEMBER(content::Referrer, referrer) |
| 517 |
| 518 // Any redirect URLs that occurred before |url|. Useful for cross-process |
| 519 // navigations; defaults to empty. |
| 520 IPC_STRUCT_MEMBER(std::vector<GURL>, redirects) |
| 521 |
| 522 // The type of transition. |
| 523 IPC_STRUCT_MEMBER(content::PageTransition, transition) |
| 524 |
| 525 // Informs the RenderView the pending navigation should replace the current |
| 526 // history entry when it commits. This is used for cross-process redirects so |
| 527 // the transferred navigation can recover the navigation state. |
| 528 IPC_STRUCT_MEMBER(bool, should_replace_current_entry) |
| 529 |
| 530 // Opaque history state (received by ViewHostMsg_UpdateState). |
| 531 IPC_STRUCT_MEMBER(content::PageState, page_state) |
| 532 |
| 533 // Type of navigation. |
| 534 IPC_STRUCT_MEMBER(ViewMsg_Navigate_Type::Value, navigation_type) |
| 535 |
| 536 // The time the request was created |
| 537 IPC_STRUCT_MEMBER(base::Time, request_time) |
| 538 |
| 539 // Extra headers (separated by \n) to send during the request. |
| 540 IPC_STRUCT_MEMBER(std::string, extra_headers) |
| 541 |
| 542 // The following two members identify a previous request that has been |
| 543 // created before this navigation is being transferred to a new render view. |
| 544 // This serves the purpose of recycling the old request. |
| 545 // Unless this refers to a transferred navigation, these values are -1 and -1. |
| 546 IPC_STRUCT_MEMBER(int, transferred_request_child_id) |
| 547 IPC_STRUCT_MEMBER(int, transferred_request_request_id) |
| 548 |
| 549 // Whether or not we should allow the url to download. |
| 550 IPC_STRUCT_MEMBER(bool, allow_download) |
| 551 |
| 552 // Whether or not the user agent override string should be used. |
| 553 IPC_STRUCT_MEMBER(bool, is_overriding_user_agent) |
| 554 |
| 555 // True if this was a post request. |
| 556 IPC_STRUCT_MEMBER(bool, is_post) |
| 557 |
| 558 // If is_post is true, holds the post_data information from browser. Empty |
| 559 // otherwise. |
| 560 IPC_STRUCT_MEMBER(std::vector<unsigned char>, browser_initiated_post_data) |
| 561 |
| 562 // Whether or not this url should be allowed to access local file:// |
| 563 // resources. |
| 564 IPC_STRUCT_MEMBER(bool, can_load_local_resources) |
| 565 |
| 566 // If not empty, which frame to navigate. |
| 567 IPC_STRUCT_MEMBER(std::string, frame_to_navigate) |
| 568 |
| 569 // The navigationStart time to expose to JS for this navigation. |
| 570 IPC_STRUCT_MEMBER(base::TimeTicks, browser_navigation_start) |
| 571 IPC_STRUCT_END() |
| 572 |
480 IPC_STRUCT_BEGIN(ViewMsg_New_Params) | 573 IPC_STRUCT_BEGIN(ViewMsg_New_Params) |
481 // Renderer-wide preferences. | 574 // Renderer-wide preferences. |
482 IPC_STRUCT_MEMBER(content::RendererPreferences, renderer_preferences) | 575 IPC_STRUCT_MEMBER(content::RendererPreferences, renderer_preferences) |
483 | 576 |
484 // Preferences for this view. | 577 // Preferences for this view. |
485 IPC_STRUCT_MEMBER(WebPreferences, web_preferences) | 578 IPC_STRUCT_MEMBER(WebPreferences, web_preferences) |
486 | 579 |
487 // The ID of the view to be created. | 580 // The ID of the view to be created. |
488 IPC_STRUCT_MEMBER(int32, view_id) | 581 IPC_STRUCT_MEMBER(int32, view_id) |
489 | 582 |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
670 // Tells the renderer to focus the first (last if reverse is true) focusable | 763 // Tells the renderer to focus the first (last if reverse is true) focusable |
671 // node. | 764 // node. |
672 IPC_MESSAGE_ROUTED1(ViewMsg_SetInitialFocus, | 765 IPC_MESSAGE_ROUTED1(ViewMsg_SetInitialFocus, |
673 bool /* reverse */) | 766 bool /* reverse */) |
674 | 767 |
675 // Sent to inform the renderer to invoke a context menu. | 768 // Sent to inform the renderer to invoke a context menu. |
676 // The parameter specifies the location in the render view's coordinates. | 769 // The parameter specifies the location in the render view's coordinates. |
677 IPC_MESSAGE_ROUTED1(ViewMsg_ShowContextMenu, | 770 IPC_MESSAGE_ROUTED1(ViewMsg_ShowContextMenu, |
678 gfx::Point /* location where menu should be shown */) | 771 gfx::Point /* location where menu should be shown */) |
679 | 772 |
| 773 // Tells the renderer to perform the specified navigation, interrupting any |
| 774 // existing navigation. |
| 775 IPC_MESSAGE_ROUTED1(ViewMsg_Navigate, ViewMsg_Navigate_Params) |
| 776 |
680 IPC_MESSAGE_ROUTED0(ViewMsg_Stop) | 777 IPC_MESSAGE_ROUTED0(ViewMsg_Stop) |
681 | 778 |
682 // Tells the renderer to reload the current focused frame | 779 // Tells the renderer to reload the current focused frame |
683 IPC_MESSAGE_ROUTED0(ViewMsg_ReloadFrame) | 780 IPC_MESSAGE_ROUTED0(ViewMsg_ReloadFrame) |
684 | 781 |
685 // Sent when the user wants to search for a word on the page (find in page). | 782 // Sent when the user wants to search for a word on the page (find in page). |
686 IPC_MESSAGE_ROUTED3(ViewMsg_Find, | 783 IPC_MESSAGE_ROUTED3(ViewMsg_Find, |
687 int /* request_id */, | 784 int /* request_id */, |
688 base::string16 /* search_text */, | 785 base::string16 /* search_text */, |
689 blink::WebFindOptions) | 786 blink::WebFindOptions) |
(...skipping 1324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2014 // synchronously (see crbug.com/120597). This IPC message sends the character | 2111 // synchronously (see crbug.com/120597). This IPC message sends the character |
2015 // bounds after every composition change to always have correct bound info. | 2112 // bounds after every composition change to always have correct bound info. |
2016 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, | 2113 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, |
2017 gfx::Range /* composition range */, | 2114 gfx::Range /* composition range */, |
2018 std::vector<gfx::Rect> /* character bounds */) | 2115 std::vector<gfx::Rect> /* character bounds */) |
2019 #endif | 2116 #endif |
2020 | 2117 |
2021 // Adding a new message? Stick to the sort order above: first platform | 2118 // Adding a new message? Stick to the sort order above: first platform |
2022 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 2119 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform |
2023 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 2120 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. |
OLD | NEW |