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

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: '' Created 9 years, 5 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
« webkit/quota/mock_storage_client.h ('K') | « 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 0ba446807ad11d219e227c9f122307ffe34451ec..c9a3657e25684d6f2ed99681ed1ae12775dc0573 100644
--- a/webkit/quota/mock_storage_client.cc
+++ b/webkit/quota/mock_storage_client.cc
@@ -63,6 +63,15 @@ MockStorageClient::~MockStorageClient() {
deletion_callbacks_.begin(), deletion_callbacks_.end());
}
+void MockStorageClient::NotifyAllOrigins() {
+ 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::AddOriginAndNotify(
const GURL& origin_url, StorageType type, int64 size) {
DCHECK(origin_data_.find(make_pair(origin_url, type)) == origin_data_.end());
« webkit/quota/mock_storage_client.h ('K') | « webkit/quota/mock_storage_client.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698