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

Side by Side Diff: content/browser/dom_storage/session_storage_namespace_impl.h

Issue 10969012: Fix: Prerendering was confusing SessionService to not save sessionStorage. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Code review. Created 8 years, 2 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_DOM_STORAGE_SESSION_STORAGE_NAMESPACE_IMPL_H_ 5 #ifndef CONTENT_BROWSER_DOM_STORAGE_SESSION_STORAGE_NAMESPACE_IMPL_H_
6 #define CONTENT_BROWSER_DOM_STORAGE_SESSION_STORAGE_NAMESPACE_IMPL_H_ 6 #define CONTENT_BROWSER_DOM_STORAGE_SESSION_STORAGE_NAMESPACE_IMPL_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
(...skipping 21 matching lines...) Expand all
32 32
33 // Constructs a |SessionStorageNamespaceImpl| and assigns |persistent_id| 33 // Constructs a |SessionStorageNamespaceImpl| and assigns |persistent_id|
34 // to it. Allocates a new non-persistent ID. 34 // to it. Allocates a new non-persistent ID.
35 SessionStorageNamespaceImpl(DOMStorageContextImpl* context, 35 SessionStorageNamespaceImpl(DOMStorageContextImpl* context,
36 const std::string& persistent_id); 36 const std::string& persistent_id);
37 37
38 // content::SessionStorageNamespace implementation. 38 // content::SessionStorageNamespace implementation.
39 virtual int64 id() const OVERRIDE; 39 virtual int64 id() const OVERRIDE;
40 virtual const std::string& persistent_id() const OVERRIDE; 40 virtual const std::string& persistent_id() const OVERRIDE;
41 virtual void SetShouldPersist(bool should_persist) OVERRIDE; 41 virtual void SetShouldPersist(bool should_persist) OVERRIDE;
42 virtual bool should_persist() const OVERRIDE;
42 43
43 SessionStorageNamespaceImpl* Clone(); 44 SessionStorageNamespaceImpl* Clone();
44 bool IsFromContext(DOMStorageContextImpl* context); 45 bool IsFromContext(DOMStorageContextImpl* context);
45 46
46 private: 47 private:
47 explicit SessionStorageNamespaceImpl(dom_storage::DomStorageSession* clone); 48 explicit SessionStorageNamespaceImpl(dom_storage::DomStorageSession* clone);
48 virtual ~SessionStorageNamespaceImpl(); 49 virtual ~SessionStorageNamespaceImpl();
49 50
50 scoped_refptr<dom_storage::DomStorageSession> session_; 51 scoped_refptr<dom_storage::DomStorageSession> session_;
51 52
52 DISALLOW_COPY_AND_ASSIGN(SessionStorageNamespaceImpl); 53 DISALLOW_COPY_AND_ASSIGN(SessionStorageNamespaceImpl);
53 }; 54 };
54 55
55 #endif // CONTENT_BROWSER_DOM_STORAGE_SESSION_STORAGE_NAMESPACE_IMPL_H_ 56 #endif // CONTENT_BROWSER_DOM_STORAGE_SESSION_STORAGE_NAMESPACE_IMPL_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/tab_contents/tab_contents.h ('k') | content/browser/dom_storage/session_storage_namespace_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698