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

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: Address lpy@'s comments 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 #include <unordered_set>
9
10 #include "base/observer_list.h"
11
12 // Observer of events during session restore.
13 class SessionRestoreObserver {
14 public:
15 virtual void OnTabLoadingStarted() {}
sky 2017/06/26 15:34:11 Clearly document at what point these functions are
sky 2017/06/26 15:34:11 Given these functions are on the SessionRestore in
sky 2017/06/26 15:34:11 Please add test coverage that these functions are
ducbui 2017/06/26 19:59:26 Done.
ducbui 2017/06/26 19:59:26 Done.
ducbui 2017/06/26 19:59:26 Done.
16 virtual void OnTabLoadingEnded() {}
17
18 static base::ObserverList<SessionRestoreObserver>& observers();
19
20 static void AddObserver(SessionRestoreObserver* observer);
sky 2017/06/26 15:34:11 Move these functions onto SessionRestore. Also, t
ducbui 2017/06/26 19:59:26 Done.
sky 2017/06/26 21:38:08 Exactly.
21 static void RemoveObserver(SessionRestoreObserver* observer);
22
23 private:
24 static base::ObserverList<SessionRestoreObserver>* observers_;
25 };
26
27 #endif // CHROME_BROWSER_SESSIONS_SESSION_RESTORE_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698