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

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

Issue 2860573004: [Offline Pages] Add cached offline page utils and show usage in settings. (Closed)
Patch Set: address missed comment Created 3 years, 7 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698