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

Unified Diff: content/browser/dom_storage/dom_storage_context_wrapper.h

Issue 2861473002: Clear up session only storage on localstorage shutdown (Closed)
Patch Set: test and nicer Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/dom_storage/dom_storage_context_wrapper.h
diff --git a/content/browser/dom_storage/dom_storage_context_wrapper.h b/content/browser/dom_storage/dom_storage_context_wrapper.h
index 2c37e330b91a164044bea0da9f7dd3282880a5bd..65806d672f6c7c938f2053771ed0828cdc2a9180 100644
--- a/content/browser/dom_storage/dom_storage_context_wrapper.h
+++ b/content/browser/dom_storage/dom_storage_context_wrapper.h
@@ -96,11 +96,13 @@ class CONTENT_EXPORT DOMStorageContextWrapper :
void PurgeMemory(DOMStorageContextImpl::PurgeOption purge_option);
void GotMojoLocalStorageUsage(GetLocalStorageUsageCallback callback,
+ base::SingleThreadTaskRunner* reply_task_runner,
std::vector<LocalStorageUsageInfo> usage);
// Keep all mojo-ish details together and not bleed them through the public
// interface.
- std::unique_ptr<LocalStorageContextMojo> mojo_state_;
+ scoped_refptr<LocalStorageContextMojo> mojo_state_;
+ scoped_refptr<base::SingleThreadTaskRunner> mojo_task_runner_;
// To receive memory pressure signals.
std::unique_ptr<base::MemoryPressureListener> memory_pressure_listener_;

Powered by Google App Engine
This is Rietveld 408576698