Chromium Code Reviews| OLD | NEW |
|---|---|
| (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_ | |
| OLD | NEW |