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

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

Issue 757723002: [Tests not passing yet] Remove prerender sessionStorage namespace merging. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years 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/renderer/dom_storage/dom_storage_cached_area.h
diff --git a/content/renderer/dom_storage/dom_storage_cached_area.h b/content/renderer/dom_storage/dom_storage_cached_area.h
index 6942534cf87744fa45c7d4da5dd5cb4f5c04cabe..b99103885537822d9a4c309671bd37db25862d56 100644
--- a/content/renderer/dom_storage/dom_storage_cached_area.h
+++ b/content/renderer/dom_storage/dom_storage_cached_area.h
@@ -51,9 +51,6 @@ class CONTENT_EXPORT DOMStorageCachedArea
size_t MemoryBytesUsedByCache() const;
- // Resets the object back to its newly constructed state.
- void Reset();
-
private:
friend class DOMStorageCachedAreaTest;
friend class base::RefCounted<DOMStorageCachedArea>;
@@ -66,6 +63,9 @@ class CONTENT_EXPORT DOMStorageCachedArea
Prime(connection_id);
}
+ // Resets the object back to its newly constructed state.
+ void Reset();
+
// Async completion callbacks for proxied operations.
// These are used to maintain cache consistency by preventing
// mutation events from other processes from overwriting local
@@ -86,11 +86,6 @@ class CONTENT_EXPORT DOMStorageCachedArea
GURL origin_;
scoped_refptr<DOMStorageMap> map_;
scoped_refptr<DOMStorageProxy> proxy_;
- // Sometimes, we need to send messages to the browser for each get access,
- // for logging purposes. However, we only do this for a fixed maximum number
- // of gets. Here, we keep track of how many remaining get log messages we
- // need to send.
- int remaining_log_get_messages_;
base::WeakPtrFactory<DOMStorageCachedArea> weak_factory_;
};
« no previous file with comments | « content/public/browser/session_storage_namespace.h ('k') | content/renderer/dom_storage/dom_storage_cached_area.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698