| 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" |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 // remover->RemoveAndReply(base::Time(), base::Time::Max(), | 36 // remover->RemoveAndReply(base::Time(), base::Time::Max(), |
| 37 // REMOVE_COOKIES, ALL, this); | 37 // REMOVE_COOKIES, ALL, this); |
| 38 // } | 38 // } |
| 39 // | 39 // |
| 40 // void OnBrowsingDataRemoverDone() { | 40 // void OnBrowsingDataRemoverDone() { |
| 41 // LOG(INFO) << "Cookies were deleted."; | 41 // LOG(INFO) << "Cookies were deleted."; |
| 42 // } | 42 // } |
| 43 // } | 43 // } |
| 44 // | 44 // |
| 45 //////////////////////////////////////////////////////////////////////////////// | 45 //////////////////////////////////////////////////////////////////////////////// |
| 46 // |
| 47 // TODO(crbug.com/668114): BrowsingDataRemover does not currently support plugin |
| 48 // data deletion. Use PluginDataRemover instead. |
| 46 class BrowsingDataRemover { | 49 class BrowsingDataRemover { |
| 47 public: | 50 public: |
| 48 // Mask used for Remove. | 51 // Mask used for Remove. |
| 49 enum RemoveDataMask { | 52 enum RemoveDataMask { |
| 50 REMOVE_APPCACHE = 1 << 0, | 53 REMOVE_APPCACHE = 1 << 0, |
| 51 REMOVE_CACHE = 1 << 1, | 54 REMOVE_CACHE = 1 << 1, |
| 52 REMOVE_COOKIES = 1 << 2, | 55 REMOVE_COOKIES = 1 << 2, |
| 53 REMOVE_DOWNLOADS = 1 << 3, | 56 REMOVE_DOWNLOADS = 1 << 3, |
| 54 REMOVE_FILE_SYSTEMS = 1 << 4, | 57 REMOVE_FILE_SYSTEMS = 1 << 4, |
| 55 REMOVE_FORM_DATA = 1 << 5, | 58 REMOVE_FORM_DATA = 1 << 5, |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 // consider returning them in OnBrowsingDataRemoverDone() callback. If not, | 199 // consider returning them in OnBrowsingDataRemoverDone() callback. If not, |
| 197 // consider simplifying this interface by removing these methods and changing | 200 // consider simplifying this interface by removing these methods and changing |
| 198 // the tests to record the parameters using GMock instead. | 201 // the tests to record the parameters using GMock instead. |
| 199 virtual const base::Time& GetLastUsedBeginTime() = 0; | 202 virtual const base::Time& GetLastUsedBeginTime() = 0; |
| 200 virtual const base::Time& GetLastUsedEndTime() = 0; | 203 virtual const base::Time& GetLastUsedEndTime() = 0; |
| 201 virtual int GetLastUsedRemovalMask() = 0; | 204 virtual int GetLastUsedRemovalMask() = 0; |
| 202 virtual int GetLastUsedOriginTypeMask() = 0; | 205 virtual int GetLastUsedOriginTypeMask() = 0; |
| 203 }; | 206 }; |
| 204 | 207 |
| 205 #endif // CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_REMOVER_H_ | 208 #endif // CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_REMOVER_H_ |
| OLD | NEW |