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_DOM_STORAGE_CONTEXT_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_DOM_STORAGE_CONTEXT_H_ |
6 #define CONTENT_PUBLIC_BROWSER_DOM_STORAGE_CONTEXT_H_ | 6 #define CONTENT_PUBLIC_BROWSER_DOM_STORAGE_CONTEXT_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 // SessionStorageNamespace with the correct |persistent_id| will be | 42 // SessionStorageNamespace with the correct |persistent_id| will be |
43 // associated with the persisted sessionStorage data. | 43 // associated with the persisted sessionStorage data. |
44 virtual scoped_refptr<SessionStorageNamespace> RecreateSessionStorage( | 44 virtual scoped_refptr<SessionStorageNamespace> RecreateSessionStorage( |
45 const std::string& persistent_id) = 0; | 45 const std::string& persistent_id) = 0; |
46 | 46 |
47 // Starts deleting sessionStorages which don't have an associated | 47 // Starts deleting sessionStorages which don't have an associated |
48 // SessionStorageNamespace alive. Called when SessionStorageNamespaces have | 48 // SessionStorageNamespace alive. Called when SessionStorageNamespaces have |
49 // been created after a session restore, or a session restore won't happen. | 49 // been created after a session restore, or a session restore won't happen. |
50 virtual void StartScavengingUnusedSessionStorage() = 0; | 50 virtual void StartScavengingUnusedSessionStorage() = 0; |
51 | 51 |
| 52 // Only to be used in tests. Makes the backend write the data on disk in a |
| 53 // non-lazy way. |
| 54 virtual void DisableCommitDelayForTesting() = 0; |
| 55 |
52 protected: | 56 protected: |
53 virtual ~DOMStorageContext() {} | 57 virtual ~DOMStorageContext() {} |
54 }; | 58 }; |
55 | 59 |
56 } // namespace content | 60 } // namespace content |
57 | 61 |
58 #endif // CONTENT_PUBLIC_BROWSER_DOM_STORAGE_CONTEXT_H_ | 62 #endif // CONTENT_PUBLIC_BROWSER_DOM_STORAGE_CONTEXT_H_ |
OLD | NEW |