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

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

Issue 1551503002: Convert Pass()→std::move() in //chrome (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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_SESSION_RESTORE_STATS_COLLECTOR_H_ 5 #ifndef CHROME_BROWSER_SESSIONS_SESSION_RESTORE_STATS_COLLECTOR_H_
6 #define CHROME_BROWSER_SESSIONS_SESSION_RESTORE_STATS_COLLECTOR_H_ 6 #define CHROME_BROWSER_SESSIONS_SESSION_RESTORE_STATS_COLLECTOR_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9
10 #include <map> 9 #include <map>
10 #include <utility>
11 11
12 #include "base/callback_list.h" 12 #include "base/callback_list.h"
13 #include "base/macros.h" 13 #include "base/macros.h"
14 #include "base/time/tick_clock.h" 14 #include "base/time/tick_clock.h"
15 #include "chrome/browser/sessions/session_restore.h" 15 #include "chrome/browser/sessions/session_restore.h"
16 #include "chrome/browser/sessions/session_restore_delegate.h" 16 #include "chrome/browser/sessions/session_restore_delegate.h"
17 #include "content/public/browser/notification_observer.h" 17 #include "content/public/browser/notification_observer.h"
18 #include "content/public/browser/notification_registrar.h" 18 #include "content/public/browser/notification_registrar.h"
19 19
20 namespace content { 20 namespace content {
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 180
181 // Marks a tab as loading. 181 // Marks a tab as loading.
182 void MarkTabAsLoading(TabState* tab_state); 182 void MarkTabAsLoading(TabState* tab_state);
183 183
184 // Checks to see if the SessionRestoreStatsCollector has finished collecting, 184 // Checks to see if the SessionRestoreStatsCollector has finished collecting,
185 // and if so, releases the self reference to the shared pointer. 185 // and if so, releases the self reference to the shared pointer.
186 void ReleaseIfDoneTracking(); 186 void ReleaseIfDoneTracking();
187 187
188 // Testing seam for configuring the tick clock in use. 188 // Testing seam for configuring the tick clock in use.
189 void set_tick_clock(scoped_ptr<base::TickClock> tick_clock) { 189 void set_tick_clock(scoped_ptr<base::TickClock> tick_clock) {
190 tick_clock_ = tick_clock.Pass(); 190 tick_clock_ = std::move(tick_clock);
191 } 191 }
192 192
193 // Has ReleaseIfDoneTracking determined that there are no non-deferred tabs to 193 // Has ReleaseIfDoneTracking determined that there are no non-deferred tabs to
194 // track? 194 // track?
195 bool done_tracking_non_deferred_tabs_; 195 bool done_tracking_non_deferred_tabs_;
196 196
197 // Has the time for foreground tab load been recorded? 197 // Has the time for foreground tab load been recorded?
198 bool got_first_foreground_load_; 198 bool got_first_foreground_load_;
199 199
200 // Has the time for foreground tab paint been recorded? 200 // Has the time for foreground tab paint been recorded?
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 void ReportDeferredTabLoaded() override; 270 void ReportDeferredTabLoaded() override;
271 271
272 private: 272 private:
273 // Has ReportTabDeferred been called? 273 // Has ReportTabDeferred been called?
274 bool got_report_tab_deferred_; 274 bool got_report_tab_deferred_;
275 275
276 DISALLOW_COPY_AND_ASSIGN(UmaStatsReportingDelegate); 276 DISALLOW_COPY_AND_ASSIGN(UmaStatsReportingDelegate);
277 }; 277 };
278 278
279 #endif // CHROME_BROWSER_SESSIONS_SESSION_RESTORE_STATS_COLLECTOR_H_ 279 #endif // CHROME_BROWSER_SESSIONS_SESSION_RESTORE_STATS_COLLECTOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698