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

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

Issue 2594723002: Count number of origins with data affected by clearing "cookies and site data". (Closed)
Patch Set: Add comments for issues with incomplete data deletion Created 3 years, 11 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 (c) 2016 The Chromium Authors. All rights reserved.
msramek 2017/01/09 12:54:43 nit: s/(c) //g (we don't use "(c)" anymore in new
dullweber 2017/01/09 16:05:46 Updated all new files
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_COOKIE_COUNTER_H_
6 #define CHROME_BROWSER_BROWSING_DATA_COOKIE_COUNTER_H_
7
8 #include "base/memory/weak_ptr.h"
9 #include "chrome/browser/profiles/profile.h"
msramek 2017/01/09 12:54:43 nit: Forward declaration should be enough.
dullweber 2017/01/09 16:05:46 Done.
10 #include "components/browsing_data/core/counters/browsing_data_counter.h"
11
12 class CookieCounter : public browsing_data::BrowsingDataCounter {
msramek 2017/01/09 12:54:43 Even though we colloquially refers to the item in
dullweber 2017/01/09 16:05:46 Done.
13 public:
14 explicit CookieCounter(Profile* profile);
15 ~CookieCounter() override;
16
17 const char* GetPrefName() const override;
18
19 private:
20 Profile* profile_;
msramek 2017/01/09 12:54:43 style: Methods before attributes (I know, I know :
dullweber 2017/01/09 16:05:46 Done.
21
22 base::WeakPtrFactory<CookieCounter> weak_ptr_factory_;
23
24 void Count() override;
25
26 void Done(int origin_count);
27 };
28
29 #endif // CHROME_BROWSER_BROWSING_DATA_COOKIE_COUNTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698