OLD | NEW |
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 #ifndef CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 #include <map> | 9 #include <map> |
10 #include <set> | 10 #include <set> |
(...skipping 842 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
853 // TODO(nasko): Move to RenderFrame, as this is per-frame state. | 853 // TODO(nasko): Move to RenderFrame, as this is per-frame state. |
854 scoped_ptr<FrameMsg_Navigate_Params> pending_navigation_params_; | 854 scoped_ptr<FrameMsg_Navigate_Params> pending_navigation_params_; |
855 | 855 |
856 // Timer used to delay the updating of nav state (see SyncNavigationState). | 856 // Timer used to delay the updating of nav state (see SyncNavigationState). |
857 base::OneShotTimer<RenderViewImpl> nav_state_sync_timer_; | 857 base::OneShotTimer<RenderViewImpl> nav_state_sync_timer_; |
858 | 858 |
859 // Page IDs ------------------------------------------------------------------ | 859 // Page IDs ------------------------------------------------------------------ |
860 // See documentation in RenderView. | 860 // See documentation in RenderView. |
861 int32 page_id_; | 861 int32 page_id_; |
862 | 862 |
| 863 // Indicates the ID of the last page that we sent a FrameNavigate to the |
| 864 // browser for. This is used to determine if the most recent transition |
| 865 // generated a history entry (less than page_id_), or not (equal to or |
| 866 // greater than). Note that this will be greater than page_id_ if the user |
| 867 // goes back. |
| 868 int32 last_page_id_sent_to_browser_; |
| 869 |
863 // The next available page ID to use for this RenderView. These IDs are | 870 // The next available page ID to use for this RenderView. These IDs are |
864 // specific to a given RenderView and the frames within it. | 871 // specific to a given RenderView and the frames within it. |
865 int32 next_page_id_; | 872 int32 next_page_id_; |
866 | 873 |
867 // The offset of the current item in the history list. | 874 // The offset of the current item in the history list. |
868 int history_list_offset_; | 875 int history_list_offset_; |
869 | 876 |
870 // The RenderView's current impression of the history length. This includes | 877 // The RenderView's current impression of the history length. This includes |
871 // any items that have committed in this process, but because of cross-process | 878 // any items that have committed in this process, but because of cross-process |
872 // navigations, the history may have some entries that were committed in other | 879 // navigations, the history may have some entries that were committed in other |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1055 // use the Observer interface to filter IPC messages and receive frame change | 1062 // use the Observer interface to filter IPC messages and receive frame change |
1056 // notifications. | 1063 // notifications. |
1057 // --------------------------------------------------------------------------- | 1064 // --------------------------------------------------------------------------- |
1058 | 1065 |
1059 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 1066 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
1060 }; | 1067 }; |
1061 | 1068 |
1062 } // namespace content | 1069 } // namespace content |
1063 | 1070 |
1064 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 1071 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
OLD | NEW |