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

Side by Side Diff: chrome/browser/ui/webui/options/chromeos/storage_manager_handler.h

Issue 2137463002: Storage manager: Update storage usage periodically. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
OLDNEW
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698