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_BROWSER_DOM_STORAGE_DOM_STORAGE_CONTEXT_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_DOM_STORAGE_DOM_STORAGE_CONTEXT_IMPL_H_ |
6 #define CONTENT_BROWSER_DOM_STORAGE_DOM_STORAGE_CONTEXT_IMPL_H_ | 6 #define CONTENT_BROWSER_DOM_STORAGE_DOM_STORAGE_CONTEXT_IMPL_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/file_path.h" | 9 #include "base/file_path.h" |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
(...skipping 20 matching lines...) Expand all Loading... |
31 DOMStorageContextImpl(const FilePath& data_path, | 31 DOMStorageContextImpl(const FilePath& data_path, |
32 quota::SpecialStoragePolicy* special_storage_policy); | 32 quota::SpecialStoragePolicy* special_storage_policy); |
33 | 33 |
34 // DOMStorageContext implementation. | 34 // DOMStorageContext implementation. |
35 virtual void GetAllStorageFiles( | 35 virtual void GetAllStorageFiles( |
36 const GetAllStorageFilesCallback& callback) OVERRIDE; | 36 const GetAllStorageFilesCallback& callback) OVERRIDE; |
37 virtual FilePath GetFilePath(const string16& origin_id) const OVERRIDE; | 37 virtual FilePath GetFilePath(const string16& origin_id) const OVERRIDE; |
38 virtual void DeleteForOrigin(const string16& origin_id) OVERRIDE; | 38 virtual void DeleteForOrigin(const string16& origin_id) OVERRIDE; |
39 virtual void DeleteLocalStorageFile(const FilePath& file_path) OVERRIDE; | 39 virtual void DeleteLocalStorageFile(const FilePath& file_path) OVERRIDE; |
40 virtual void DeleteDataModifiedSince(const base::Time& cutoff) OVERRIDE; | 40 virtual void DeleteDataModifiedSince(const base::Time& cutoff) OVERRIDE; |
| 41 virtual void AssociateSessionStorage( |
| 42 int64 namespace_id, |
| 43 int64 real_id) OVERRIDE; |
41 | 44 |
42 // Called to free up memory that's not strictly needed. | 45 // Called to free up memory that's not strictly needed. |
43 void PurgeMemory(); | 46 void PurgeMemory(); |
44 | 47 |
45 // Used by content settings to alter the behavior around | 48 // Used by content settings to alter the behavior around |
46 // what data to keep and what data to discard at shutdown. | 49 // what data to keep and what data to discard at shutdown. |
47 // The policy is not so straight forward to describe, see | 50 // The policy is not so straight forward to describe, see |
48 // the implementation for details. | 51 // the implementation for details. |
49 void SetClearLocalState(bool clear_local_state); | 52 void SetClearLocalState(bool clear_local_state); |
50 void SaveSessionState(); | 53 void SaveSessionState(); |
(...skipping 12 matching lines...) Expand all Loading... |
63 | 66 |
64 virtual ~DOMStorageContextImpl(); | 67 virtual ~DOMStorageContextImpl(); |
65 dom_storage::DomStorageContext* context() const { return context_.get(); } | 68 dom_storage::DomStorageContext* context() const { return context_.get(); } |
66 | 69 |
67 scoped_refptr<dom_storage::DomStorageContext> context_; | 70 scoped_refptr<dom_storage::DomStorageContext> context_; |
68 | 71 |
69 DISALLOW_IMPLICIT_CONSTRUCTORS(DOMStorageContextImpl); | 72 DISALLOW_IMPLICIT_CONSTRUCTORS(DOMStorageContextImpl); |
70 }; | 73 }; |
71 | 74 |
72 #endif // CONTENT_BROWSER_DOM_STORAGE_DOM_STORAGE_CONTEXT_IMPL_H_ | 75 #endif // CONTENT_BROWSER_DOM_STORAGE_DOM_STORAGE_CONTEXT_IMPL_H_ |
OLD | NEW |