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

Side by Side Diff: chrome/browser/ui/webui/settings/chromeos/device_storage_handler.h

Issue 2626223002: Show the exact cache size for time ranges if supported (Closed)
Patch Set: rebase Created 3 years, 11 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_SETTINGS_CHROMEOS_DEVICE_STORAGE_HANDLER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_SETTINGS_CHROMEOS_DEVICE_STORAGE_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_SETTINGS_CHROMEOS_DEVICE_STORAGE_HANDLER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_SETTINGS_CHROMEOS_DEVICE_STORAGE_HANDLER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 59
60 // Requests updating the size of Drive Cache. 60 // Requests updating the size of Drive Cache.
61 void UpdateDriveCacheSize(); 61 void UpdateDriveCacheSize();
62 62
63 // Callback to update the UI about the size of Drive Cache. 63 // Callback to update the UI about the size of Drive Cache.
64 void OnGetDriveCacheSize(int64_t size); 64 void OnGetDriveCacheSize(int64_t size);
65 65
66 // Requests updating the size of browsing data. 66 // Requests updating the size of browsing data.
67 void UpdateBrowsingDataSize(); 67 void UpdateBrowsingDataSize();
68 68
69 // Callback to receive the cache size.
70 void OnGetCacheSize(int64_t size, bool is_upper_limit);
71
69 // Callback to update the UI about the size of browsing data. 72 // Callback to update the UI about the size of browsing data.
70 void OnGetBrowsingDataSize(bool is_site_data, int64_t size); 73 void OnGetBrowsingDataSize(bool is_site_data, int64_t size);
71 74
72 // Requests updating the total size of other users' data. 75 // Requests updating the total size of other users' data.
73 void UpdateOtherUsersSize(); 76 void UpdateOtherUsersSize();
74 77
75 // Callback to save the fetched user sizes and update the UI. 78 // Callback to save the fetched user sizes and update the UI.
76 void OnGetOtherUserSize(bool success, int64_t size); 79 void OnGetOtherUserSize(bool success, int64_t size);
77 80
78 // Requests updating the space size used by Android apps and cache. 81 // Requests updating the space size used by Android apps and cache.
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 bool updating_android_size_; 116 bool updating_android_size_;
114 bool updating_other_users_size_; 117 bool updating_other_users_size_;
115 118
116 DISALLOW_COPY_AND_ASSIGN(StorageHandler); 119 DISALLOW_COPY_AND_ASSIGN(StorageHandler);
117 }; 120 };
118 121
119 } // namespace settings 122 } // namespace settings
120 } // namespace chromeos 123 } // namespace chromeos
121 124
122 #endif // CHROME_BROWSER_UI_WEBUI_SETTINGS_CHROMEOS_DEVICE_STORAGE_HANDLER_H_ 125 #endif // CHROME_BROWSER_UI_WEBUI_SETTINGS_CHROMEOS_DEVICE_STORAGE_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698