| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_WRAPPER_H_ | 5 #ifndef CONTENT_BROWSER_DOM_STORAGE_DOM_STORAGE_CONTEXT_WRAPPER_H_ |
| 6 #define CONTENT_BROWSER_DOM_STORAGE_DOM_STORAGE_CONTEXT_WRAPPER_H_ | 6 #define CONTENT_BROWSER_DOM_STORAGE_DOM_STORAGE_CONTEXT_WRAPPER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 class Connector; | 26 class Connector; |
| 27 } | 27 } |
| 28 | 28 |
| 29 namespace storage { | 29 namespace storage { |
| 30 class SpecialStoragePolicy; | 30 class SpecialStoragePolicy; |
| 31 } | 31 } |
| 32 | 32 |
| 33 namespace content { | 33 namespace content { |
| 34 | 34 |
| 35 class DOMStorageContextImpl; | 35 class DOMStorageContextImpl; |
| 36 class LevelDBWrapperImpl; | |
| 37 | 36 |
| 38 // This is owned by Storage Partition and encapsulates all its dom storage | 37 // This is owned by Storage Partition and encapsulates all its dom storage |
| 39 // state. | 38 // state. |
| 40 class CONTENT_EXPORT DOMStorageContextWrapper : | 39 class CONTENT_EXPORT DOMStorageContextWrapper : |
| 41 NON_EXPORTED_BASE(public DOMStorageContext), | 40 NON_EXPORTED_BASE(public DOMStorageContext), |
| 42 public base::RefCountedThreadSafe<DOMStorageContextWrapper>, | 41 public base::RefCountedThreadSafe<DOMStorageContextWrapper>, |
| 43 public base::MemoryCoordinatorClient { | 42 public base::MemoryCoordinatorClient { |
| 44 public: | 43 public: |
| 45 // If |data_path| is empty, nothing will be saved to disk. | 44 // If |data_path| is empty, nothing will be saved to disk. |
| 46 DOMStorageContextWrapper( | 45 DOMStorageContextWrapper( |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 std::unique_ptr<base::MemoryPressureListener> memory_pressure_listener_; | 103 std::unique_ptr<base::MemoryPressureListener> memory_pressure_listener_; |
| 105 | 104 |
| 106 scoped_refptr<DOMStorageContextImpl> context_; | 105 scoped_refptr<DOMStorageContextImpl> context_; |
| 107 | 106 |
| 108 DISALLOW_IMPLICIT_CONSTRUCTORS(DOMStorageContextWrapper); | 107 DISALLOW_IMPLICIT_CONSTRUCTORS(DOMStorageContextWrapper); |
| 109 }; | 108 }; |
| 110 | 109 |
| 111 } // namespace content | 110 } // namespace content |
| 112 | 111 |
| 113 #endif // CONTENT_BROWSER_DOM_STORAGE_DOM_STORAGE_CONTEXT_WRAPPER_H_ | 112 #endif // CONTENT_BROWSER_DOM_STORAGE_DOM_STORAGE_CONTEXT_WRAPPER_H_ |
| OLD | NEW |