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

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

Issue 442383002: Move storage-related files from webkit/ to new top-level directory storage/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « storage/browser/quota/quota_callbacks.h ('k') | storage/browser/quota/quota_database.h » ('j') | 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 WEBKIT_BROWSER_QUOTA_QUOTA_CLIENT_H_ 5 #ifndef WEBKIT_BROWSER_QUOTA_QUOTA_CLIENT_H_
6 #define WEBKIT_BROWSER_QUOTA_QUOTA_CLIENT_H_ 6 #define WEBKIT_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>
11 11
12 #include "base/callback.h" 12 #include "base/callback.h"
13 #include "url/gurl.h" 13 #include "url/gurl.h"
14 #include "webkit/browser/webkit_storage_browser_export.h" 14 #include "storage/common/storage_export.h"
15 #include "webkit/common/quota/quota_types.h" 15 #include "storage/common/quota/quota_types.h"
16 16
17 namespace quota { 17 namespace quota {
18 18
19 // An abstract interface for quota manager clients. 19 // An abstract interface for quota manager clients.
20 // Each storage API must provide an implementation of this interface and 20 // Each storage API must provide an implementation of this interface and
21 // register it to the quota manager. 21 // register it to the quota manager.
22 // All the methods are assumed to be called on the IO thread in the browser. 22 // All the methods are assumed to be called on the IO thread in the browser.
23 class WEBKIT_STORAGE_BROWSER_EXPORT QuotaClient { 23 class STORAGE_EXPORT QuotaClient {
24 public: 24 public:
25 typedef base::Callback<void(int64 usage)> GetUsageCallback; 25 typedef base::Callback<void(int64 usage)> GetUsageCallback;
26 typedef base::Callback<void(const std::set<GURL>& origins)> 26 typedef base::Callback<void(const std::set<GURL>& origins)>
27 GetOriginsCallback; 27 GetOriginsCallback;
28 typedef base::Callback<void(QuotaStatusCode status)> DeletionCallback; 28 typedef base::Callback<void(QuotaStatusCode status)> DeletionCallback;
29 29
30 virtual ~QuotaClient() {} 30 virtual ~QuotaClient() {}
31 31
32 enum ID { 32 enum ID {
33 kUnknown = 1 << 0, 33 kUnknown = 1 << 0,
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 72
73 virtual bool DoesSupport(StorageType type) const = 0; 73 virtual bool DoesSupport(StorageType type) const = 0;
74 }; 74 };
75 75
76 // TODO(dmikurube): Replace it to std::vector for efficiency. 76 // TODO(dmikurube): Replace it to std::vector for efficiency.
77 typedef std::list<QuotaClient*> QuotaClientList; 77 typedef std::list<QuotaClient*> QuotaClientList;
78 78
79 } // namespace quota 79 } // namespace quota
80 80
81 #endif // WEBKIT_BROWSER_QUOTA_QUOTA_CLIENT_H_ 81 #endif // WEBKIT_BROWSER_QUOTA_QUOTA_CLIENT_H_
OLDNEW
« no previous file with comments | « storage/browser/quota/quota_callbacks.h ('k') | storage/browser/quota/quota_database.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698