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

Side by Side Diff: storage/browser/quota/quota_client.h

Issue 651983002: [ServiceWorkerCache] Implement storage::QuotaClient (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments from PS 10+11 Created 6 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 unified diff | Download patch
« no previous file with comments | « content/content_browser.gypi ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef STORAGE_BROWSER_QUOTA_QUOTA_CLIENT_H_ 5 #ifndef STORAGE_BROWSER_QUOTA_QUOTA_CLIENT_H_
6 #define STORAGE_BROWSER_QUOTA_QUOTA_CLIENT_H_ 6 #define STORAGE_BROWSER_QUOTA_QUOTA_CLIENT_H_
7 7
8 #include <list> 8 #include <list>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 18 matching lines...) Expand all
29 29
30 virtual ~QuotaClient() {} 30 virtual ~QuotaClient() {}
31 31
32 enum ID { 32 enum ID {
33 kUnknown = 1 << 0, 33 kUnknown = 1 << 0,
34 kFileSystem = 1 << 1, 34 kFileSystem = 1 << 1,
35 kDatabase = 1 << 2, 35 kDatabase = 1 << 2,
36 kAppcache = 1 << 3, 36 kAppcache = 1 << 3,
37 kIndexedDatabase = 1 << 4, 37 kIndexedDatabase = 1 << 4,
38 kServiceWorker = 1 << 5, 38 kServiceWorker = 1 << 5,
39 kServiceWorkerCache = 1 << 6,
39 kAllClientsMask = -1, 40 kAllClientsMask = -1,
40 }; 41 };
41 42
42 virtual ID id() const = 0; 43 virtual ID id() const = 0;
43 44
44 // Called when the quota manager is destroyed. 45 // Called when the quota manager is destroyed.
45 virtual void OnQuotaManagerDestroyed() = 0; 46 virtual void OnQuotaManagerDestroyed() = 0;
46 47
47 // Called by the QuotaManager. 48 // Called by the QuotaManager.
48 // Gets the amount of data stored in the storage specified by 49 // Gets the amount of data stored in the storage specified by
(...skipping 24 matching lines...) Expand all
73 74
74 virtual bool DoesSupport(StorageType type) const = 0; 75 virtual bool DoesSupport(StorageType type) const = 0;
75 }; 76 };
76 77
77 // TODO(dmikurube): Replace it to std::vector for efficiency. 78 // TODO(dmikurube): Replace it to std::vector for efficiency.
78 typedef std::list<QuotaClient*> QuotaClientList; 79 typedef std::list<QuotaClient*> QuotaClientList;
79 80
80 } // namespace storage 81 } // namespace storage
81 82
82 #endif // STORAGE_BROWSER_QUOTA_QUOTA_CLIENT_H_ 83 #endif // STORAGE_BROWSER_QUOTA_QUOTA_CLIENT_H_
OLDNEW
« no previous file with comments | « content/content_browser.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698