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

Unified Diff: content/renderer/dom_storage/local_storage_area.h

Issue 1814003002: Implement the renderer side of the mojo based local storage implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review comments Created 4 years, 9 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
« no previous file with comments | « content/renderer/dom_storage/DEPS ('k') | content/renderer/dom_storage/local_storage_area.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/dom_storage/local_storage_area.h
diff --git a/content/renderer/dom_storage/local_storage_area.h b/content/renderer/dom_storage/local_storage_area.h
index 1da7af016e34358bcb14d505d53b49b4cd1b0fe2..312521545139d6f9d6fff1ce207aa78bbddfd4a1 100644
--- a/content/renderer/dom_storage/local_storage_area.h
+++ b/content/renderer/dom_storage/local_storage_area.h
@@ -32,8 +32,13 @@ class LocalStorageArea : public blink::WebStorageArea {
const blink::WebURL& page_url) override;
void clear(const blink::WebURL& url) override;
+ const std::string& id() const { return id_; }
+
private:
scoped_refptr<LocalStorageCachedArea> cached_area_;
+ // A globally unique identifier for this storage area. It's used to pass the
+ // source storage area, if any, in mutation events.
+ std::string id_;
DISALLOW_COPY_AND_ASSIGN(LocalStorageArea);
};
« no previous file with comments | « content/renderer/dom_storage/DEPS ('k') | content/renderer/dom_storage/local_storage_area.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698