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

Unified Diff: webkit/quota/mock_quota_manager.cc

Issue 7533013: Quota: Add quota::StorageType to the GetOriginsCallback definition. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebasing onto today's ToT. 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
« no previous file with comments | « webkit/fileapi/file_system_quota_client_unittest.cc ('k') | webkit/quota/mock_quota_manager_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/quota/mock_quota_manager.cc
diff --git a/webkit/quota/mock_quota_manager.cc b/webkit/quota/mock_quota_manager.cc
index 9df3c6b38a4e1fc127659648bea6faec71309883..67f1ee3ebf9d4ad91de3aaf4c5448aada155a41e 100644
--- a/webkit/quota/mock_quota_manager.cc
+++ b/webkit/quota/mock_quota_manager.cc
@@ -22,24 +22,27 @@ class MockQuotaManager::GetModifiedSinceTask : public QuotaThreadTask {
public:
GetModifiedSinceTask(MockQuotaManager* manager,
const std::set<GURL>& origins,
+ StorageType type,
GetOriginsCallback* callback)
: QuotaThreadTask(manager, manager->io_thread_),
origins_(origins),
+ type_(type),
callback_(callback) {}
protected:
virtual void RunOnTargetThread() OVERRIDE {}
virtual void Completed() OVERRIDE {
- callback_->Run(origins_);
+ callback_->Run(origins_, type_);
}
virtual void Aborted() OVERRIDE {
- callback_->Run(std::set<GURL>());
+ callback_->Run(std::set<GURL>(), type_);
}
private:
std::set<GURL> origins_;
+ StorageType type_;
scoped_ptr<GetOriginsCallback> callback_;
DISALLOW_COPY_AND_ASSIGN(GetModifiedSinceTask);
@@ -116,7 +119,7 @@ void MockQuotaManager::GetOriginsModifiedSince(StorageType type,
if (current->type == type && current->modified >= modified_since)
origins_to_return.insert(current->origin);
}
- make_scoped_refptr(new GetModifiedSinceTask(this, origins_to_return,
+ make_scoped_refptr(new GetModifiedSinceTask(this, origins_to_return, type,
callback))->Start();
}
« no previous file with comments | « webkit/fileapi/file_system_quota_client_unittest.cc ('k') | webkit/quota/mock_quota_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698