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

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

Issue 2088443003: Shortcut ctrl+shift+T added on android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: set window id for android into TabRestoreService::Tab.browser_id, to select the correct android tab… Created 4 years, 6 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 <memory> 8 #include <memory>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 17 matching lines...) Expand all
28 28
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;
sky 2016/06/24 22:25:47 Why can't you use entries()?
39 Entry* GetMostRecentEntry() override;
40
39 std::vector<LiveTab*> RestoreMostRecentEntry( 41 std::vector<LiveTab*> RestoreMostRecentEntry(
40 LiveTabContext* context) override; 42 LiveTabContext* context) override;
41 Tab* RemoveTabEntryById(SessionID::id_type id) override; 43 Tab* RemoveTabEntryById(SessionID::id_type id) override;
42 std::vector<LiveTab*> RestoreEntryById( 44 std::vector<LiveTab*> RestoreEntryById(
43 LiveTabContext* context, 45 LiveTabContext* context,
44 SessionID::id_type id, 46 SessionID::id_type id,
45 WindowOpenDisposition disposition) override; 47 WindowOpenDisposition disposition) override;
46 void LoadTabsFromLastSession() override; 48 void LoadTabsFromLastSession() override;
47 bool IsLoaded() const override; 49 bool IsLoaded() const override;
48 void DeleteLastSession() override; 50 void DeleteLastSession() override;
(...skipping 11 matching lines...) Expand all
60 std::unique_ptr<TabRestoreServiceClient> client_; 62 std::unique_ptr<TabRestoreServiceClient> client_;
61 std::unique_ptr<Delegate> delegate_; 63 std::unique_ptr<Delegate> delegate_;
62 TabRestoreServiceHelper helper_; 64 TabRestoreServiceHelper helper_;
63 65
64 DISALLOW_COPY_AND_ASSIGN(PersistentTabRestoreService); 66 DISALLOW_COPY_AND_ASSIGN(PersistentTabRestoreService);
65 }; 67 };
66 68
67 } // namespace sessions 69 } // namespace sessions
68 70
69 #endif // COMPONENTS_SESSIONS_CORE_PERSISTENT_TAB_RESTORE_SERVICE_H_ 71 #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