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

Side by Side Diff: chrome/browser/browsing_data/downloads_counter.h

Issue 2153863002: Move counters for passwords, history and autofill to components (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@separate_build_targets_in_components_bd
Patch Set: Addressed comments 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_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 "components/browsing_data/core/counters/browsing_data_counter.h" 8 #include "components/browsing_data/core/counters/browsing_data_counter.h"
9 9
10 class Profile; 10 class Profile;
11 11
12 // A BrowsingDataCounter that counts the number of downloads as seen on the 12 // A BrowsingDataCounter that counts the number of downloads as seen on the
13 // chrome://downloads page. 13 // chrome://downloads page.
14 class DownloadsCounter : public browsing_data::BrowsingDataCounter { 14 class DownloadsCounter : public browsing_data::BrowsingDataCounter {
15 public: 15 public:
16 explicit DownloadsCounter(Profile* profile); 16 explicit DownloadsCounter(Profile* profile);
17 ~DownloadsCounter() override; 17 ~DownloadsCounter() override;
18 18
19 const char* GetPrefName() const override;
20
19 private: 21 private:
20 // BrowsingDataRemover implementation. 22 // BrowsingDataRemover implementation.
21 void Count() override; 23 void Count() override;
22 24
23 const std::string pref_name_;
24
25 Profile* profile_; 25 Profile* profile_;
26 26
27 DISALLOW_COPY_AND_ASSIGN(DownloadsCounter); 27 DISALLOW_COPY_AND_ASSIGN(DownloadsCounter);
28 }; 28 };
29 29
30 #endif // CHROME_BROWSER_BROWSING_DATA_DOWNLOADS_COUNTER_H_ 30 #endif // CHROME_BROWSER_BROWSING_DATA_DOWNLOADS_COUNTER_H_
OLDNEW
« no previous file with comments | « chrome/browser/browsing_data/cache_counter.cc ('k') | chrome/browser/browsing_data/downloads_counter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698