| 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 | 62 |
| 63 // Requests updating the size of Drive Cache. | 63 // Requests updating the size of Drive Cache. |
| 64 void UpdateDriveCacheSize(); | 64 void UpdateDriveCacheSize(); |
| 65 | 65 |
| 66 // Callback to update the UI about the size of Drive Cache. | 66 // Callback to update the UI about the size of Drive Cache. |
| 67 void OnGetDriveCacheSize(int64_t size); | 67 void OnGetDriveCacheSize(int64_t size); |
| 68 | 68 |
| 69 // Requests updating the size of browsing data. | 69 // Requests updating the size of browsing data. |
| 70 void UpdateBrowsingDataSize(); | 70 void UpdateBrowsingDataSize(); |
| 71 | 71 |
| 72 // Callback to receive the cache size. |
| 73 void OnGetCacheSize(int64_t size, bool is_upper_limit); |
| 74 |
| 72 // Callback to update the UI about the size of browsing data. | 75 // Callback to update the UI about the size of browsing data. |
| 73 void OnGetBrowsingDataSize(bool is_site_data, int64_t size); | 76 void OnGetBrowsingDataSize(bool is_site_data, int64_t size); |
| 74 | 77 |
| 75 // Requests updating the total size of other users' data. | 78 // Requests updating the total size of other users' data. |
| 76 void UpdateOtherUsersSize(); | 79 void UpdateOtherUsersSize(); |
| 77 | 80 |
| 78 // Callback to save the fetched user sizes and update the UI. | 81 // Callback to save the fetched user sizes and update the UI. |
| 79 void OnGetOtherUserSize(bool success, int64_t size); | 82 void OnGetOtherUserSize(bool success, int64_t size); |
| 80 | 83 |
| 81 // Requests updating the space size used by Android apps and cache. | 84 // Requests updating the space size used by Android apps and cache. |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 | 121 |
| 119 base::WeakPtrFactory<StorageManagerHandler> weak_ptr_factory_; | 122 base::WeakPtrFactory<StorageManagerHandler> weak_ptr_factory_; |
| 120 | 123 |
| 121 DISALLOW_COPY_AND_ASSIGN(StorageManagerHandler); | 124 DISALLOW_COPY_AND_ASSIGN(StorageManagerHandler); |
| 122 }; | 125 }; |
| 123 | 126 |
| 124 } // namespace options | 127 } // namespace options |
| 125 } // namespace chromeos | 128 } // namespace chromeos |
| 126 | 129 |
| 127 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_STORAGE_MANAGER_HANDLER_H_ | 130 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_STORAGE_MANAGER_HANDLER_H_ |
| OLD | NEW |