| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_REMOVER_H_ | 5 #ifndef CHROME_BROWSER_BROWSING_DATA_REMOVER_H_ |
| 6 #define CHROME_BROWSER_BROWSING_DATA_REMOVER_H_ | 6 #define CHROME_BROWSER_BROWSING_DATA_REMOVER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <set> | 9 #include <set> |
| 10 | 10 |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 REMOVE_SERVER_BOUND_CERTS | 86 REMOVE_SERVER_BOUND_CERTS |
| 87 }; | 87 }; |
| 88 | 88 |
| 89 // When BrowsingDataRemover successfully removes data, a notification of type | 89 // When BrowsingDataRemover successfully removes data, a notification of type |
| 90 // NOTIFICATION_BROWSING_DATA_REMOVED is triggered with a Details object of | 90 // NOTIFICATION_BROWSING_DATA_REMOVED is triggered with a Details object of |
| 91 // this type. | 91 // this type. |
| 92 struct NotificationDetails { | 92 struct NotificationDetails { |
| 93 NotificationDetails(); | 93 NotificationDetails(); |
| 94 NotificationDetails(const NotificationDetails& details); | 94 NotificationDetails(const NotificationDetails& details); |
| 95 NotificationDetails(base::Time removal_begin, | 95 NotificationDetails(base::Time removal_begin, |
| 96 int removal_mask); | 96 int removal_mask, |
| 97 int origin_set_mask); |
| 97 ~NotificationDetails(); | 98 ~NotificationDetails(); |
| 98 | 99 |
| 99 // The beginning of the removal time range. | 100 // The beginning of the removal time range. |
| 100 base::Time removal_begin; | 101 base::Time removal_begin; |
| 101 | 102 |
| 102 // The removal mask (see the RemoveDataMask enum for details) | 103 // The removal mask (see the RemoveDataMask enum for details). |
| 103 int removal_mask; | 104 int removal_mask; |
| 105 |
| 106 // The origin set mask (see BrowsingDataHelper::OriginSetMask for details). |
| 107 int origin_set_mask; |
| 104 }; | 108 }; |
| 105 | 109 |
| 106 // Observer is notified when the removal is done. Done means keywords have | 110 // Observer is notified when the removal is done. Done means keywords have |
| 107 // been deleted, cache cleared and all other tasks scheduled. | 111 // been deleted, cache cleared and all other tasks scheduled. |
| 108 class Observer { | 112 class Observer { |
| 109 public: | 113 public: |
| 110 virtual void OnBrowsingDataRemoverDone() = 0; | 114 virtual void OnBrowsingDataRemoverDone() = 0; |
| 111 | 115 |
| 112 protected: | 116 protected: |
| 113 virtual ~Observer() {} | 117 virtual ~Observer() {} |
| (...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 350 | 354 |
| 351 ObserverList<Observer> observer_list_; | 355 ObserverList<Observer> observer_list_; |
| 352 | 356 |
| 353 // Used if we need to clear history. | 357 // Used if we need to clear history. |
| 354 CancelableRequestConsumer request_consumer_; | 358 CancelableRequestConsumer request_consumer_; |
| 355 | 359 |
| 356 DISALLOW_COPY_AND_ASSIGN(BrowsingDataRemover); | 360 DISALLOW_COPY_AND_ASSIGN(BrowsingDataRemover); |
| 357 }; | 361 }; |
| 358 | 362 |
| 359 #endif // CHROME_BROWSER_BROWSING_DATA_REMOVER_H_ | 363 #endif // CHROME_BROWSER_BROWSING_DATA_REMOVER_H_ |
| OLD | NEW |