| 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 | 70 |
| 71 // Called when the BrowserContext/Profile is going away. | 71 // Called when the BrowserContext/Profile is going away. |
| 72 void Shutdown(); | 72 void Shutdown(); |
| 73 | 73 |
| 74 void Flush(); | 74 void Flush(); |
| 75 | 75 |
| 76 // See mojom::StoragePartitionService interface. | 76 // See mojom::StoragePartitionService interface. |
| 77 void OpenLocalStorage(const url::Origin& origin, | 77 void OpenLocalStorage(const url::Origin& origin, |
| 78 mojom::LevelDBWrapperRequest request); | 78 mojom::LevelDBWrapperRequest request); |
| 79 | 79 |
| 80 leveldb::mojom::LevelDBDatabaseAssociatedRequest |
| 81 LocalStorageDatabaseRequestForTesting(); |
| 82 |
| 80 private: | 83 private: |
| 81 friend class DOMStorageMessageFilter; // for access to context() | 84 friend class DOMStorageMessageFilter; // for access to context() |
| 82 friend class SessionStorageNamespaceImpl; // ditto | 85 friend class SessionStorageNamespaceImpl; // ditto |
| 83 friend class base::RefCountedThreadSafe<DOMStorageContextWrapper>; | 86 friend class base::RefCountedThreadSafe<DOMStorageContextWrapper>; |
| 84 friend class MojoDOMStorageBrowserTest; | 87 friend class MojoDOMStorageBrowserTest; |
| 85 | 88 |
| 86 ~DOMStorageContextWrapper() override; | 89 ~DOMStorageContextWrapper() override; |
| 87 DOMStorageContextImpl* context() const { return context_.get(); } | 90 DOMStorageContextImpl* context() const { return context_.get(); } |
| 88 | 91 |
| 89 // Called on UI thread when the system is under memory pressure. | 92 // Called on UI thread when the system is under memory pressure. |
| (...skipping 19 matching lines...) Expand all Loading... |
| 109 std::unique_ptr<base::MemoryPressureListener> memory_pressure_listener_; | 112 std::unique_ptr<base::MemoryPressureListener> memory_pressure_listener_; |
| 110 | 113 |
| 111 scoped_refptr<DOMStorageContextImpl> context_; | 114 scoped_refptr<DOMStorageContextImpl> context_; |
| 112 | 115 |
| 113 DISALLOW_IMPLICIT_CONSTRUCTORS(DOMStorageContextWrapper); | 116 DISALLOW_IMPLICIT_CONSTRUCTORS(DOMStorageContextWrapper); |
| 114 }; | 117 }; |
| 115 | 118 |
| 116 } // namespace content | 119 } // namespace content |
| 117 | 120 |
| 118 #endif // CONTENT_BROWSER_DOM_STORAGE_DOM_STORAGE_CONTEXT_WRAPPER_H_ | 121 #endif // CONTENT_BROWSER_DOM_STORAGE_DOM_STORAGE_CONTEXT_WRAPPER_H_ |
| OLD | NEW |