summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/modules/storage/cached_storage_area.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/blink/renderer/modules/storage/cached_storage_area.cc')
-rw-r--r--chromium/third_party/blink/renderer/modules/storage/cached_storage_area.cc9
1 files changed, 7 insertions, 2 deletions
diff --git a/chromium/third_party/blink/renderer/modules/storage/cached_storage_area.cc b/chromium/third_party/blink/renderer/modules/storage/cached_storage_area.cc
index 4b98ae5eb00..f61826af652 100644
--- a/chromium/third_party/blink/renderer/modules/storage/cached_storage_area.cc
+++ b/chromium/third_party/blink/renderer/modules/storage/cached_storage_area.cc
@@ -190,14 +190,15 @@ CachedStorageArea::CachedStorageArea(
scoped_refptr<const SecurityOrigin> origin,
scoped_refptr<base::SingleThreadTaskRunner> task_runner,
StorageNamespace* storage_namespace,
- bool is_session_storage_for_prerendering)
+ bool is_session_storage_for_prerendering,
+ mojo::PendingRemote<mojom::blink::StorageArea> storage_area)
: type_(type),
origin_(std::move(origin)),
storage_namespace_(storage_namespace),
is_session_storage_for_prerendering_(is_session_storage_for_prerendering),
task_runner_(std::move(task_runner)),
areas_(MakeGarbageCollected<HeapHashMap<WeakMember<Source>, String>>()) {
- BindStorageArea();
+ BindStorageArea(std::move(storage_area));
base::trace_event::MemoryDumpManager::GetInstance()->RegisterDumpProvider(
this, "DOMStorage",
ThreadScheduler::Current()->DeprecatedDefaultTaskRunner());
@@ -792,4 +793,8 @@ Vector<uint8_t> CachedStorageArea::StringToUint8Vector(
NOTREACHED();
}
+void CachedStorageArea::EvictCachedData() {
+ map_.reset();
+}
+
} // namespace blink