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

Unified Diff: chrome/browser/sessions/persistent_tab_restore_service.h

Issue 1319473014: Introduce TabRestoreServiceClient and //chrome implementation. (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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/sessions/persistent_tab_restore_service.h
diff --git a/chrome/browser/sessions/persistent_tab_restore_service.h b/chrome/browser/sessions/persistent_tab_restore_service.h
index 643030dce4964d9c25886dec7167afc880b0f648..7b328e85e2e9fe9737c3513a04503f6e260d638a 100644
--- a/chrome/browser/sessions/persistent_tab_restore_service.h
+++ b/chrome/browser/sessions/persistent_tab_restore_service.h
@@ -12,6 +12,7 @@
#include "base/memory/scoped_ptr.h"
#include "chrome/browser/sessions/tab_restore_service.h"
#include "chrome/browser/sessions/tab_restore_service_helper.h"
+#include "components/sessions/core/tab_restore_service_client.h"
class Profile;
@@ -19,8 +20,10 @@ class Profile;
class PersistentTabRestoreService : public TabRestoreService {
public:
// Does not take ownership of |time_factory|.
- PersistentTabRestoreService(Profile* profile,
- TimeFactory* time_factory);
+ PersistentTabRestoreService(
+ Profile* profile,
+ scoped_ptr<sessions::TabRestoreServiceClient> client,
+ TimeFactory* time_factory);
~PersistentTabRestoreService() override;
@@ -55,6 +58,7 @@ class PersistentTabRestoreService : public TabRestoreService {
Entries* mutable_entries();
void PruneEntries();
+ scoped_ptr<sessions::TabRestoreServiceClient> client_;
scoped_ptr<Delegate> delegate_;
TabRestoreServiceHelper helper_;
« no previous file with comments | « chrome/browser/sessions/in_memory_tab_restore_service.cc ('k') | chrome/browser/sessions/persistent_tab_restore_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698