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_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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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. | 69 // Callback to receive the cache size. |
70 void OnGetCacheSize(int64_t size, bool is_upper_limit); | 70 void OnGetCacheSize(bool is_upper_limit, int64_t size); |
71 | 71 |
72 // Callback to update the UI about the size of browsing data. | 72 // Callback to update the UI about the size of browsing data. |
73 void OnGetBrowsingDataSize(bool is_site_data, int64_t size); | 73 void OnGetBrowsingDataSize(bool is_site_data, int64_t size); |
74 | 74 |
75 // Requests updating the total size of other users' data. | 75 // Requests updating the total size of other users' data. |
76 void UpdateOtherUsersSize(); | 76 void UpdateOtherUsersSize(); |
77 | 77 |
78 // Callback to save the fetched user sizes and update the UI. | 78 // Callback to save the fetched user sizes and update the UI. |
79 void OnGetOtherUserSize(bool success, int64_t size); | 79 void OnGetOtherUserSize(bool success, int64_t size); |
80 | 80 |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 bool updating_android_size_; | 116 bool updating_android_size_; |
117 bool updating_other_users_size_; | 117 bool updating_other_users_size_; |
118 | 118 |
119 DISALLOW_COPY_AND_ASSIGN(StorageHandler); | 119 DISALLOW_COPY_AND_ASSIGN(StorageHandler); |
120 }; | 120 }; |
121 | 121 |
122 } // namespace settings | 122 } // namespace settings |
123 } // namespace chromeos | 123 } // namespace chromeos |
124 | 124 |
125 #endif // CHROME_BROWSER_UI_WEBUI_SETTINGS_CHROMEOS_DEVICE_STORAGE_HANDLER_H_ | 125 #endif // CHROME_BROWSER_UI_WEBUI_SETTINGS_CHROMEOS_DEVICE_STORAGE_HANDLER_H_ |
OLD | NEW |