Chromium Code Reviews| OLD | NEW |
|---|---|
| (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_ | |
| OLD | NEW |