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

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

Issue 10850010: Make session restore understand that tabs have multiple SessionStorageNamespaces. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased, with test robustified. Created 8 years, 4 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.h
diff --git a/chrome/browser/sessions/tab_restore_service.h b/chrome/browser/sessions/tab_restore_service.h
index 3fea7fbadd7ba0a1bc572ec740c596930f8c848a..ba7337ed58de1b5294023917092aec3ce0a63379 100644
--- a/chrome/browser/sessions/tab_restore_service.h
+++ b/chrome/browser/sessions/tab_restore_service.h
@@ -6,6 +6,7 @@
#define CHROME_BROWSER_SESSIONS_TAB_RESTORE_SERVICE_H_
#include <list>
+#include <map>
#include <set>
#include <vector>
@@ -15,6 +16,7 @@
#include "chrome/browser/sessions/base_session_service.h"
#include "chrome/browser/sessions/session_id.h"
#include "chrome/browser/sessions/session_types.h"
+#include "content/public/browser/navigation_controller.h"
#include "content/public/browser/session_storage_namespace.h"
#include "webkit/glue/window_open_disposition.h"
@@ -102,8 +104,8 @@ class TabRestoreService : public BaseSessionService {
// If non-empty gives the id of the extension for the tab.
std::string extension_app_id;
- // The associated session storage namespace (if any).
- scoped_refptr<content::SessionStorageNamespace> session_storage_namespace;
+ // The associated session storage namespaces (if any).
+ content::SessionStorageNamespaceMap session_storage_namespace_map;
// The user agent override used for the tab's navigations (if applicable).
std::string user_agent_override;

Powered by Google App Engine
This is Rietveld 408576698