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

Unified Diff: chrome/browser/tab_contents/tab_contents.h

Issue 3325012: Fix SessionStorage (Closed)
Patch Set: kill the last (new) dcheck Created 10 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/tab_contents/tab_contents.h
diff --git a/chrome/browser/tab_contents/tab_contents.h b/chrome/browser/tab_contents/tab_contents.h
index c0ed64195073bedfaacf20746ccc2612a0f3121c..39596f3771f39fcebad8f973adc65f452b73e8d7 100644
--- a/chrome/browser/tab_contents/tab_contents.h
+++ b/chrome/browser/tab_contents/tab_contents.h
@@ -79,6 +79,7 @@ class PluginInstaller;
class Profile;
struct RendererPreferences;
class RenderViewHost;
+class SessionStorageNamespace;
class SiteInstance;
class SkBitmap;
class TabContents;
@@ -119,10 +120,16 @@ class TabContents : public PageNavigator,
// |base_tab_contents| is used if we want to size the new tab contents view
// based on an existing tab contents view. This can be NULL if not needed.
+ //
+ // The session storage namespace parameter allows multiple render views and
+ // tab contentses to share the same session storage (part of the WebStorage
+ // spec) space. Passing in NULL simply allocates a new one (which is useful
+ // for testing).
TabContents(Profile* profile,
SiteInstance* site_instance,
int routing_id,
- const TabContents* base_tab_contents);
+ const TabContents* base_tab_contents,
+ SessionStorageNamespace* session_storage_namespace);
virtual ~TabContents();
static void RegisterUserPrefs(PrefService* prefs);
« no previous file with comments | « chrome/browser/tab_contents/render_view_host_manager.cc ('k') | chrome/browser/tab_contents/tab_contents.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698