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

Side by Side Diff: chrome/browser/ui/webui/options/chromeos/storage_manager_handler.h

Issue 2123133002: Storage manager: Add site data size on the amount of browsing data. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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_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
Dan Beam 2016/07/06 18:29:22 #include <memory>
fukino 2016/07/07 11:08:18 Done.
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "base/memory/weak_ptr.h" 13 #include "base/memory/weak_ptr.h"
14 #include "chrome/browser/browsing_data/site_data_size_collector.h"
14 #include "chrome/browser/ui/webui/options/options_ui.h" 15 #include "chrome/browser/ui/webui/options/options_ui.h"
15 #include "components/arc/storage_manager/arc_storage_manager.h" 16 #include "components/arc/storage_manager/arc_storage_manager.h"
16 #include "components/user_manager/user.h" 17 #include "components/user_manager/user.h"
17 18
18 namespace chromeos { 19 namespace chromeos {
19 namespace options { 20 namespace options {
20 21
21 // Storage manager overlay page UI handler. 22 // Storage manager overlay page UI handler.
22 class StorageManagerHandler : public ::options::OptionsPageUIHandler { 23 class StorageManagerHandler : public ::options::OptionsPageUIHandler {
23 public: 24 public:
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 // Total size of site data in browsing data. 92 // Total size of site data in browsing data.
92 int64_t browser_site_data_size_; 93 int64_t browser_site_data_size_;
93 94
94 // The list of other users whose directory sizes will be accumulated as the 95 // The list of other users whose directory sizes will be accumulated as the
95 // size of "Other users". 96 // size of "Other users".
96 user_manager::UserList other_users_; 97 user_manager::UserList other_users_;
97 98
98 // Fetched sizes of user directories. 99 // Fetched sizes of user directories.
99 std::vector<int64_t> user_sizes_; 100 std::vector<int64_t> user_sizes_;
100 101
102 // Helper to compute the total size of all types of site date.
103 std::unique_ptr<SiteDataSizeCollector> site_data_size_collector_;
104
101 base::WeakPtrFactory<StorageManagerHandler> weak_ptr_factory_; 105 base::WeakPtrFactory<StorageManagerHandler> weak_ptr_factory_;
102 106
103 DISALLOW_COPY_AND_ASSIGN(StorageManagerHandler); 107 DISALLOW_COPY_AND_ASSIGN(StorageManagerHandler);
104 }; 108 };
105 109
106 } // namespace options 110 } // namespace options
107 } // namespace chromeos 111 } // namespace chromeos
108 112
109 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_STORAGE_MANAGER_HANDLER_H_ 113 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_STORAGE_MANAGER_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698