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) | |
(Do not use) nasko
2014/08/28 16:39:09
Do we really need to send history parameters down
clamy
2014/09/02 18:25:19
I don't know. Right now the history gets updated i
| |
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 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
471 std::vector<int> /* selected indices */) | 527 std::vector<int> /* selected indices */) |
472 | 528 |
473 #elif defined(OS_MACOSX) | 529 #elif defined(OS_MACOSX) |
474 | 530 |
475 // External popup menus. | 531 // External popup menus. |
476 IPC_MESSAGE_ROUTED1(FrameMsg_SelectPopupMenuItem, | 532 IPC_MESSAGE_ROUTED1(FrameMsg_SelectPopupMenuItem, |
477 int /* selected index, -1 means no selection */) | 533 int /* selected index, -1 means no selection */) |
478 | 534 |
479 #endif | 535 #endif |
480 | 536 |
537 // Tells the renderer to commit the specific navigation, as part of the | |
538 // browser-side navigation refactoring. | |
539 IPC_MESSAGE_ROUTED1(FrameMsg_CommitNavigation, FrameMsg_CommitNavigation_Params) | |
(Do not use) nasko
2014/08/28 16:39:09
If we are adding an IPC, let's add a handler in th
clamy
2014/09/02 18:25:19
Done.
| |
540 | |
481 // ----------------------------------------------------------------------------- | 541 // ----------------------------------------------------------------------------- |
482 // Messages sent from the renderer to the browser. | 542 // Messages sent from the renderer to the browser. |
483 | 543 |
484 // Blink and JavaScript error messages to log to the console | 544 // Blink and JavaScript error messages to log to the console |
485 // or debugger UI. | 545 // or debugger UI. |
486 IPC_MESSAGE_ROUTED4(FrameHostMsg_AddMessageToConsole, | 546 IPC_MESSAGE_ROUTED4(FrameHostMsg_AddMessageToConsole, |
487 int32, /* log level */ | 547 int32, /* log level */ |
488 base::string16, /* msg */ | 548 base::string16, /* msg */ |
489 int32, /* line number */ | 549 int32, /* line number */ |
490 base::string16 /* source id */ ) | 550 base::string16 /* source id */ ) |
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
759 IPC_MESSAGE_ROUTED0(FrameHostMsg_DidFirstVisuallyNonEmptyPaint) | 819 IPC_MESSAGE_ROUTED0(FrameHostMsg_DidFirstVisuallyNonEmptyPaint) |
760 | 820 |
761 #if defined(OS_MACOSX) || defined(OS_ANDROID) | 821 #if defined(OS_MACOSX) || defined(OS_ANDROID) |
762 | 822 |
763 // Message to show/hide a popup menu using native controls. | 823 // Message to show/hide a popup menu using native controls. |
764 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup, | 824 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup, |
765 FrameHostMsg_ShowPopup_Params) | 825 FrameHostMsg_ShowPopup_Params) |
766 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup) | 826 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup) |
767 | 827 |
768 #endif | 828 #endif |
OLD | NEW |