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

Unified Diff: components/sessions/core/tab_restore_service_delegate.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/tab_restore_service_delegate.h
diff --git a/components/sessions/core/tab_restore_service_delegate.h b/components/sessions/core/tab_restore_service_delegate.h
index 2a29141354882fcfb0eaa2000b68919a951bbd9a..9f9ea8d96fe3f0593a1dc4a5041e930ba9a0c50f 100644
--- a/components/sessions/core/tab_restore_service_delegate.h
+++ b/components/sessions/core/tab_restore_service_delegate.h
@@ -12,13 +12,10 @@
#include "components/sessions/sessions_export.h"
namespace sessions {
-class LiveTab;
-}
-namespace sessions {
+class LiveTab;
class SerializedNavigationEntry;
class TabClientData;
-}
// Objects implement this interface to provide necessary functionality for
// TabRestoreService to operate. These methods are mostly copies of existing
@@ -40,32 +37,32 @@ class SESSIONS_EXPORT TabRestoreServiceDelegate {
// see Browser::app_name()
virtual std::string GetAppName() const = 0;
- virtual sessions::LiveTab* GetLiveTabAt(int index) const = 0;
- virtual sessions::LiveTab* GetActiveLiveTab() const = 0;
+ virtual LiveTab* GetLiveTabAt(int index) const = 0;
+ virtual LiveTab* GetActiveLiveTab() const = 0;
virtual bool IsTabPinned(int index) const = 0;
// Note: |tab_client_data| may be null (e.g., if |from_last_session| is true,
// as the tab client data is not persisted, or if the embedder did not supply
// client data for the tab in question).
- virtual sessions::LiveTab* AddRestoredTab(
- const std::vector<sessions::SerializedNavigationEntry>& navigations,
+ virtual LiveTab* AddRestoredTab(
+ const std::vector<SerializedNavigationEntry>& navigations,
int tab_index,
int selected_navigation,
const std::string& extension_app_id,
bool select,
bool pin,
bool from_last_session,
- const sessions::TabClientData* tab_client_data,
+ const TabClientData* tab_client_data,
const std::string& user_agent_override) = 0;
// Note: |tab_client_data| may be null (e.g., if |from_last_session| is true,
// as the tab client data is not persisted, or if the embedder did not supply
- virtual sessions::LiveTab* ReplaceRestoredTab(
- const std::vector<sessions::SerializedNavigationEntry>& navigations,
+ virtual LiveTab* ReplaceRestoredTab(
+ const std::vector<SerializedNavigationEntry>& navigations,
int selected_navigation,
bool from_last_session,
const std::string& extension_app_id,
- const sessions::TabClientData* tab_client_data,
+ const TabClientData* tab_client_data,
const std::string& user_agent_override) = 0;
virtual void CloseTab() = 0;
@@ -73,4 +70,6 @@ class SESSIONS_EXPORT TabRestoreServiceDelegate {
virtual ~TabRestoreServiceDelegate() {}
};
+} // namespace sessions
+
#endif // COMPONENTS_SESSIONS_CORE_TAB_RESTORE_SERVICE_DELEGATE_H_
« no previous file with comments | « components/sessions/core/tab_restore_service_client.h ('k') | components/sessions/core/tab_restore_service_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698