| 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 // the implementation for details. | 67 // the implementation for details. |
| 68 void SetForceKeepSessionState(); | 68 void SetForceKeepSessionState(); |
| 69 | 69 |
| 70 // Called when the BrowserContext/Profile is going away. | 70 // Called when the BrowserContext/Profile is going away. |
| 71 void Shutdown(); | 71 void Shutdown(); |
| 72 | 72 |
| 73 void Flush(); | 73 void Flush(); |
| 74 | 74 |
| 75 // See mojom::StoragePartitionService interface. | 75 // See mojom::StoragePartitionService interface. |
| 76 void OpenLocalStorage(const url::Origin& origin, | 76 void OpenLocalStorage(const url::Origin& origin, |
| 77 mojom::LevelDBObserverPtr observer, | |
| 78 mojom::LevelDBWrapperRequest request); | 77 mojom::LevelDBWrapperRequest request); |
| 79 | 78 |
| 80 private: | 79 private: |
| 81 friend class DOMStorageMessageFilter; // for access to context() | 80 friend class DOMStorageMessageFilter; // for access to context() |
| 82 friend class SessionStorageNamespaceImpl; // ditto | 81 friend class SessionStorageNamespaceImpl; // ditto |
| 83 friend class base::RefCountedThreadSafe<DOMStorageContextWrapper>; | 82 friend class base::RefCountedThreadSafe<DOMStorageContextWrapper>; |
| 84 | 83 |
| 85 ~DOMStorageContextWrapper() override; | 84 ~DOMStorageContextWrapper() override; |
| 86 DOMStorageContextImpl* context() const { return context_.get(); } | 85 DOMStorageContextImpl* context() const { return context_.get(); } |
| 87 | 86 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 103 std::unique_ptr<base::MemoryPressureListener> memory_pressure_listener_; | 102 std::unique_ptr<base::MemoryPressureListener> memory_pressure_listener_; |
| 104 | 103 |
| 105 scoped_refptr<DOMStorageContextImpl> context_; | 104 scoped_refptr<DOMStorageContextImpl> context_; |
| 106 | 105 |
| 107 DISALLOW_IMPLICIT_CONSTRUCTORS(DOMStorageContextWrapper); | 106 DISALLOW_IMPLICIT_CONSTRUCTORS(DOMStorageContextWrapper); |
| 108 }; | 107 }; |
| 109 | 108 |
| 110 } // namespace content | 109 } // namespace content |
| 111 | 110 |
| 112 #endif // CONTENT_BROWSER_DOM_STORAGE_DOM_STORAGE_CONTEXT_WRAPPER_H_ | 111 #endif // CONTENT_BROWSER_DOM_STORAGE_DOM_STORAGE_CONTEXT_WRAPPER_H_ |
| OLD | NEW |