| OLD | NEW |
| 1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2015 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_BROWSING_DATA_COUNTER_H_ | 5 #ifndef CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_COUNTER_H_ |
| 6 #define CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_COUNTER_H_ | 6 #define CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_COUNTER_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/callback.h" | 11 #include "base/callback.h" |
| 12 #include "base/macros.h" | 12 #include "base/macros.h" |
| 13 #include "base/prefs/pref_member.h" | |
| 14 #include "chrome/browser/browsing_data/browsing_data_remover.h" | 13 #include "chrome/browser/browsing_data/browsing_data_remover.h" |
| 15 #include "chrome/browser/profiles/profile.h" | 14 #include "chrome/browser/profiles/profile.h" |
| 15 #include "components/prefs/pref_member.h" |
| 16 | 16 |
| 17 class BrowsingDataCounter { | 17 class BrowsingDataCounter { |
| 18 public: | 18 public: |
| 19 typedef int64_t ResultInt; | 19 typedef int64_t ResultInt; |
| 20 | 20 |
| 21 // Base class of results returned by BrowsingDataCounter. When the computation | 21 // Base class of results returned by BrowsingDataCounter. When the computation |
| 22 // has started, an instance is returned to represent a pending result. | 22 // has started, an instance is returned to represent a pending result. |
| 23 class Result { | 23 class Result { |
| 24 public: | 24 public: |
| 25 explicit Result(const BrowsingDataCounter* source); | 25 explicit Result(const BrowsingDataCounter* source); |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 | 106 |
| 107 // The integer preference describing the time period for which this data type | 107 // The integer preference describing the time period for which this data type |
| 108 // is to be deleted. | 108 // is to be deleted. |
| 109 IntegerPrefMember period_; | 109 IntegerPrefMember period_; |
| 110 | 110 |
| 111 // Whether this class was properly initialized by calling |Init|. | 111 // Whether this class was properly initialized by calling |Init|. |
| 112 bool initialized_ = false; | 112 bool initialized_ = false; |
| 113 }; | 113 }; |
| 114 | 114 |
| 115 #endif // CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_COUNTER_H_ | 115 #endif // CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_COUNTER_H_ |
| OLD | NEW |