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

Unified Diff: webkit/quota/mock_storage_client.cc

Issue 7387007: Adding usage and quota entry to chrome://settings/cookies. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed leak suppressions. Created 9 years, 4 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 | « webkit/quota/mock_storage_client.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/quota/mock_storage_client.cc
diff --git a/webkit/quota/mock_storage_client.cc b/webkit/quota/mock_storage_client.cc
index 897f100b86b325f5da3ccfd4f675f7987e49ab84..203c6cb53059e26145f46c7744ae3a695a2cf8f2 100644
--- a/webkit/quota/mock_storage_client.cc
+++ b/webkit/quota/mock_storage_client.cc
@@ -84,6 +84,15 @@ void MockStorageClient::ModifyOriginAndNotify(
id(), origin_url, type, delta, IncrementMockTime());
}
+void MockStorageClient::TouchAllOriginsAndNotify() {
+ for (OriginDataMap::const_iterator itr = origin_data_.begin();
+ itr != origin_data_.end();
+ ++itr) {
+ quota_manager_proxy_->quota_manager()->NotifyStorageModifiedInternal(
+ id(), itr->first.first, itr->first.second, 0, IncrementMockTime());
+ }
+}
+
void MockStorageClient::AddOriginToErrorSet(
const GURL& origin_url, StorageType type) {
error_origins_.insert(make_pair(origin_url, type));
« no previous file with comments | « webkit/quota/mock_storage_client.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698