| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_BROWSING_DATA_SITE_DATA_COUNTER_H_ |
| 6 #define CHROME_BROWSER_BROWSING_DATA_SITE_DATA_COUNTER_H_ |
| 7 |
| 8 #include "base/memory/weak_ptr.h" |
| 9 #include "components/browsing_data/core/counters/browsing_data_counter.h" |
| 10 |
| 11 class Profile; |
| 12 |
| 13 class SiteDataCounter : public browsing_data::BrowsingDataCounter { |
| 14 public: |
| 15 explicit SiteDataCounter(Profile* profile); |
| 16 ~SiteDataCounter() override; |
| 17 |
| 18 const char* GetPrefName() const override; |
| 19 |
| 20 private: |
| 21 void Count() override; |
| 22 void Done(int origin_count); |
| 23 |
| 24 Profile* profile_; |
| 25 base::WeakPtrFactory<SiteDataCounter> weak_ptr_factory_; |
| 26 }; |
| 27 |
| 28 #endif // CHROME_BROWSER_BROWSING_DATA_SITE_DATA_COUNTER_H_ |
| OLD | NEW |