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

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

Issue 2935183002: [TabMetrics] Add signals that mark the start and end of session restore. (Closed)
Patch Set: Enable SessionRestoreObserverTest only when session service available. Created 3 years, 5 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
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_SESSIONS_SESSION_RESTORE_OBSERVER_H_
6 #define CHROME_BROWSER_SESSIONS_SESSION_RESTORE_OBSERVER_H_
7
8 // Observer of events during session restore.
9 class SessionRestoreObserver {
10 public:
11 // OnSessionRestoreStartedLoadingTabs is triggered when the browser starts
12 // loading tabs in session restore.
13 virtual void OnSessionRestoreStartedLoadingTabs() {}
14
15 // OnSessionRestoreFinishedLoadingTabs is triggered when the browser finishes
16 // loading tabs in session restore. In case of memory pressure, not all
17 // WebContents may have been created (i.e., some are deferred).
18 virtual void OnSessionRestoreFinishedLoadingTabs() {}
19 };
20
21 #endif // CHROME_BROWSER_SESSIONS_SESSION_RESTORE_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698