| 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_BROWSING_DATA_REMOVER_H_ | 5 #ifndef CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_REMOVER_H_ |
| 6 #define CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_REMOVER_H_ | 6 #define CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_REMOVER_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include "base/callback_forward.h" | 9 #include "base/callback_forward.h" |
| 10 #include "base/time/time.h" | 10 #include "base/time/time.h" |
| 11 #include "build/build_config.h" | 11 #include "build/build_config.h" |
| 12 #include "chrome/browser/browsing_data/browsing_data_remover_delegate.h" | 12 #include "chrome/browser/browsing_data/browsing_data_remover_delegate.h" |
| 13 #include "chrome/common/features.h" | |
| 14 | 13 |
| 15 //////////////////////////////////////////////////////////////////////////////// | 14 //////////////////////////////////////////////////////////////////////////////// |
| 16 // BrowsingDataRemover is responsible for removing data related to browsing: | 15 // BrowsingDataRemover is responsible for removing data related to browsing: |
| 17 // visits in url database, downloads, cookies ... | 16 // visits in url database, downloads, cookies ... |
| 18 // | 17 // |
| 19 // USAGE: | 18 // USAGE: |
| 20 // | 19 // |
| 21 // 0. Instantiation. | 20 // 0. Instantiation. |
| 22 // | 21 // |
| 23 // BrowsingDataRemover* remover = | 22 // BrowsingDataRemover* remover = |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 // consider returning them in OnBrowsingDataRemoverDone() callback. If not, | 196 // consider returning them in OnBrowsingDataRemoverDone() callback. If not, |
| 198 // consider simplifying this interface by removing these methods and changing | 197 // consider simplifying this interface by removing these methods and changing |
| 199 // the tests to record the parameters using GMock instead. | 198 // the tests to record the parameters using GMock instead. |
| 200 virtual const base::Time& GetLastUsedBeginTime() = 0; | 199 virtual const base::Time& GetLastUsedBeginTime() = 0; |
| 201 virtual const base::Time& GetLastUsedEndTime() = 0; | 200 virtual const base::Time& GetLastUsedEndTime() = 0; |
| 202 virtual int GetLastUsedRemovalMask() = 0; | 201 virtual int GetLastUsedRemovalMask() = 0; |
| 203 virtual int GetLastUsedOriginTypeMask() = 0; | 202 virtual int GetLastUsedOriginTypeMask() = 0; |
| 204 }; | 203 }; |
| 205 | 204 |
| 206 #endif // CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_REMOVER_H_ | 205 #endif // CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_REMOVER_H_ |
| OLD | NEW |