| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 CHROME_BROWSER_STORAGE_STORAGE_INFO_FETCHER_H_ | 5 #ifndef CHROME_BROWSER_STORAGE_STORAGE_INFO_FETCHER_H_ |
| 6 #define CHROME_BROWSER_STORAGE_STORAGE_INFO_FETCHER_H_ | 6 #define CHROME_BROWSER_STORAGE_STORAGE_INFO_FETCHER_H_ |
| 7 | 7 |
| 8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
| 9 #include "storage/browser/quota/quota_manager.h" | 9 #include "storage/browser/quota/quota_callbacks.h" |
| 10 |
| 11 namespace storage { |
| 12 class QuotaManager; |
| 13 } |
| 10 | 14 |
| 11 class Profile; | 15 class Profile; |
| 12 | 16 |
| 13 // Asynchronously fetches the amount of storage used by websites. | 17 // Asynchronously fetches the amount of storage used by websites. |
| 14 class StorageInfoFetcher : | 18 class StorageInfoFetcher : |
| 15 public base::RefCountedThreadSafe<StorageInfoFetcher> { | 19 public base::RefCountedThreadSafe<StorageInfoFetcher> { |
| 16 public: | 20 public: |
| 17 using FetchCallback = | 21 using FetchCallback = |
| 18 base::Callback<void(const storage::UsageInfoEntries&)>; | 22 base::Callback<void(const storage::UsageInfoEntries&)>; |
| 19 using ClearCallback = | 23 using ClearCallback = |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 // The callback to use when fetching is complete. | 66 // The callback to use when fetching is complete. |
| 63 FetchCallback fetch_callback_; | 67 FetchCallback fetch_callback_; |
| 64 | 68 |
| 65 // The callback to use when storage has been cleared. | 69 // The callback to use when storage has been cleared. |
| 66 ClearCallback clear_callback_; | 70 ClearCallback clear_callback_; |
| 67 | 71 |
| 68 DISALLOW_COPY_AND_ASSIGN(StorageInfoFetcher); | 72 DISALLOW_COPY_AND_ASSIGN(StorageInfoFetcher); |
| 69 }; | 73 }; |
| 70 | 74 |
| 71 #endif // CHROME_BROWSER_STORAGE_STORAGE_INFO_FETCHER_H_ | 75 #endif // CHROME_BROWSER_STORAGE_STORAGE_INFO_FETCHER_H_ |
| OLD | NEW |