| 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_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_REMOVER_DELEGATE_H_ |
| 6 #define CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_REMOVER_DELEGATE_H_ | 6 #define CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_REMOVER_DELEGATE_H_ |
| 7 | 7 |
| 8 class GURL; |
| 9 |
| 8 namespace content { | 10 namespace content { |
| 9 class BrowsingDataFilterBuilder; | 11 class BrowsingDataFilterBuilder; |
| 10 } | 12 } |
| 11 | 13 |
| 14 namespace storage { |
| 15 class SpecialStoragePolicy; |
| 16 } |
| 17 |
| 12 class BrowsingDataRemoverDelegate { | 18 class BrowsingDataRemoverDelegate { |
| 13 public: | 19 public: |
| 14 virtual ~BrowsingDataRemoverDelegate() {} | 20 virtual ~BrowsingDataRemoverDelegate() {} |
| 15 | 21 |
| 22 // Determines whether |origin| matches |origin_type_mask| |
| 23 // given the |special_storage_policy|. |origin_type_mask| should only contain |
| 24 // embedder-specific datatypes. |
| 25 virtual bool DoesOriginMatchEmbedderMask( |
| 26 int origin_type_mask, |
| 27 const GURL& origin, |
| 28 storage::SpecialStoragePolicy* special_storage_policy) const = 0; |
| 29 |
| 30 // Removes embedder-specific data. |
| 16 virtual void RemoveEmbedderData( | 31 virtual void RemoveEmbedderData( |
| 17 const base::Time& delete_begin, | 32 const base::Time& delete_begin, |
| 18 const base::Time& delete_end, | 33 const base::Time& delete_end, |
| 19 int remove_mask, | 34 int remove_mask, |
| 20 const content::BrowsingDataFilterBuilder& filter_builder, | 35 const content::BrowsingDataFilterBuilder& filter_builder, |
| 21 int origin_type_mask, | 36 int origin_type_mask, |
| 22 const base::Closure& callback) = 0; | 37 const base::Closure& callback) = 0; |
| 23 }; | 38 }; |
| 24 | 39 |
| 25 #endif // CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_REMOVER_DELEGATE_H_ | 40 #endif // CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_REMOVER_DELEGATE_H_ |
| OLD | NEW |