diff options
author | serya@chromium.org <serya@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-09-04 20:10:47 +0000 |
---|---|---|
committer | serya@chromium.org <serya@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-09-04 20:10:47 +0000 |
commit | f711488d3f4ed881fc71f38b18f695f850d141be (patch) | |
tree | 7a1d448604775f725dbda1681f2b5264b989c80f /webkit/browser/fileapi/file_system_quota_client.h | |
parent | 770af9de70b5975fcbd284606ab88b19e7450532 (diff) | |
download | chromium_src-f711488d3f4ed881fc71f38b18f695f850d141be.zip chromium_src-f711488d3f4ed881fc71f38b18f695f850d141be.tar.gz chromium_src-f711488d3f4ed881fc71f38b18f695f850d141be.tar.bz2 |
Not creating ClientUsageTracker for unsupported storage type.
Extracted from https://chromiumcodereview.appspot.com/23240002/
Currently we create all usage trackers for each pair QuotaClient/StorageType.
Most clients only support one storage type and filesystem support variable
list of types (it doesn't have kStorageTypeSyncable in unittests).
If filesystem has no syncable storage backend it not useless to keep create ClientUsageTracker. This tracker fails when GetHostUsage is invoked. So let's don't create it.
BUG=281252
Review URL: https://chromiumcodereview.appspot.com/23545016
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@221244 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/browser/fileapi/file_system_quota_client.h')
-rw-r--r-- | webkit/browser/fileapi/file_system_quota_client.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/webkit/browser/fileapi/file_system_quota_client.h b/webkit/browser/fileapi/file_system_quota_client.h index f216804..f3cf68d 100644 --- a/webkit/browser/fileapi/file_system_quota_client.h +++ b/webkit/browser/fileapi/file_system_quota_client.h @@ -56,6 +56,7 @@ class WEBKIT_STORAGE_BROWSER_EXPORT_PRIVATE FileSystemQuotaClient const GURL& origin, quota::StorageType type, const DeletionCallback& callback) OVERRIDE; + virtual bool DoesSupport(quota::StorageType type) const OVERRIDE; private: base::SequencedTaskRunner* file_task_runner() const; |