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

Side by Side Diff: chrome/browser/browsing_data/media_licenses_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: Fixed dependencies 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_MEDIA_LICENSES_COUNTER_H_ 5 #ifndef CHROME_BROWSER_BROWSING_DATA_MEDIA_LICENSES_COUNTER_H_
6 #define CHROME_BROWSER_BROWSING_DATA_MEDIA_LICENSES_COUNTER_H_ 6 #define CHROME_BROWSER_BROWSING_DATA_MEDIA_LICENSES_COUNTER_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
(...skipping 20 matching lines...) Expand all
31 31
32 const std::string& GetOneOrigin() const; 32 const std::string& GetOneOrigin() const;
33 33
34 private: 34 private:
35 std::string one_origin_; 35 std::string one_origin_;
36 }; 36 };
37 37
38 explicit MediaLicensesCounter(Profile* profile); 38 explicit MediaLicensesCounter(Profile* profile);
39 ~MediaLicensesCounter() override; 39 ~MediaLicensesCounter() override;
40 40
41 const std::string& GetPrefName() const override;
42
41 private: 43 private:
44 const std::string pref_name_;
42 Profile* profile_; 45 Profile* profile_;
43 46
44 // BrowsingDataCounter implementation. 47 // BrowsingDataCounter implementation.
45 void Count() final; 48 void Count() final;
46 49
47 // Determining the set of origins used by the plugin private filesystem is 50 // Determining the set of origins used by the plugin private filesystem is
48 // done asynchronously. This callback returns the results, which are 51 // done asynchronously. This callback returns the results, which are
49 // subsequently reported. 52 // subsequently reported.
50 void OnContentLicensesObtained(const std::set<GURL>& origins); 53 void OnContentLicensesObtained(const std::set<GURL>& origins);
51 54
52 base::WeakPtrFactory<MediaLicensesCounter> weak_ptr_factory_; 55 base::WeakPtrFactory<MediaLicensesCounter> weak_ptr_factory_;
53 }; 56 };
54 57
55 #endif // CHROME_BROWSER_BROWSING_DATA_MEDIA_LICENSES_COUNTER_H_ 58 #endif // CHROME_BROWSER_BROWSING_DATA_MEDIA_LICENSES_COUNTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698