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_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 |
11 #include "base/memory/weak_ptr.h" | 11 #include "base/memory/weak_ptr.h" |
12 #include "components/browsing_data/counters/browsing_data_counter.h" | 12 #include "components/browsing_data/core/counters/browsing_data_counter.h" |
13 #include "url/gurl.h" | 13 #include "url/gurl.h" |
14 | 14 |
15 class Profile; | 15 class Profile; |
16 | 16 |
17 // MediaLicensesCounter is used to determine the number of origins that | 17 // MediaLicensesCounter is used to determine the number of origins that |
18 // have plugin private filesystem data (used by EME). It does not include | 18 // have plugin private filesystem data (used by EME). It does not include |
19 // origins that have content licenses owned by Flash. | 19 // origins that have content licenses owned by Flash. |
20 class MediaLicensesCounter : public browsing_data::BrowsingDataCounter { | 20 class MediaLicensesCounter : public browsing_data::BrowsingDataCounter { |
21 public: | 21 public: |
22 // MediaLicenseResult is the result of counting the number of origins | 22 // MediaLicenseResult is the result of counting the number of origins |
(...skipping 23 matching lines...) Expand all Loading... |
46 | 46 |
47 // Determining the set of origins used by the plugin private filesystem is | 47 // Determining the set of origins used by the plugin private filesystem is |
48 // done asynchronously. This callback returns the results, which are | 48 // done asynchronously. This callback returns the results, which are |
49 // subsequently reported. | 49 // subsequently reported. |
50 void OnContentLicensesObtained(const std::set<GURL>& origins); | 50 void OnContentLicensesObtained(const std::set<GURL>& origins); |
51 | 51 |
52 base::WeakPtrFactory<MediaLicensesCounter> weak_ptr_factory_; | 52 base::WeakPtrFactory<MediaLicensesCounter> weak_ptr_factory_; |
53 }; | 53 }; |
54 | 54 |
55 #endif // CHROME_BROWSER_BROWSING_DATA_MEDIA_LICENSES_COUNTER_H_ | 55 #endif // CHROME_BROWSER_BROWSING_DATA_MEDIA_LICENSES_COUNTER_H_ |
OLD | NEW |