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

Side by Side Diff: chrome/browser/sessions/tab_loader.h

Issue 1355063004: Template methods on Timer classes instead of the classes themselves. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: timer: fixcaller Created 5 years, 2 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
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/safe_browsing/safe_browsing_test.cc ('k') | chrome/browser/signin/cross_device_promo.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698