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

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

Issue 2861473002: Clear up session only storage on localstorage shutdown (Closed)
Patch Set: rebase Created 3 years, 7 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..85b6b60f1400da6721f83f3b37f8aeb4dafe3bb7 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_;
michaeln 2017/05/18 23:55:39 maybe continue using std::unique_ptr<> to document
Marijn Kruisselbrink 2017/05/19 00:19:46 It definitely would be cleanest to somehow have a
+ LocalStorageContextMojo* mojo_state_ = nullptr;
+ 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