| Index: chrome/browser/browsing_data/site_data_counter.h
|
| diff --git a/chrome/browser/browsing_data/site_data_counter.h b/chrome/browser/browsing_data/site_data_counter.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..f6939db8736339d5a7cb2a10823d3cf5194ea2a9
|
| --- /dev/null
|
| +++ b/chrome/browser/browsing_data/site_data_counter.h
|
| @@ -0,0 +1,28 @@
|
| +// Copyright 2017 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef CHROME_BROWSER_BROWSING_DATA_SITE_DATA_COUNTER_H_
|
| +#define CHROME_BROWSER_BROWSING_DATA_SITE_DATA_COUNTER_H_
|
| +
|
| +#include "base/memory/weak_ptr.h"
|
| +#include "components/browsing_data/core/counters/browsing_data_counter.h"
|
| +
|
| +class Profile;
|
| +
|
| +class SiteDataCounter : public browsing_data::BrowsingDataCounter {
|
| + public:
|
| + explicit SiteDataCounter(Profile* profile);
|
| + ~SiteDataCounter() override;
|
| +
|
| + const char* GetPrefName() const override;
|
| +
|
| + private:
|
| + void Count() override;
|
| + void Done(int origin_count);
|
| +
|
| + Profile* profile_;
|
| + base::WeakPtrFactory<SiteDataCounter> weak_ptr_factory_;
|
| +};
|
| +
|
| +#endif // CHROME_BROWSER_BROWSING_DATA_SITE_DATA_COUNTER_H_
|
|
|