| 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_UI_WEBUI_OPTIONS_CHROMEOS_STORAGE_MANAGER_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_STORAGE_MANAGER_HANDLER_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_STORAGE_MANAGER_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_STORAGE_MANAGER_HANDLER_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
| 10 #include "chrome/browser/ui/webui/options/options_ui.h" | 10 #include "chrome/browser/ui/webui/options/options_ui.h" |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 | 52 |
| 53 // Callback to update the UI about the size of Downloads directory. | 53 // Callback to update the UI about the size of Downloads directory. |
| 54 void OnGetDownloadsSize(int64_t size); | 54 void OnGetDownloadsSize(int64_t size); |
| 55 | 55 |
| 56 // Requests updating the size of Drive Cache. | 56 // Requests updating the size of Drive Cache. |
| 57 void UpdateDriveCacheSize(); | 57 void UpdateDriveCacheSize(); |
| 58 | 58 |
| 59 // Callback to update the UI about the size of Drive Cache. | 59 // Callback to update the UI about the size of Drive Cache. |
| 60 void OnGetDriveCacheSize(int64_t size); | 60 void OnGetDriveCacheSize(int64_t size); |
| 61 | 61 |
| 62 // Requests updating the size of browsing data. |
| 63 void UpdateBrowsingDataSize(); |
| 64 |
| 65 // Callback to update the UI about the size of browsing data. |
| 66 void OnGetBrowsingDataSize(bool is_site_data, int64_t size); |
| 67 |
| 62 // Requests updating the space size used by Android apps and cache. | 68 // Requests updating the space size used by Android apps and cache. |
| 63 void UpdateArcSize(); | 69 void UpdateArcSize(); |
| 64 | 70 |
| 65 // Callback to update the UI about Android apps and cache. | 71 // Callback to update the UI about Android apps and cache. |
| 66 void OnGetArcSize(bool succeeded, arc::mojom::ApplicationsSizePtr size); | 72 void OnGetArcSize(bool succeeded, arc::mojom::ApplicationsSizePtr size); |
| 67 | 73 |
| 68 // Callback called when clearing Drive cache is done. | 74 // Callback called when clearing Drive cache is done. |
| 69 void OnClearDriveCacheDone(bool success); | 75 void OnClearDriveCacheDone(bool success); |
| 70 | 76 |
| 77 // Total size of cache data in browsing data. |
| 78 int64_t browser_cache_size_; |
| 79 |
| 80 // Total size of site data in browsing data. |
| 81 int64_t browser_site_data_size_; |
| 82 |
| 71 base::WeakPtrFactory<StorageManagerHandler> weak_ptr_factory_; | 83 base::WeakPtrFactory<StorageManagerHandler> weak_ptr_factory_; |
| 72 | 84 |
| 73 DISALLOW_COPY_AND_ASSIGN(StorageManagerHandler); | 85 DISALLOW_COPY_AND_ASSIGN(StorageManagerHandler); |
| 74 }; | 86 }; |
| 75 | 87 |
| 76 } // namespace options | 88 } // namespace options |
| 77 } // namespace chromeos | 89 } // namespace chromeos |
| 78 | 90 |
| 79 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_STORAGE_MANAGER_HANDLER_H_ | 91 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_STORAGE_MANAGER_HANDLER_H_ |
| OLD | NEW |