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 <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 // The list of other users whose directory sizes will be accumulated as the | 102 // The list of other users whose directory sizes will be accumulated as the |
103 // size of "Other users". | 103 // size of "Other users". |
104 user_manager::UserList other_users_; | 104 user_manager::UserList other_users_; |
105 | 105 |
106 // Fetched sizes of user directories. | 106 // Fetched sizes of user directories. |
107 std::vector<int64_t> user_sizes_; | 107 std::vector<int64_t> user_sizes_; |
108 | 108 |
109 // Helper to compute the total size of all types of site date. | 109 // Helper to compute the total size of all types of site date. |
110 std::unique_ptr<SiteDataSizeCollector> site_data_size_collector_; | 110 std::unique_ptr<SiteDataSizeCollector> site_data_size_collector_; |
111 | 111 |
| 112 // Flags indicating fetch operations for storage sizes are ongoing. |
| 113 bool updating_downloads_size_; |
| 114 bool updating_drive_cache_size_; |
| 115 bool updating_browsing_data_size_; |
| 116 bool updating_arc_size_; |
| 117 bool updating_other_users_size_; |
| 118 |
112 base::WeakPtrFactory<StorageManagerHandler> weak_ptr_factory_; | 119 base::WeakPtrFactory<StorageManagerHandler> weak_ptr_factory_; |
113 | 120 |
114 DISALLOW_COPY_AND_ASSIGN(StorageManagerHandler); | 121 DISALLOW_COPY_AND_ASSIGN(StorageManagerHandler); |
115 }; | 122 }; |
116 | 123 |
117 } // namespace options | 124 } // namespace options |
118 } // namespace chromeos | 125 } // namespace chromeos |
119 | 126 |
120 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_STORAGE_MANAGER_HANDLER_H_ | 127 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_STORAGE_MANAGER_HANDLER_H_ |
OLD | NEW |