OLD | NEW |
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 Loading... |
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 |
| 748 // |length| entries, and moves the current page_id to the last |
| 749 // entry if it is valid. |
| 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 |
| 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 |
| 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]. |
| 756 IPC_MESSAGE_ROUTED1(ViewMsg_SetHistoryLengthAndClear, |
| 757 int /* length */) |
| 758 |
747 // Sends System Colors corresponding to a set of CSS color keywords | 759 // Sends System Colors corresponding to a set of CSS color keywords |
748 // down the pipe. | 760 // down the pipe. |
749 // This message must be sent to the renderer immediately on launch | 761 // This message must be sent to the renderer immediately on launch |
750 // before creating any new views. | 762 // before creating any new views. |
751 // The message can also be sent during a renderer's lifetime if system colors | 763 // The message can also be sent during a renderer's lifetime if system colors |
752 // are updated. | 764 // are updated. |
753 // TODO(jeremy): Possibly change IPC format once we have this all hooked up. | 765 // TODO(jeremy): Possibly change IPC format once we have this all hooked up. |
754 IPC_MESSAGE_ROUTED1(ViewMsg_SetCSSColors, | 766 IPC_MESSAGE_ROUTED1(ViewMsg_SetCSSColors, |
755 std::vector<CSSColors::CSSColorMapping>) | 767 std::vector<CSSColors::CSSColorMapping>) |
756 | 768 |
(...skipping 1283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2040 int32 /* complete status */) | 2052 int32 /* complete status */) |
2041 | 2053 |
2042 // Request updated information about the client firewall traversal policy. | 2054 // Request updated information about the client firewall traversal policy. |
2043 // Will result in a ViewMsg_UpdateRemoteAccessClientFirewallTraversal message | 2055 // Will result in a ViewMsg_UpdateRemoteAccessClientFirewallTraversal message |
2044 // being sent back. | 2056 // being sent back. |
2045 IPC_MESSAGE_ROUTED0(ViewHostMsg_RequestRemoteAccessClientFirewallTraversal) | 2057 IPC_MESSAGE_ROUTED0(ViewHostMsg_RequestRemoteAccessClientFirewallTraversal) |
2046 | 2058 |
2047 // Notifies the browser of an event occurring in the media pipeline. | 2059 // Notifies the browser of an event occurring in the media pipeline. |
2048 IPC_MESSAGE_CONTROL1(ViewHostMsg_MediaLogEvent, | 2060 IPC_MESSAGE_CONTROL1(ViewHostMsg_MediaLogEvent, |
2049 media::MediaLogEvent /* event */) | 2061 media::MediaLogEvent /* event */) |
OLD | NEW |