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

Side by Side Diff: components/sessions/core/tab_restore_service_observer.h

Issue 1350653004: [sessions] Properly namespace recently-componentized TabRestore code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Mac Created 5 years, 3 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
« no previous file with comments | « components/sessions/core/tab_restore_service_helper.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 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 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 COMPONENTS_SESSIONS_CORE_TAB_RESTORE_SERVICE_OBSERVER_H_ 5 #ifndef COMPONENTS_SESSIONS_CORE_TAB_RESTORE_SERVICE_OBSERVER_H_
6 #define COMPONENTS_SESSIONS_CORE_TAB_RESTORE_SERVICE_OBSERVER_H_ 6 #define COMPONENTS_SESSIONS_CORE_TAB_RESTORE_SERVICE_OBSERVER_H_
7 7
8 #include "components/sessions/sessions_export.h" 8 #include "components/sessions/sessions_export.h"
9 9
10 namespace sessions {
11
10 class TabRestoreService; 12 class TabRestoreService;
11 13
12 // Observer is notified when the set of entries managed by TabRestoreService 14 // Observer is notified when the set of entries managed by TabRestoreService
13 // changes in some way. 15 // changes in some way.
14 class SESSIONS_EXPORT TabRestoreServiceObserver { 16 class SESSIONS_EXPORT TabRestoreServiceObserver {
15 public: 17 public:
16 // Sent when the set of entries changes in some way. 18 // Sent when the set of entries changes in some way.
17 virtual void TabRestoreServiceChanged(TabRestoreService* service) = 0; 19 virtual void TabRestoreServiceChanged(TabRestoreService* service) = 0;
18 20
19 // Sent to all remaining Observers when TabRestoreService's 21 // Sent to all remaining Observers when TabRestoreService's
20 // destructor is run. 22 // destructor is run.
21 virtual void TabRestoreServiceDestroyed(TabRestoreService* service) = 0; 23 virtual void TabRestoreServiceDestroyed(TabRestoreService* service) = 0;
22 24
23 // Sent when TabRestoreService finishes loading. 25 // Sent when TabRestoreService finishes loading.
24 virtual void TabRestoreServiceLoaded(TabRestoreService* service) {} 26 virtual void TabRestoreServiceLoaded(TabRestoreService* service) {}
25 27
26 protected: 28 protected:
27 virtual ~TabRestoreServiceObserver() {} 29 virtual ~TabRestoreServiceObserver() {}
28 }; 30 };
29 31
32 } // namespace sessions
33
30 #endif // COMPONENTS_SESSIONS_CORE_TAB_RESTORE_SERVICE_OBSERVER_H_ 34 #endif // COMPONENTS_SESSIONS_CORE_TAB_RESTORE_SERVICE_OBSERVER_H_
OLDNEW
« no previous file with comments | « components/sessions/core/tab_restore_service_helper.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698