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

Side by Side Diff: chrome/browser/sessions/in_memory_tab_restore_service.h

Issue 1321713005: Abstract WebContents/NavigationController from core TabRestore code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Response to review 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
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 CHROME_BROWSER_SESSIONS_IN_MEMORY_TAB_RESTORE_SERVICE_H_ 5 #ifndef CHROME_BROWSER_SESSIONS_IN_MEMORY_TAB_RESTORE_SERVICE_H_
6 #define CHROME_BROWSER_SESSIONS_IN_MEMORY_TAB_RESTORE_SERVICE_H_ 6 #define CHROME_BROWSER_SESSIONS_IN_MEMORY_TAB_RESTORE_SERVICE_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 16 matching lines...) Expand all
27 // |time_factory|. 27 // |time_factory|.
28 InMemoryTabRestoreService( 28 InMemoryTabRestoreService(
29 scoped_ptr<sessions::TabRestoreServiceClient> client, 29 scoped_ptr<sessions::TabRestoreServiceClient> client,
30 TimeFactory* time_factory); 30 TimeFactory* time_factory);
31 31
32 ~InMemoryTabRestoreService() override; 32 ~InMemoryTabRestoreService() override;
33 33
34 // TabRestoreService: 34 // TabRestoreService:
35 void AddObserver(TabRestoreServiceObserver* observer) override; 35 void AddObserver(TabRestoreServiceObserver* observer) override;
36 void RemoveObserver(TabRestoreServiceObserver* observer) override; 36 void RemoveObserver(TabRestoreServiceObserver* observer) override;
37 void CreateHistoricalTab(content::WebContents* contents, int index) override; 37 void CreateHistoricalTab(sessions::LiveTab* live_tab, int index) override;
38 void BrowserClosing(TabRestoreServiceDelegate* delegate) override; 38 void BrowserClosing(TabRestoreServiceDelegate* delegate) override;
39 void BrowserClosed(TabRestoreServiceDelegate* delegate) override; 39 void BrowserClosed(TabRestoreServiceDelegate* delegate) override;
40 void ClearEntries() override; 40 void ClearEntries() override;
41 const Entries& entries() const override; 41 const Entries& entries() const override;
42 std::vector<content::WebContents*> RestoreMostRecentEntry( 42 std::vector<sessions::LiveTab*> RestoreMostRecentEntry(
43 TabRestoreServiceDelegate* delegate, 43 TabRestoreServiceDelegate* delegate,
44 int host_desktop_type) override; 44 int host_desktop_type) override;
45 Tab* RemoveTabEntryById(SessionID::id_type id) override; 45 Tab* RemoveTabEntryById(SessionID::id_type id) override;
46 std::vector<content::WebContents*> RestoreEntryById( 46 std::vector<sessions::LiveTab*> RestoreEntryById(
47 TabRestoreServiceDelegate* delegate, 47 TabRestoreServiceDelegate* delegate,
48 SessionID::id_type id, 48 SessionID::id_type id,
49 int host_desktop_type, 49 int host_desktop_type,
50 WindowOpenDisposition disposition) override; 50 WindowOpenDisposition disposition) override;
51 void LoadTabsFromLastSession() override; 51 void LoadTabsFromLastSession() override;
52 bool IsLoaded() const override; 52 bool IsLoaded() const override;
53 void DeleteLastSession() override; 53 void DeleteLastSession() override;
54 void Shutdown() override; 54 void Shutdown() override;
55 55
56 private: 56 private:
57 scoped_ptr<sessions::TabRestoreServiceClient> client_; 57 scoped_ptr<sessions::TabRestoreServiceClient> client_;
58 TabRestoreServiceHelper helper_; 58 TabRestoreServiceHelper helper_;
59 59
60 DISALLOW_COPY_AND_ASSIGN(InMemoryTabRestoreService); 60 DISALLOW_COPY_AND_ASSIGN(InMemoryTabRestoreService);
61 }; 61 };
62 62
63 #endif // CHROME_BROWSER_SESSIONS_IN_MEMORY_TAB_RESTORE_SERVICE_H_ 63 #endif // CHROME_BROWSER_SESSIONS_IN_MEMORY_TAB_RESTORE_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/sessions/chrome_tab_restore_service_client.cc ('k') | chrome/browser/sessions/in_memory_tab_restore_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698