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

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: 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 727 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 // Sets the history length of page_ids for a RenderView to
748 // |length| entries, and moves the current page_id to the last 748 // |length| entries, and moves the current page_id to the last
Charlie Reis 2011/08/11 20:49:24 Nit: |page_id|
749 // entry if it is valid. 749 // entry if it is valid.
750 // The main use for this is prerendered pages, but Instant pages also use this. 750 // The main use for this is prerendered pages, but Instant pages also use this.
751 // For example, assume that there are 3 entries in the history when a 751 // For example, assume that there are 3 entries in the history when a
752 // prerendered page is created. The new prerendered page will have a single 752 // prerendered page is created. The new prerendered page will have a single
753 // entry history like [7]. When it is swapped in, we need to extend the history 753 // entry history like [7]. When it is swapped in, we need to extend the history
754 // so it has a total length of 4 (3 for the previous history, 1 for the 754 // so it has a total length of 4 (3 for the previous history, 1 for the
755 // prerendered page), so it looks like [-1 -1 -1 7]. 755 // prerendered page), so it looks like [-1 -1 -1 7].
756 IPC_MESSAGE_ROUTED1(ViewMsg_SetHistoryLengthAndClear, 756 IPC_MESSAGE_ROUTED2(ViewMsg_SetHistoryLengthAndClear,
757 int /* length */) 757 int /* length */,
758 int32 /* page_id */)
758 759
759 // Sends System Colors corresponding to a set of CSS color keywords 760 // Sends System Colors corresponding to a set of CSS color keywords
760 // down the pipe. 761 // down the pipe.
761 // This message must be sent to the renderer immediately on launch 762 // This message must be sent to the renderer immediately on launch
762 // before creating any new views. 763 // before creating any new views.
763 // The message can also be sent during a renderer's lifetime if system colors 764 // The message can also be sent during a renderer's lifetime if system colors
764 // are updated. 765 // are updated.
765 // TODO(jeremy): Possibly change IPC format once we have this all hooked up. 766 // TODO(jeremy): Possibly change IPC format once we have this all hooked up.
766 IPC_MESSAGE_ROUTED1(ViewMsg_SetCSSColors, 767 IPC_MESSAGE_ROUTED1(ViewMsg_SetCSSColors,
767 std::vector<CSSColors::CSSColorMapping>) 768 std::vector<CSSColors::CSSColorMapping>)
(...skipping 1284 matching lines...) Expand 10 before | Expand all | Expand 10 after
2052 int32 /* complete status */) 2053 int32 /* complete status */)
2053 2054
2054 // Request updated information about the client firewall traversal policy. 2055 // Request updated information about the client firewall traversal policy.
2055 // Will result in a ViewMsg_UpdateRemoteAccessClientFirewallTraversal message 2056 // Will result in a ViewMsg_UpdateRemoteAccessClientFirewallTraversal message
2056 // being sent back. 2057 // being sent back.
2057 IPC_MESSAGE_ROUTED0(ViewHostMsg_RequestRemoteAccessClientFirewallTraversal) 2058 IPC_MESSAGE_ROUTED0(ViewHostMsg_RequestRemoteAccessClientFirewallTraversal)
2058 2059
2059 // Notifies the browser of an event occurring in the media pipeline. 2060 // Notifies the browser of an event occurring in the media pipeline.
2060 IPC_MESSAGE_CONTROL1(ViewHostMsg_MediaLogEvent, 2061 IPC_MESSAGE_CONTROL1(ViewHostMsg_MediaLogEvent,
2061 media::MediaLogEvent /* event */) 2062 media::MediaLogEvent /* event */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698