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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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. | 72 // Callback to receive the cache size. |
73 void OnGetCacheSize(int64_t size, bool is_upper_limit); | 73 void OnGetCacheSize(bool is_upper_limit, int64_t size); |
74 | 74 |
75 // Callback to update the UI about the size of browsing data. | 75 // Callback to update the UI about the size of browsing data. |
76 void OnGetBrowsingDataSize(bool is_site_data, int64_t size); | 76 void OnGetBrowsingDataSize(bool is_site_data, int64_t size); |
77 | 77 |
78 // Requests updating the total size of other users' data. | 78 // Requests updating the total size of other users' data. |
79 void UpdateOtherUsersSize(); | 79 void UpdateOtherUsersSize(); |
80 | 80 |
81 // Callback to save the fetched user sizes and update the UI. | 81 // Callback to save the fetched user sizes and update the UI. |
82 void OnGetOtherUserSize(bool success, int64_t size); | 82 void OnGetOtherUserSize(bool success, int64_t size); |
83 | 83 |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 | 121 |
122 base::WeakPtrFactory<StorageManagerHandler> weak_ptr_factory_; | 122 base::WeakPtrFactory<StorageManagerHandler> weak_ptr_factory_; |
123 | 123 |
124 DISALLOW_COPY_AND_ASSIGN(StorageManagerHandler); | 124 DISALLOW_COPY_AND_ASSIGN(StorageManagerHandler); |
125 }; | 125 }; |
126 | 126 |
127 } // namespace options | 127 } // namespace options |
128 } // namespace chromeos | 128 } // namespace chromeos |
129 | 129 |
130 #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 |