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