Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(533)

Side by Side Diff: content/browser/dom_storage/dom_storage_context_wrapper.h

Issue 2596603002: Make LevelDBObserver an associated interface to LevelDBWrapper. (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | content/browser/dom_storage/dom_storage_context_wrapper.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | content/browser/dom_storage/dom_storage_context_wrapper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698