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

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

Issue 2594723002: Count number of origins with data affected by clearing "cookies and site data". (Closed)
Patch Set: small fixes Created 3 years, 9 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
(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_
OLDNEW
« no previous file with comments | « chrome/browser/browsing_data/browsing_data_counter_utils.cc ('k') | chrome/browser/browsing_data/site_data_counter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698