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_BROWSING_DATA_DOWNLOADS_COUNTER_H_ | 5 #ifndef CHROME_BROWSER_BROWSING_DATA_DOWNLOADS_COUNTER_H_ |
6 #define CHROME_BROWSER_BROWSING_DATA_DOWNLOADS_COUNTER_H_ | 6 #define CHROME_BROWSER_BROWSING_DATA_DOWNLOADS_COUNTER_H_ |
7 | 7 |
8 #include "chrome/browser/browsing_data/browsing_data_counter.h" | 8 #include "components/browsing_data/counters/browsing_data_counter.h" |
9 | 9 |
10 class Profile; | |
msramek
2016/06/27 12:46:18
nit: Empty line below this one.
ioanap
2016/06/27 14:50:43
Done.
| |
10 // A BrowsingDataCounter that counts the number of downloads as seen on the | 11 // A BrowsingDataCounter that counts the number of downloads as seen on the |
11 // chrome://downloads page. | 12 // chrome://downloads page. |
12 class DownloadsCounter: public BrowsingDataCounter { | 13 class DownloadsCounter : public browsing_data::BrowsingDataCounter { |
13 public: | 14 public: |
14 DownloadsCounter(); | 15 explicit DownloadsCounter(Profile* profile); |
15 ~DownloadsCounter() override; | 16 ~DownloadsCounter() override; |
16 | 17 |
17 // BrowsingDataRemover implementation. | 18 private: |
18 const std::string& GetPrefName() const override; | 19 Profile* profile_; |
msramek
2016/06/27 12:46:18
style nit: attributes under methods
This is alrea
ioanap
2016/06/27 14:50:43
Done.
| |
19 | 20 |
20 private: | |
21 // BrowsingDataRemover implementation. | 21 // BrowsingDataRemover implementation. |
22 void Count() override; | 22 void Count() override; |
23 | 23 |
24 const std::string pref_name_; | 24 const std::string pref_name_; |
25 | 25 |
26 DISALLOW_COPY_AND_ASSIGN(DownloadsCounter); | 26 DISALLOW_COPY_AND_ASSIGN(DownloadsCounter); |
27 }; | 27 }; |
28 | 28 |
29 #endif // CHROME_BROWSER_BROWSING_DATA_DOWNLOADS_COUNTER_H_ | 29 #endif // CHROME_BROWSER_BROWSING_DATA_DOWNLOADS_COUNTER_H_ |
OLD | NEW |