OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 interacting with frames. | 5 // IPC messages for interacting with frames. |
6 // Multiply-included message file, hence no include guard. | 6 // Multiply-included message file, hence no include guard. |
7 | 7 |
8 #include "content/common/content_export.h" | 8 #include "content/common/content_export.h" |
9 #include "content/common/content_param_traits.h" | 9 #include "content/common/content_param_traits.h" |
10 #include "content/common/frame_message_enums.h" | 10 #include "content/common/frame_message_enums.h" |
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
298 IPC_STRUCT_MEMBER(content::PageTransition, transition_type) | 298 IPC_STRUCT_MEMBER(content::PageTransition, transition_type) |
299 | 299 |
300 // Whether this navigation should replace the current session history entry on | 300 // Whether this navigation should replace the current session history entry on |
301 // commit. | 301 // commit. |
302 IPC_STRUCT_MEMBER(bool, should_replace_current_entry) | 302 IPC_STRUCT_MEMBER(bool, should_replace_current_entry) |
303 | 303 |
304 // Whether or not we should allow the URL to download. | 304 // Whether or not we should allow the URL to download. |
305 IPC_STRUCT_MEMBER(bool, allow_download) | 305 IPC_STRUCT_MEMBER(bool, allow_download) |
306 IPC_STRUCT_END() | 306 IPC_STRUCT_END() |
307 | 307 |
| 308 IPC_STRUCT_BEGIN(FrameMsg_CommitNavigation_Params) |
| 309 // The URL to commit. |
| 310 IPC_STRUCT_MEMBER(GURL, url) |
| 311 |
| 312 // The URL to request to the browser to get access to the stream of data. |
| 313 IPC_STRUCT_MEMBER(GURL, stream_url) |
| 314 |
| 315 // The page_id for this navigation, or -1 if it is a new navigation. Back, |
| 316 // Forward, and Reload navigations should have a valid page_id. If the load |
| 317 // succeeds, then this page_id will be reflected in the resultant |
| 318 // FrameHostMsg_DidCommitProvisionalLoad message. |
| 319 IPC_STRUCT_MEMBER(int32, page_id) |
| 320 |
| 321 // If page_id is -1, then pending_history_list_offset will also be -1. |
| 322 // Otherwise, it contains the offset into the history list corresponding to |
| 323 // the current navigation. |
| 324 IPC_STRUCT_MEMBER(int, pending_history_list_offset) |
| 325 |
| 326 // Informs the RenderView of where its current page contents reside in |
| 327 // session history and the total size of the session history list. |
| 328 IPC_STRUCT_MEMBER(int, current_history_list_offset) |
| 329 IPC_STRUCT_MEMBER(int, current_history_list_length) |
| 330 |
| 331 // Informs the RenderView the session history should be cleared. In that |
| 332 // case, the RenderView needs to notify the browser that the clearing was |
| 333 // succesful when the navigation commits. |
| 334 IPC_STRUCT_MEMBER(bool, should_clear_history_list) |
| 335 |
| 336 // TODO(clamy): Investigate whether we should support data urls here. |
| 337 |
| 338 // The URL to send in the "Referer" header field. Can be empty if there is |
| 339 // no referrer. |
| 340 IPC_STRUCT_MEMBER(content::Referrer, referrer) |
| 341 |
| 342 // TODO(clamy): Investigate whether we should send the chain of redirects |
| 343 // along. |
| 344 |
| 345 // The type of transition. |
| 346 IPC_STRUCT_MEMBER(content::PageTransition, transition) |
| 347 |
| 348 // Opaque history state (received by ViewHostMsg_UpdateState). |
| 349 IPC_STRUCT_MEMBER(content::PageState, page_state) |
| 350 |
| 351 // Type of navigation. |
| 352 IPC_STRUCT_MEMBER(FrameMsg_Navigate_Type::Value, navigation_type) |
| 353 |
| 354 // Whether or not the user agent override string should be used. |
| 355 IPC_STRUCT_MEMBER(bool, is_overriding_user_agent) |
| 356 |
| 357 // The navigationStart time to expose through the Navigation Timing API to JS. |
| 358 IPC_STRUCT_MEMBER(base::TimeTicks, browser_navigation_start) |
| 359 |
| 360 // TODO(clamy): Add other timing values needed by the Navigation Timing API |
| 361 // (redirects, etc...). |
| 362 IPC_STRUCT_END() |
| 363 |
308 #if defined(OS_MACOSX) || defined(OS_ANDROID) | 364 #if defined(OS_MACOSX) || defined(OS_ANDROID) |
309 // This message is used for supporting popup menus on Mac OS X and Android using | 365 // This message is used for supporting popup menus on Mac OS X and Android using |
310 // native controls. See the FrameHostMsg_ShowPopup message. | 366 // native controls. See the FrameHostMsg_ShowPopup message. |
311 IPC_STRUCT_BEGIN(FrameHostMsg_ShowPopup_Params) | 367 IPC_STRUCT_BEGIN(FrameHostMsg_ShowPopup_Params) |
312 // Position on the screen. | 368 // Position on the screen. |
313 IPC_STRUCT_MEMBER(gfx::Rect, bounds) | 369 IPC_STRUCT_MEMBER(gfx::Rect, bounds) |
314 | 370 |
315 // The height of each item in the menu. | 371 // The height of each item in the menu. |
316 IPC_STRUCT_MEMBER(int, item_height) | 372 IPC_STRUCT_MEMBER(int, item_height) |
317 | 373 |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
474 std::vector<int> /* selected indices */) | 530 std::vector<int> /* selected indices */) |
475 | 531 |
476 #elif defined(OS_MACOSX) | 532 #elif defined(OS_MACOSX) |
477 | 533 |
478 // External popup menus. | 534 // External popup menus. |
479 IPC_MESSAGE_ROUTED1(FrameMsg_SelectPopupMenuItem, | 535 IPC_MESSAGE_ROUTED1(FrameMsg_SelectPopupMenuItem, |
480 int /* selected index, -1 means no selection */) | 536 int /* selected index, -1 means no selection */) |
481 | 537 |
482 #endif | 538 #endif |
483 | 539 |
| 540 // Tells the renderer to commit the specific navigation, as part of the |
| 541 // browser-side navigation refactoring. |
| 542 IPC_MESSAGE_ROUTED1(FrameMsg_CommitNavigation, FrameMsg_CommitNavigation_Params) |
| 543 |
484 // ----------------------------------------------------------------------------- | 544 // ----------------------------------------------------------------------------- |
485 // Messages sent from the renderer to the browser. | 545 // Messages sent from the renderer to the browser. |
486 | 546 |
487 // Blink and JavaScript error messages to log to the console | 547 // Blink and JavaScript error messages to log to the console |
488 // or debugger UI. | 548 // or debugger UI. |
489 IPC_MESSAGE_ROUTED4(FrameHostMsg_AddMessageToConsole, | 549 IPC_MESSAGE_ROUTED4(FrameHostMsg_AddMessageToConsole, |
490 int32, /* log level */ | 550 int32, /* log level */ |
491 base::string16, /* msg */ | 551 base::string16, /* msg */ |
492 int32, /* line number */ | 552 int32, /* line number */ |
493 base::string16 /* source id */ ) | 553 base::string16 /* source id */ ) |
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
762 IPC_MESSAGE_ROUTED0(FrameHostMsg_DidFirstVisuallyNonEmptyPaint) | 822 IPC_MESSAGE_ROUTED0(FrameHostMsg_DidFirstVisuallyNonEmptyPaint) |
763 | 823 |
764 #if defined(OS_MACOSX) || defined(OS_ANDROID) | 824 #if defined(OS_MACOSX) || defined(OS_ANDROID) |
765 | 825 |
766 // Message to show/hide a popup menu using native controls. | 826 // Message to show/hide a popup menu using native controls. |
767 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup, | 827 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup, |
768 FrameHostMsg_ShowPopup_Params) | 828 FrameHostMsg_ShowPopup_Params) |
769 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup) | 829 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup) |
770 | 830 |
771 #endif | 831 #endif |
OLD | NEW |