OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 28 matching lines...) Expand all Loading... |
39 virtual void DeleteForOrigin(const string16& origin_id) = 0; | 39 virtual void DeleteForOrigin(const string16& origin_id) = 0; |
40 | 40 |
41 // Deletes a single local storage file. | 41 // Deletes a single local storage file. |
42 virtual void DeleteLocalStorageFile(const FilePath& file_path) = 0; | 42 virtual void DeleteLocalStorageFile(const FilePath& file_path) = 0; |
43 | 43 |
44 // Delete any local storage files that have been touched since the cutoff | 44 // Delete any local storage files that have been touched since the cutoff |
45 // date that's supplied. Protected origins, per the SpecialStoragePolicy, | 45 // date that's supplied. Protected origins, per the SpecialStoragePolicy, |
46 // are not deleted by this method. | 46 // are not deleted by this method. |
47 virtual void DeleteDataModifiedSince(const base::Time& cutoff) = 0; | 47 virtual void DeleteDataModifiedSince(const base::Time& cutoff) = 0; |
48 | 48 |
| 49 // For associating sessionStorages after a session restore. |
| 50 virtual void AssociateSessionStorage(int64 namespace_id, int64 real_id) = 0; |
| 51 |
49 protected: | 52 protected: |
50 virtual ~DOMStorageContext() {} | 53 virtual ~DOMStorageContext() {} |
51 }; | 54 }; |
52 | 55 |
53 } // namespace content | 56 } // namespace content |
54 | 57 |
55 #endif // CONTENT_PUBLIC_BROWSER_DOM_STORAGE_CONTEXT_H_ | 58 #endif // CONTENT_PUBLIC_BROWSER_DOM_STORAGE_CONTEXT_H_ |
OLD | NEW |