OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |