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

Unified Diff: chrome/browser/extensions/api/sessions/sessions_api.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: chrome/browser/extensions/api/sessions/sessions_api.h
diff --git a/chrome/browser/extensions/api/sessions/sessions_api.h b/chrome/browser/extensions/api/sessions/sessions_api.h
index 87939246043d053b61d3fa3aa3500fc490534df9..876faae50bb5b2c582880e77bea2e6bfcc725086 100644
--- a/chrome/browser/extensions/api/sessions/sessions_api.h
+++ b/chrome/browser/extensions/api/sessions/sessions_api.h
@@ -34,14 +34,15 @@ class SessionsGetRecentlyClosedFunction : public ChromeSyncExtensionFunction {
SESSIONS_GETRECENTLYCLOSED)
private:
- scoped_ptr<api::tabs::Tab> CreateTabModel(const TabRestoreService::Tab& tab,
- int session_id,
- int selected_index);
+ scoped_ptr<api::tabs::Tab> CreateTabModel(
+ const sessions::TabRestoreService::Tab& tab,
+ int session_id,
+ int selected_index);
scoped_ptr<api::windows::Window> CreateWindowModel(
- const TabRestoreService::Window& window,
+ const sessions::TabRestoreService::Window& window,
int session_id);
scoped_ptr<api::sessions::Session> CreateSessionModel(
- const TabRestoreService::Entry* entry);
+ const sessions::TabRestoreService::Entry* entry);
};
class SessionsGetDevicesFunction : public ChromeSyncExtensionFunction {
@@ -81,7 +82,7 @@ class SessionsRestoreFunction : public ChromeSyncExtensionFunction {
Browser* browser);
};
-class SessionsEventRouter : public TabRestoreServiceObserver {
+class SessionsEventRouter : public sessions::TabRestoreServiceObserver {
public:
explicit SessionsEventRouter(Profile* profile);
~SessionsEventRouter() override;
@@ -89,17 +90,18 @@ class SessionsEventRouter : public TabRestoreServiceObserver {
// Observer callback for TabRestoreServiceObserver. Sends data on
// recently closed tabs to the javascript side of this page to
// display to the user.
- void TabRestoreServiceChanged(TabRestoreService* service) override;
+ void TabRestoreServiceChanged(sessions::TabRestoreService* service) override;
// Observer callback to notice when our associated TabRestoreService
// is destroyed.
- void TabRestoreServiceDestroyed(TabRestoreService* service) override;
+ void TabRestoreServiceDestroyed(
+ sessions::TabRestoreService* service) override;
private:
Profile* profile_;
// TabRestoreService that we are observing.
- TabRestoreService* tab_restore_service_;
+ sessions::TabRestoreService* tab_restore_service_;
DISALLOW_COPY_AND_ASSIGN(SessionsEventRouter);
};
« no previous file with comments | « chrome/browser/browsing_data/browsing_data_remover.cc ('k') | chrome/browser/extensions/api/sessions/sessions_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698