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

Unified Diff: webkit/quota/quota_client.h

Issue 8070001: Use base::Callback in Quota related code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 9 years, 2 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.cc ('k') | webkit/quota/quota_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/quota/quota_client.h
diff --git a/webkit/quota/quota_client.h b/webkit/quota/quota_client.h
index 312e5d0d244f4bc6f122e72d2fd7214e07384a80..eb26c245f26ca9ff56f8c0dac84a1760e8d9e4fc 100644
--- a/webkit/quota/quota_client.h
+++ b/webkit/quota/quota_client.h
@@ -9,7 +9,7 @@
#include <set>
#include <string>
-#include "base/callback_old.h"
+#include "base/callback.h"
#include "base/time.h"
#include "googleurl/src/gurl.h"
#include "webkit/quota/quota_types.h"
@@ -22,10 +22,10 @@ namespace quota {
// All the methods are assumed to be called on the IO thread in the browser.
class QuotaClient {
public:
- typedef Callback1<int64>::Type GetUsageCallback;
- typedef Callback2<const std::set<GURL>&, StorageType>::Type
+ typedef base::Callback<void(int64)> GetUsageCallback; // NOLINT
+ typedef base::Callback<void(const std::set<GURL>&, StorageType)>
GetOriginsCallback;
- typedef Callback1<QuotaStatusCode>::Type DeletionCallback;
+ typedef base::Callback<void(QuotaStatusCode)> DeletionCallback;
virtual ~QuotaClient() {}
@@ -48,23 +48,23 @@ class QuotaClient {
// |origin_url| and |type|.
virtual void GetOriginUsage(const GURL& origin_url,
StorageType type,
- GetUsageCallback* callback) = 0;
+ const GetUsageCallback& callback) = 0;
// Called by the QuotaManager.
// Returns a list of origins that has data in the |type| storage.
virtual void GetOriginsForType(StorageType type,
- GetOriginsCallback* callback) = 0;
+ const GetOriginsCallback& callback) = 0;
// Called by the QuotaManager.
// Returns a list of origins that match the |host|.
virtual void GetOriginsForHost(StorageType type,
const std::string& host,
- GetOriginsCallback* callback) = 0;
+ const GetOriginsCallback& callback) = 0;
// Called by the QuotaManager.
virtual void DeleteOriginData(const GURL& origin,
StorageType type,
- DeletionCallback* callback) = 0;
+ const DeletionCallback& callback) = 0;
};
// TODO(dmikurube): Replace it to std::vector for efficiency.
« no previous file with comments | « webkit/quota/mock_storage_client.cc ('k') | webkit/quota/quota_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698