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

Side by Side Diff: content/common/view_messages.h

Issue 743803002: Avoid stale navigation requests without excessive page id knowledge in the renderer process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: charlie's fixes Created 6 years 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
OLDNEW
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 538 matching lines...) Expand 10 before | Expand all | Expand 10 after
549 IPC_MESSAGE_ROUTED1(ViewMsg_LockMouse_ACK, 549 IPC_MESSAGE_ROUTED1(ViewMsg_LockMouse_ACK,
550 bool /* succeeded */) 550 bool /* succeeded */)
551 // Tells the render side that the mouse has been unlocked. 551 // Tells the render side that the mouse has been unlocked.
552 IPC_MESSAGE_ROUTED0(ViewMsg_MouseLockLost) 552 IPC_MESSAGE_ROUTED0(ViewMsg_MouseLockLost)
553 553
554 // Sent by the browser when the parameters for vsync alignment have changed. 554 // Sent by the browser when the parameters for vsync alignment have changed.
555 IPC_MESSAGE_ROUTED2(ViewMsg_UpdateVSyncParameters, 555 IPC_MESSAGE_ROUTED2(ViewMsg_UpdateVSyncParameters,
556 base::TimeTicks /* timebase */, 556 base::TimeTicks /* timebase */,
557 base::TimeDelta /* interval */) 557 base::TimeDelta /* interval */)
558 558
559 // Sent to the RenderView when a new tab is swapped into an existing 559 // Sent when the history is altered outside of navigation. The history list was
560 // tab and the histories need to be merged. The existing tab has a history of 560 // reset to |history_length| length, and the offset was reset to be
561 // |merged_history_length| which precedes the history of the new tab. All 561 // |history_offset|.
562 // page_ids >= |minimum_page_id| in the new tab are appended to the history. 562 IPC_MESSAGE_ROUTED2(ViewMsg_SetHistoryOffsetAndLength,
563 // 563 int /* history_offset */,
564 // For example, suppose the history of page_ids in the new tab's RenderView 564 int /* history_length */)
565 // is [4 7 8]. This is merged into an existing tab with 3 history items, and
566 // all pages in the new tab with page_id >= 7 are to be preserved.
567 // The resulting page history is [-1 -1 -1 7 8].
568 IPC_MESSAGE_ROUTED2(ViewMsg_SetHistoryLengthAndPrune,
569 int, /* merge_history_length */
570 int32 /* minimum_page_id */)
571 565
572 // Tells the renderer to create a new view. 566 // Tells the renderer to create a new view.
573 // This message is slightly different, the view it takes (via 567 // This message is slightly different, the view it takes (via
574 // ViewMsg_New_Params) is the view to create, the message itself is sent as a 568 // ViewMsg_New_Params) is the view to create, the message itself is sent as a
575 // non-view control message. 569 // non-view control message.
576 IPC_MESSAGE_CONTROL1(ViewMsg_New, 570 IPC_MESSAGE_CONTROL1(ViewMsg_New,
577 ViewMsg_New_Params) 571 ViewMsg_New_Params)
578 572
579 // Reply in response to ViewHostMsg_ShowView or ViewHostMsg_ShowWidget. 573 // Reply in response to ViewHostMsg_ShowView or ViewHostMsg_ShowWidget.
580 // similar to the new command, but used when the renderer created a view 574 // similar to the new command, but used when the renderer created a view
(...skipping 1085 matching lines...) Expand 10 before | Expand all | Expand 10 after
1666 // Since the browser keeps handles to the allocated transport DIBs, this 1660 // Since the browser keeps handles to the allocated transport DIBs, this
1667 // message is sent to tell the browser that it may release them when the 1661 // message is sent to tell the browser that it may release them when the
1668 // renderer is finished with them. 1662 // renderer is finished with them.
1669 IPC_MESSAGE_CONTROL1(ViewHostMsg_FreeTransportDIB, 1663 IPC_MESSAGE_CONTROL1(ViewHostMsg_FreeTransportDIB,
1670 TransportDIB::Id /* DIB id */) 1664 TransportDIB::Id /* DIB id */)
1671 #endif 1665 #endif
1672 1666
1673 // Adding a new message? Stick to the sort order above: first platform 1667 // Adding a new message? Stick to the sort order above: first platform
1674 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform 1668 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform
1675 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. 1669 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698