| 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) | |
| 75 IPC_ENUM_TRAITS(blink::WebMediaPlayerAction::Type) | 74 IPC_ENUM_TRAITS(blink::WebMediaPlayerAction::Type) |
| 76 IPC_ENUM_TRAITS(blink::WebPluginAction::Type) | 75 IPC_ENUM_TRAITS(blink::WebPluginAction::Type) |
| 77 IPC_ENUM_TRAITS(blink::WebPopupType) | 76 IPC_ENUM_TRAITS(blink::WebPopupType) |
| 78 IPC_ENUM_TRAITS(blink::WebTextDirection) | 77 IPC_ENUM_TRAITS(blink::WebTextDirection) |
| 79 IPC_ENUM_TRAITS(WindowContainerType) | 78 IPC_ENUM_TRAITS(WindowContainerType) |
| 80 IPC_ENUM_TRAITS(content::FaviconURL::IconType) | 79 IPC_ENUM_TRAITS(content::FaviconURL::IconType) |
| 81 IPC_ENUM_TRAITS(content::FileChooserParams::Mode) | 80 IPC_ENUM_TRAITS(content::FileChooserParams::Mode) |
| 82 IPC_ENUM_TRAITS(content::JavaScriptMessageType) | 81 IPC_ENUM_TRAITS(content::JavaScriptMessageType) |
| 83 IPC_ENUM_TRAITS(content::MenuItem::Type) | 82 IPC_ENUM_TRAITS(content::MenuItem::Type) |
| 84 IPC_ENUM_TRAITS(content::NavigationGesture) | 83 IPC_ENUM_TRAITS(content::NavigationGesture) |
| (...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 471 | 470 |
| 472 // All the above coordinates are in DIP. This is the scale factor needed | 471 // All the above coordinates are in DIP. This is the scale factor needed |
| 473 // to convert them to pixels. | 472 // to convert them to pixels. |
| 474 IPC_STRUCT_MEMBER(float, scale_factor) | 473 IPC_STRUCT_MEMBER(float, scale_factor) |
| 475 | 474 |
| 476 // The latency information for the frame. Only valid when accelerated | 475 // The latency information for the frame. Only valid when accelerated |
| 477 // compositing is disabled. | 476 // compositing is disabled. |
| 478 IPC_STRUCT_MEMBER(std::vector<ui::LatencyInfo>, latency_info) | 477 IPC_STRUCT_MEMBER(std::vector<ui::LatencyInfo>, latency_info) |
| 479 IPC_STRUCT_END() | 478 IPC_STRUCT_END() |
| 480 | 479 |
| 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 | |
| 573 IPC_STRUCT_BEGIN(ViewMsg_New_Params) | 480 IPC_STRUCT_BEGIN(ViewMsg_New_Params) |
| 574 // Renderer-wide preferences. | 481 // Renderer-wide preferences. |
| 575 IPC_STRUCT_MEMBER(content::RendererPreferences, renderer_preferences) | 482 IPC_STRUCT_MEMBER(content::RendererPreferences, renderer_preferences) |
| 576 | 483 |
| 577 // Preferences for this view. | 484 // Preferences for this view. |
| 578 IPC_STRUCT_MEMBER(WebPreferences, web_preferences) | 485 IPC_STRUCT_MEMBER(WebPreferences, web_preferences) |
| 579 | 486 |
| 580 // The ID of the view to be created. | 487 // The ID of the view to be created. |
| 581 IPC_STRUCT_MEMBER(int32, view_id) | 488 IPC_STRUCT_MEMBER(int32, view_id) |
| 582 | 489 |
| (...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 763 // Tells the renderer to focus the first (last if reverse is true) focusable | 670 // Tells the renderer to focus the first (last if reverse is true) focusable |
| 764 // node. | 671 // node. |
| 765 IPC_MESSAGE_ROUTED1(ViewMsg_SetInitialFocus, | 672 IPC_MESSAGE_ROUTED1(ViewMsg_SetInitialFocus, |
| 766 bool /* reverse */) | 673 bool /* reverse */) |
| 767 | 674 |
| 768 // Sent to inform the renderer to invoke a context menu. | 675 // Sent to inform the renderer to invoke a context menu. |
| 769 // The parameter specifies the location in the render view's coordinates. | 676 // The parameter specifies the location in the render view's coordinates. |
| 770 IPC_MESSAGE_ROUTED1(ViewMsg_ShowContextMenu, | 677 IPC_MESSAGE_ROUTED1(ViewMsg_ShowContextMenu, |
| 771 gfx::Point /* location where menu should be shown */) | 678 gfx::Point /* location where menu should be shown */) |
| 772 | 679 |
| 773 // Tells the renderer to perform the specified navigation, interrupting any | |
| 774 // existing navigation. | |
| 775 IPC_MESSAGE_ROUTED1(ViewMsg_Navigate, ViewMsg_Navigate_Params) | |
| 776 | |
| 777 IPC_MESSAGE_ROUTED0(ViewMsg_Stop) | 680 IPC_MESSAGE_ROUTED0(ViewMsg_Stop) |
| 778 | 681 |
| 779 // Tells the renderer to reload the current focused frame | 682 // Tells the renderer to reload the current focused frame |
| 780 IPC_MESSAGE_ROUTED0(ViewMsg_ReloadFrame) | 683 IPC_MESSAGE_ROUTED0(ViewMsg_ReloadFrame) |
| 781 | 684 |
| 782 // Sent when the user wants to search for a word on the page (find in page). | 685 // Sent when the user wants to search for a word on the page (find in page). |
| 783 IPC_MESSAGE_ROUTED3(ViewMsg_Find, | 686 IPC_MESSAGE_ROUTED3(ViewMsg_Find, |
| 784 int /* request_id */, | 687 int /* request_id */, |
| 785 base::string16 /* search_text */, | 688 base::string16 /* search_text */, |
| 786 blink::WebFindOptions) | 689 blink::WebFindOptions) |
| (...skipping 1324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2111 // synchronously (see crbug.com/120597). This IPC message sends the character | 2014 // synchronously (see crbug.com/120597). This IPC message sends the character |
| 2112 // bounds after every composition change to always have correct bound info. | 2015 // bounds after every composition change to always have correct bound info. |
| 2113 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, | 2016 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, |
| 2114 gfx::Range /* composition range */, | 2017 gfx::Range /* composition range */, |
| 2115 std::vector<gfx::Rect> /* character bounds */) | 2018 std::vector<gfx::Rect> /* character bounds */) |
| 2116 #endif | 2019 #endif |
| 2117 | 2020 |
| 2118 // Adding a new message? Stick to the sort order above: first platform | 2021 // Adding a new message? Stick to the sort order above: first platform |
| 2119 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 2022 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform |
| 2120 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 2023 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. |
| OLD | NEW |