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

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

Issue 1343833002: Abstract content::SessionStorageNamespace from core TabRestore code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@extension_tab_helper
Patch Set: Hopefully fix Windows 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/tab_restore_service_delegate.h
diff --git a/chrome/browser/sessions/tab_restore_service_delegate.h b/chrome/browser/sessions/tab_restore_service_delegate.h
index 9a8cd780de0ff358ea87fd84639411e423e957be..0d7efead602b78acd9b00f15a8cc2b86d092e1d7 100644
--- a/chrome/browser/sessions/tab_restore_service_delegate.h
+++ b/chrome/browser/sessions/tab_restore_service_delegate.h
@@ -12,12 +12,12 @@
namespace content {
class NavigationController;
-class SessionStorageNamespace;
class WebContents;
}
namespace sessions {
class SerializedNavigationEntry;
+class TabClientData;
}
// Objects implement this interface to provide necessary functionality for
@@ -44,6 +44,9 @@ class TabRestoreServiceDelegate {
virtual content::WebContents* GetWebContentsAt(int index) const = 0;
virtual content::WebContents* GetActiveWebContents() const = 0;
virtual bool IsTabPinned(int index) const = 0;
+
+ // Note: |tab_client_data| will be null if |from_last_session| is true,
+ // as the tab client data is not persisted.
virtual content::WebContents* AddRestoredTab(
const std::vector<sessions::SerializedNavigationEntry>& navigations,
int tab_index,
@@ -52,14 +55,17 @@ class TabRestoreServiceDelegate {
bool select,
bool pin,
bool from_last_session,
- content::SessionStorageNamespace* storage_namespace,
+ const sessions::TabClientData* tab_client_data,
const std::string& user_agent_override) = 0;
+
+ // Note: |tab_client_data| will be null if |from_last_session| is true,
+ // as the tab client data is not persisted.
virtual content::WebContents* ReplaceRestoredTab(
const std::vector<sessions::SerializedNavigationEntry>& navigations,
int selected_navigation,
bool from_last_session,
const std::string& extension_app_id,
- content::SessionStorageNamespace* session_storage_namespace,
+ const sessions::TabClientData* tab_client_data,
const std::string& user_agent_override) = 0;
virtual void CloseTab() = 0;

Powered by Google App Engine
This is Rietveld 408576698