Roll src/third_party/WebKit eac3800:0237a66 (svn 202606:202607)
[chromium-blink-merge.git] / components / sessions / core / tab_restore_service_observer.h
blob1a785ad4f93252d17d84b1e4b2346df97822f4d6
1 // Copyright (c) 2010 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.
5 #ifndef COMPONENTS_SESSIONS_CORE_TAB_RESTORE_SERVICE_OBSERVER_H_
6 #define COMPONENTS_SESSIONS_CORE_TAB_RESTORE_SERVICE_OBSERVER_H_
8 #include "components/sessions/sessions_export.h"
10 namespace sessions {
12 class TabRestoreService;
14 // Observer is notified when the set of entries managed by TabRestoreService
15 // changes in some way.
16 class SESSIONS_EXPORT TabRestoreServiceObserver {
17 public:
18 // Sent when the set of entries changes in some way.
19 virtual void TabRestoreServiceChanged(TabRestoreService* service) = 0;
21 // Sent to all remaining Observers when TabRestoreService's
22 // destructor is run.
23 virtual void TabRestoreServiceDestroyed(TabRestoreService* service) = 0;
25 // Sent when TabRestoreService finishes loading.
26 virtual void TabRestoreServiceLoaded(TabRestoreService* service) {}
28 protected:
29 virtual ~TabRestoreServiceObserver() {}
32 } // namespace sessions
34 #endif // COMPONENTS_SESSIONS_CORE_TAB_RESTORE_SERVICE_OBSERVER_H_