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

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

Issue 1697183003: Remove HostDesktopType from sessions and tab restore (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@metro-mode-19
Patch Set: mac Created 4 years, 10 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
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_PERSISTENT_TAB_RESTORE_SERVICE_H_ 5 #ifndef COMPONENTS_SESSIONS_CORE_PERSISTENT_TAB_RESTORE_SERVICE_H_
6 #define COMPONENTS_SESSIONS_CORE_PERSISTENT_TAB_RESTORE_SERVICE_H_ 6 #define COMPONENTS_SESSIONS_CORE_PERSISTENT_TAB_RESTORE_SERVICE_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 18 matching lines...) Expand all
29 ~PersistentTabRestoreService() override; 29 ~PersistentTabRestoreService() override;
30 30
31 // TabRestoreService: 31 // TabRestoreService:
32 void AddObserver(TabRestoreServiceObserver* observer) override; 32 void AddObserver(TabRestoreServiceObserver* observer) override;
33 void RemoveObserver(TabRestoreServiceObserver* observer) override; 33 void RemoveObserver(TabRestoreServiceObserver* observer) override;
34 void CreateHistoricalTab(LiveTab* live_tab, int index) override; 34 void CreateHistoricalTab(LiveTab* live_tab, int index) override;
35 void BrowserClosing(LiveTabContext* context) override; 35 void BrowserClosing(LiveTabContext* context) override;
36 void BrowserClosed(LiveTabContext* context) override; 36 void BrowserClosed(LiveTabContext* context) override;
37 void ClearEntries() override; 37 void ClearEntries() override;
38 const Entries& entries() const override; 38 const Entries& entries() const override;
39 std::vector<LiveTab*> RestoreMostRecentEntry(LiveTabContext* context, 39 std::vector<LiveTab*> RestoreMostRecentEntry(
40 int host_desktop_type) override; 40 LiveTabContext* context) override;
41 Tab* RemoveTabEntryById(SessionID::id_type id) override; 41 Tab* RemoveTabEntryById(SessionID::id_type id) override;
42 std::vector<LiveTab*> RestoreEntryById( 42 std::vector<LiveTab*> RestoreEntryById(
43 LiveTabContext* context, 43 LiveTabContext* context,
44 SessionID::id_type id, 44 SessionID::id_type id,
45 int host_desktop_type,
46 WindowOpenDisposition disposition) override; 45 WindowOpenDisposition disposition) override;
47 void LoadTabsFromLastSession() override; 46 void LoadTabsFromLastSession() override;
48 bool IsLoaded() const override; 47 bool IsLoaded() const override;
49 void DeleteLastSession() override; 48 void DeleteLastSession() override;
50 void Shutdown() override; 49 void Shutdown() override;
51 50
52 private: 51 private:
53 friend class ::PersistentTabRestoreServiceTest; 52 friend class ::PersistentTabRestoreServiceTest;
54 53
55 class Delegate; 54 class Delegate;
56 55
57 // Exposed for testing. 56 // Exposed for testing.
58 Entries* mutable_entries(); 57 Entries* mutable_entries();
59 void PruneEntries(); 58 void PruneEntries();
60 59
61 scoped_ptr<TabRestoreServiceClient> client_; 60 scoped_ptr<TabRestoreServiceClient> client_;
62 scoped_ptr<Delegate> delegate_; 61 scoped_ptr<Delegate> delegate_;
63 TabRestoreServiceHelper helper_; 62 TabRestoreServiceHelper helper_;
64 63
65 DISALLOW_COPY_AND_ASSIGN(PersistentTabRestoreService); 64 DISALLOW_COPY_AND_ASSIGN(PersistentTabRestoreService);
66 }; 65 };
67 66
68 } // namespace sessions 67 } // namespace sessions
69 68
70 #endif // COMPONENTS_SESSIONS_CORE_PERSISTENT_TAB_RESTORE_SERVICE_H_ 69 #endif // COMPONENTS_SESSIONS_CORE_PERSISTENT_TAB_RESTORE_SERVICE_H_
OLDNEW
« no previous file with comments | « components/sessions/core/in_memory_tab_restore_service.cc ('k') | components/sessions/core/persistent_tab_restore_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698