OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_FILEAPI_FILE_SYSTEM_QUOTA_CLIENT_H_ | 5 #ifndef STORAGE_BROWSER_FILEAPI_FILE_SYSTEM_QUOTA_CLIENT_H_ |
6 #define STORAGE_BROWSER_FILEAPI_FILE_SYSTEM_QUOTA_CLIENT_H_ | 6 #define STORAGE_BROWSER_FILEAPI_FILE_SYSTEM_QUOTA_CLIENT_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 #include <utility> | 10 #include <utility> |
(...skipping 22 matching lines...) Expand all Loading... |
33 // (except for the constructor/destructor). | 33 // (except for the constructor/destructor). |
34 class STORAGE_EXPORT_PRIVATE FileSystemQuotaClient | 34 class STORAGE_EXPORT_PRIVATE FileSystemQuotaClient |
35 : public NON_EXPORTED_BASE(storage::QuotaClient) { | 35 : public NON_EXPORTED_BASE(storage::QuotaClient) { |
36 public: | 36 public: |
37 FileSystemQuotaClient( | 37 FileSystemQuotaClient( |
38 FileSystemContext* file_system_context, | 38 FileSystemContext* file_system_context, |
39 bool is_incognito); | 39 bool is_incognito); |
40 virtual ~FileSystemQuotaClient(); | 40 virtual ~FileSystemQuotaClient(); |
41 | 41 |
42 // QuotaClient methods. | 42 // QuotaClient methods. |
43 virtual storage::QuotaClient::ID id() const OVERRIDE; | 43 virtual storage::QuotaClient::ID id() const override; |
44 virtual void OnQuotaManagerDestroyed() OVERRIDE; | 44 virtual void OnQuotaManagerDestroyed() override; |
45 virtual void GetOriginUsage(const GURL& origin_url, | 45 virtual void GetOriginUsage(const GURL& origin_url, |
46 storage::StorageType type, | 46 storage::StorageType type, |
47 const GetUsageCallback& callback) OVERRIDE; | 47 const GetUsageCallback& callback) override; |
48 virtual void GetOriginsForType(storage::StorageType type, | 48 virtual void GetOriginsForType(storage::StorageType type, |
49 const GetOriginsCallback& callback) OVERRIDE; | 49 const GetOriginsCallback& callback) override; |
50 virtual void GetOriginsForHost(storage::StorageType type, | 50 virtual void GetOriginsForHost(storage::StorageType type, |
51 const std::string& host, | 51 const std::string& host, |
52 const GetOriginsCallback& callback) OVERRIDE; | 52 const GetOriginsCallback& callback) override; |
53 virtual void DeleteOriginData(const GURL& origin, | 53 virtual void DeleteOriginData(const GURL& origin, |
54 storage::StorageType type, | 54 storage::StorageType type, |
55 const DeletionCallback& callback) OVERRIDE; | 55 const DeletionCallback& callback) override; |
56 virtual bool DoesSupport(storage::StorageType type) const OVERRIDE; | 56 virtual bool DoesSupport(storage::StorageType type) const override; |
57 | 57 |
58 private: | 58 private: |
59 base::SequencedTaskRunner* file_task_runner() const; | 59 base::SequencedTaskRunner* file_task_runner() const; |
60 | 60 |
61 scoped_refptr<FileSystemContext> file_system_context_; | 61 scoped_refptr<FileSystemContext> file_system_context_; |
62 | 62 |
63 bool is_incognito_; | 63 bool is_incognito_; |
64 | 64 |
65 DISALLOW_COPY_AND_ASSIGN(FileSystemQuotaClient); | 65 DISALLOW_COPY_AND_ASSIGN(FileSystemQuotaClient); |
66 }; | 66 }; |
67 | 67 |
68 } // namespace storage | 68 } // namespace storage |
69 | 69 |
70 #endif // STORAGE_BROWSER_FILEAPI_FILE_SYSTEM_QUOTA_CLIENT_H_ | 70 #endif // STORAGE_BROWSER_FILEAPI_FILE_SYSTEM_QUOTA_CLIENT_H_ |
OLD | NEW |