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

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

Issue 2611743002: Integrate mojo localstorage implementation with DOMStorageContext API. (Closed)
Patch Set: add flush Created 3 years, 11 months 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
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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 87
88 // Called on UI thread when the system is under memory pressure. 88 // Called on UI thread when the system is under memory pressure.
89 void OnMemoryPressure( 89 void OnMemoryPressure(
90 base::MemoryPressureListener::MemoryPressureLevel memory_pressure_level); 90 base::MemoryPressureListener::MemoryPressureLevel memory_pressure_level);
91 91
92 // base::MemoryCoordinatorClient implementation: 92 // base::MemoryCoordinatorClient implementation:
93 void OnMemoryStateChange(base::MemoryState state) override; 93 void OnMemoryStateChange(base::MemoryState state) override;
94 94
95 void PurgeMemory(DOMStorageContextImpl::PurgeOption purge_option); 95 void PurgeMemory(DOMStorageContextImpl::PurgeOption purge_option);
96 96
97 void GotMojoLocalStorageUsage(GetLocalStorageUsageCallback callback,
98 std::vector<LocalStorageUsageInfo> usage);
99
97 // Keep all mojo-ish details together and not bleed them through the public 100 // Keep all mojo-ish details together and not bleed them through the public
98 // interface. 101 // interface.
99 std::unique_ptr<LocalStorageContextMojo> mojo_state_; 102 std::unique_ptr<LocalStorageContextMojo> mojo_state_;
100 103
101 // To receive memory pressure signals. 104 // To receive memory pressure signals.
102 std::unique_ptr<base::MemoryPressureListener> memory_pressure_listener_; 105 std::unique_ptr<base::MemoryPressureListener> memory_pressure_listener_;
103 106
104 scoped_refptr<DOMStorageContextImpl> context_; 107 scoped_refptr<DOMStorageContextImpl> context_;
105 108
106 DISALLOW_IMPLICIT_CONSTRUCTORS(DOMStorageContextWrapper); 109 DISALLOW_IMPLICIT_CONSTRUCTORS(DOMStorageContextWrapper);
107 }; 110 };
108 111
109 } // namespace content 112 } // namespace content
110 113
111 #endif // CONTENT_BROWSER_DOM_STORAGE_DOM_STORAGE_CONTEXT_WRAPPER_H_ 114 #endif // CONTENT_BROWSER_DOM_STORAGE_DOM_STORAGE_CONTEXT_WRAPPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698