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

Unified Diff: webkit/browser/quota/quota_manager.h

Issue 59753008: Quota: Add proxy for QuotaManager::GetUsageAndQuota (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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: webkit/browser/quota/quota_manager.h
diff --git a/webkit/browser/quota/quota_manager.h b/webkit/browser/quota/quota_manager.h
index c2a76cba8e8117f015f3e61e1452fc3d53162d8c..c1ce8535eb68936f651dd1e21b25c12c735e5b89 100644
--- a/webkit/browser/quota/quota_manager.h
+++ b/webkit/browser/quota/quota_manager.h
@@ -438,6 +438,9 @@ struct QuotaManagerDeleter {
class WEBKIT_STORAGE_BROWSER_EXPORT QuotaManagerProxy
: public base::RefCountedThreadSafe<QuotaManagerProxy> {
public:
+ typedef QuotaManager::GetUsageAndQuotaCallback
+ GetUsageAndQuotaCallback;
+
virtual void RegisterClient(QuotaClient* client);
virtual void NotifyStorageAccessed(QuotaClient::ID client_id,
const GURL& origin,
@@ -453,6 +456,11 @@ class WEBKIT_STORAGE_BROWSER_EXPORT QuotaManagerProxy
const GURL& origin,
StorageType type,
bool enabled);
+ virtual void GetUsageAndQuota(
+ base::SingleThreadTaskRunner* original_task_runner,
+ const GURL& origin,
+ StorageType type,
+ const GetUsageAndQuotaCallback& callback);
// This method may only be called on the IO thread.
// It may return NULL if the manager has already been deleted.

Powered by Google App Engine
This is Rietveld 408576698