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

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

Issue 7618016: Additional fixes for prerender/instant + browsing history. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Wrong signature Created 9 years, 4 months 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/process.h" 8 #include "base/process.h"
9 #include "base/shared_memory.h" 9 #include "base/shared_memory.h"
10 #include "content/common/common_param_traits.h" 10 #include "content/common/common_param_traits.h"
(...skipping 726 matching lines...) Expand 10 before | Expand all | Expand 10 after
737 IPC_STRUCT_MEMBER(string16, frame_name) 737 IPC_STRUCT_MEMBER(string16, frame_name)
738 IPC_STRUCT_END() 738 IPC_STRUCT_END()
739 739
740 // Messages sent from the browser to the renderer. 740 // Messages sent from the browser to the renderer.
741 741
742 // Used typically when recovering from a crash. The new rendering process 742 // Used typically when recovering from a crash. The new rendering process
743 // sets its global "next page id" counter to the given value. 743 // sets its global "next page id" counter to the given value.
744 IPC_MESSAGE_CONTROL1(ViewMsg_SetNextPageID, 744 IPC_MESSAGE_CONTROL1(ViewMsg_SetNextPageID,
745 int32 /* next_page_id */) 745 int32 /* next_page_id */)
746 746
747 // Sets the history length of page_ids for a RenderView to 747 // Sent to the RenderView when a prerendered or instant page is committed
jam 2011/08/15 15:59:10 content layer doesn't know about prerendering/inst
748 // |length| entries, and moves the current page_id to the last 748 // to an existing tab. The existing tab has a history of
749 // entry if it is valid. 749 // |merged_history_length| which precedes the current history of pages
750 // The main use for this is prerendered pages, but Instant pages also use this. 750 // in the render view. All page_ids >= |minimum_page_id| are appended to
751 // For example, assume that there are 3 entries in the history when a 751 // this new history in the same order.
752 // prerendered page is created. The new prerendered page will have a single 752 //
753 // entry history like [7]. When it is swapped in, we need to extend the history 753 // For example, suppose the history of page_ids in the instant RenderView
754 // so it has a total length of 4 (3 for the previous history, 1 for the 754 // is [4 7 8]. This instant RenderView is committed, and merged into
755 // prerendered page), so it looks like [-1 -1 -1 7]. 755 // an existing tab with 3 history items, with every page with page_id >= 7
756 IPC_MESSAGE_ROUTED1(ViewMsg_SetHistoryLengthAndClear, 756 // is preserved. The resulting page history is [-1 -1 -1 7 8].
757 int /* length */) 757 IPC_MESSAGE_ROUTED2(ViewMsg_SetHistoryLengthAndPrune,
758 int, /* merge_history_length */
759 int32 /* minimum_page_id */)
758 760
759 // Sends System Colors corresponding to a set of CSS color keywords 761 // Sends System Colors corresponding to a set of CSS color keywords
760 // down the pipe. 762 // down the pipe.
761 // This message must be sent to the renderer immediately on launch 763 // This message must be sent to the renderer immediately on launch
762 // before creating any new views. 764 // before creating any new views.
763 // The message can also be sent during a renderer's lifetime if system colors 765 // The message can also be sent during a renderer's lifetime if system colors
764 // are updated. 766 // are updated.
765 // TODO(jeremy): Possibly change IPC format once we have this all hooked up. 767 // TODO(jeremy): Possibly change IPC format once we have this all hooked up.
766 IPC_MESSAGE_ROUTED1(ViewMsg_SetCSSColors, 768 IPC_MESSAGE_ROUTED1(ViewMsg_SetCSSColors,
767 std::vector<CSSColors::CSSColorMapping>) 769 std::vector<CSSColors::CSSColorMapping>)
(...skipping 1284 matching lines...) Expand 10 before | Expand all | Expand 10 after
2052 int32 /* complete status */) 2054 int32 /* complete status */)
2053 2055
2054 // Request updated information about the client firewall traversal policy. 2056 // Request updated information about the client firewall traversal policy.
2055 // Will result in a ViewMsg_UpdateRemoteAccessClientFirewallTraversal message 2057 // Will result in a ViewMsg_UpdateRemoteAccessClientFirewallTraversal message
2056 // being sent back. 2058 // being sent back.
2057 IPC_MESSAGE_ROUTED0(ViewHostMsg_RequestRemoteAccessClientFirewallTraversal) 2059 IPC_MESSAGE_ROUTED0(ViewHostMsg_RequestRemoteAccessClientFirewallTraversal)
2058 2060
2059 // Notifies the browser of an event occurring in the media pipeline. 2061 // Notifies the browser of an event occurring in the media pipeline.
2060 IPC_MESSAGE_CONTROL1(ViewHostMsg_MediaLogEvent, 2062 IPC_MESSAGE_CONTROL1(ViewHostMsg_MediaLogEvent,
2061 media::MediaLogEvent /* event */) 2063 media::MediaLogEvent /* event */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698