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

Unified Diff: components/sessions/core/in_memory_tab_restore_service.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 side-by-side diff with in-line comments
Download patch
Index: components/sessions/core/in_memory_tab_restore_service.h
diff --git a/components/sessions/core/in_memory_tab_restore_service.h b/components/sessions/core/in_memory_tab_restore_service.h
index 406140611ebe71d068448d4ec11ca6427a778d7e..98cf2418e4d4a69dbe3c68a76195db0a78bf78ec 100644
--- a/components/sessions/core/in_memory_tab_restore_service.h
+++ b/components/sessions/core/in_memory_tab_restore_service.h
@@ -14,8 +14,8 @@
#include "components/sessions/sessions_export.h"
namespace sessions {
+
class TabRestoreServiceClient;
-}
// Tab restore service that doesn't persist tabs on disk. This is used on
// Android where tabs persistence is implemented on the application side in
@@ -26,25 +26,24 @@ class SESSIONS_EXPORT InMemoryTabRestoreService : public TabRestoreService {
// Creates a new TabRestoreService and provides an object that provides the
// current time. The TabRestoreService does not take ownership of
// |time_factory|.
- InMemoryTabRestoreService(
- scoped_ptr<sessions::TabRestoreServiceClient> client,
- TimeFactory* time_factory);
+ InMemoryTabRestoreService(scoped_ptr<TabRestoreServiceClient> client,
+ TimeFactory* time_factory);
~InMemoryTabRestoreService() override;
// TabRestoreService:
void AddObserver(TabRestoreServiceObserver* observer) override;
void RemoveObserver(TabRestoreServiceObserver* observer) override;
- void CreateHistoricalTab(sessions::LiveTab* live_tab, int index) override;
+ void CreateHistoricalTab(LiveTab* live_tab, int index) override;
void BrowserClosing(TabRestoreServiceDelegate* delegate) override;
void BrowserClosed(TabRestoreServiceDelegate* delegate) override;
void ClearEntries() override;
const Entries& entries() const override;
- std::vector<sessions::LiveTab*> RestoreMostRecentEntry(
+ std::vector<LiveTab*> RestoreMostRecentEntry(
TabRestoreServiceDelegate* delegate,
int host_desktop_type) override;
Tab* RemoveTabEntryById(SessionID::id_type id) override;
- std::vector<sessions::LiveTab*> RestoreEntryById(
+ std::vector<LiveTab*> RestoreEntryById(
TabRestoreServiceDelegate* delegate,
SessionID::id_type id,
int host_desktop_type,
@@ -55,10 +54,12 @@ class SESSIONS_EXPORT InMemoryTabRestoreService : public TabRestoreService {
void Shutdown() override;
private:
- scoped_ptr<sessions::TabRestoreServiceClient> client_;
+ scoped_ptr<TabRestoreServiceClient> client_;
TabRestoreServiceHelper helper_;
DISALLOW_COPY_AND_ASSIGN(InMemoryTabRestoreService);
};
+} // namespace sessions
+
#endif // COMPONENTS_SESSIONS_CORE_IN_MEMORY_TAB_RESTORE_SERVICE_H_
« no previous file with comments | « components/sessions/content/content_tab_client_data.h ('k') | components/sessions/core/in_memory_tab_restore_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698