OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_BROWSING_DATA_HOSTED_APPS_COUNTER_H_ | 5 #ifndef CHROME_BROWSER_BROWSING_DATA_HOSTED_APPS_COUNTER_H_ |
6 #define CHROME_BROWSER_BROWSING_DATA_HOSTED_APPS_COUNTER_H_ | 6 #define CHROME_BROWSER_BROWSING_DATA_HOSTED_APPS_COUNTER_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 16 matching lines...) Expand all Loading... |
27 | 27 |
28 private: | 28 private: |
29 const std::vector<std::string> examples_; | 29 const std::vector<std::string> examples_; |
30 | 30 |
31 DISALLOW_COPY_AND_ASSIGN(HostedAppsResult); | 31 DISALLOW_COPY_AND_ASSIGN(HostedAppsResult); |
32 }; | 32 }; |
33 | 33 |
34 explicit HostedAppsCounter(Profile* profile); | 34 explicit HostedAppsCounter(Profile* profile); |
35 ~HostedAppsCounter() override; | 35 ~HostedAppsCounter() override; |
36 | 36 |
| 37 const char* GetPrefName() const override; |
| 38 |
37 private: | 39 private: |
38 // BrowsingDataCounter: | 40 // BrowsingDataCounter: |
39 void Count() override; | 41 void Count() override; |
40 | 42 |
41 Profile* profile_; | 43 Profile* profile_; |
42 | 44 |
43 DISALLOW_COPY_AND_ASSIGN(HostedAppsCounter); | 45 DISALLOW_COPY_AND_ASSIGN(HostedAppsCounter); |
44 }; | 46 }; |
45 | 47 |
46 #endif // CHROME_BROWSER_BROWSING_DATA_HOSTED_APPS_COUNTER_H_ | 48 #endif // CHROME_BROWSER_BROWSING_DATA_HOSTED_APPS_COUNTER_H_ |
OLD | NEW |