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

Side by Side Diff: content/public/browser/session_storage_namespace.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_PUBLIC_BROWSER_SESSION_STORAGE_NAMESPACE_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_SESSION_STORAGE_NAMESPACE_H_
6 #define CONTENT_PUBLIC_BROWSER_SESSION_STORAGE_NAMESPACE_H_ 6 #define CONTENT_PUBLIC_BROWSER_SESSION_STORAGE_NAMESPACE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 11 matching lines...) Expand all
22 virtual int64 id() const = 0; 22 virtual int64 id() const = 0;
23 23
24 // Returns the persistent ID for the |SessionStorageNamespace|. The ID is 24 // Returns the persistent ID for the |SessionStorageNamespace|. The ID is
25 // unique across browser runs. 25 // unique across browser runs.
26 virtual const std::string& persistent_id() const = 0; 26 virtual const std::string& persistent_id() const = 0;
27 27
28 // For marking that the sessionStorage will be needed or won't be needed by 28 // For marking that the sessionStorage will be needed or won't be needed by
29 // session restore. 29 // session restore.
30 virtual void SetShouldPersist(bool should_persist) = 0; 30 virtual void SetShouldPersist(bool should_persist) = 0;
31 31
32 virtual bool should_persist() const = 0;
33
32 protected: 34 protected:
33 friend class base::RefCountedThreadSafe<SessionStorageNamespace>; 35 friend class base::RefCountedThreadSafe<SessionStorageNamespace>;
34 virtual ~SessionStorageNamespace() {} 36 virtual ~SessionStorageNamespace() {}
35 }; 37 };
36 38
37 } // namespace content 39 } // namespace content
38 40
39 #endif // CONTENT_PUBLIC_BROWSER_SESSION_STORAGE_NAMESPACE_H_ 41 #endif // CONTENT_PUBLIC_BROWSER_SESSION_STORAGE_NAMESPACE_H_
OLDNEW
« no previous file with comments | « content/browser/dom_storage/session_storage_namespace_impl.cc ('k') | webkit/dom_storage/dom_storage_session.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698