| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 CHROME_BROWSER_SESSIONS_TAB_LOADER_H_ | 5 #ifndef CHROME_BROWSER_SESSIONS_TAB_LOADER_H_ |
| 6 #define CHROME_BROWSER_SESSIONS_TAB_LOADER_H_ | 6 #define CHROME_BROWSER_SESSIONS_TAB_LOADER_H_ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 #include <set> | 9 #include <set> |
| 10 | 10 |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 // True if the tab loading is enabled. | 122 // True if the tab loading is enabled. |
| 123 bool loading_enabled_; | 123 bool loading_enabled_; |
| 124 | 124 |
| 125 // The set of tabs we've initiated loading on. This does NOT include the | 125 // The set of tabs we've initiated loading on. This does NOT include the |
| 126 // selected tabs. | 126 // selected tabs. |
| 127 TabsLoading tabs_loading_; | 127 TabsLoading tabs_loading_; |
| 128 | 128 |
| 129 // The tabs we need to load. | 129 // The tabs we need to load. |
| 130 TabsToLoad tabs_to_load_; | 130 TabsToLoad tabs_to_load_; |
| 131 | 131 |
| 132 base::OneShotTimer<TabLoader> force_load_timer_; | 132 base::OneShotTimer force_load_timer_; |
| 133 | 133 |
| 134 // The time the restore process started. | 134 // The time the restore process started. |
| 135 base::TimeTicks restore_started_; | 135 base::TimeTicks restore_started_; |
| 136 | 136 |
| 137 // For keeping TabLoader alive while it's loading even if no | 137 // For keeping TabLoader alive while it's loading even if no |
| 138 // SessionRestoreImpls reference it. | 138 // SessionRestoreImpls reference it. |
| 139 scoped_refptr<TabLoader> this_retainer_; | 139 scoped_refptr<TabLoader> this_retainer_; |
| 140 | 140 |
| 141 // The SessionRestoreStatsCollector associated with this TabLoader. This is | 141 // The SessionRestoreStatsCollector associated with this TabLoader. This is |
| 142 // explicitly referenced so that it can be notified of deferred tab loads due | 142 // explicitly referenced so that it can be notified of deferred tab loads due |
| 143 // to memory pressure. | 143 // to memory pressure. |
| 144 scoped_refptr<SessionRestoreStatsCollector> stats_collector_; | 144 scoped_refptr<SessionRestoreStatsCollector> stats_collector_; |
| 145 | 145 |
| 146 static TabLoader* shared_tab_loader_; | 146 static TabLoader* shared_tab_loader_; |
| 147 | 147 |
| 148 DISALLOW_COPY_AND_ASSIGN(TabLoader); | 148 DISALLOW_COPY_AND_ASSIGN(TabLoader); |
| 149 }; | 149 }; |
| 150 | 150 |
| 151 #endif // CHROME_BROWSER_SESSIONS_TAB_LOADER_H_ | 151 #endif // CHROME_BROWSER_SESSIONS_TAB_LOADER_H_ |
| OLD | NEW |