| 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_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 <set> | 8 #include <set> |
| 9 | 9 |
| 10 #include "base/gtest_prod_util.h" | 10 #include "base/gtest_prod_util.h" |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 // | 166 // |
| 167 // TODO(mkwst): See http://crbug.com/113621 | 167 // TODO(mkwst): See http://crbug.com/113621 |
| 168 friend class BrowsingDataRemoverTest; | 168 friend class BrowsingDataRemoverTest; |
| 169 | 169 |
| 170 enum CacheState { | 170 enum CacheState { |
| 171 STATE_NONE, | 171 STATE_NONE, |
| 172 STATE_CREATE_MAIN, | 172 STATE_CREATE_MAIN, |
| 173 STATE_CREATE_MEDIA, | 173 STATE_CREATE_MEDIA, |
| 174 STATE_DELETE_MAIN, | 174 STATE_DELETE_MAIN, |
| 175 STATE_DELETE_MEDIA, | 175 STATE_DELETE_MEDIA, |
| 176 STATE_DELETE_EXPERIMENT, |
| 176 STATE_DONE | 177 STATE_DONE |
| 177 }; | 178 }; |
| 178 | 179 |
| 179 // Calculate the begin time for the deletion range specified by |time_period|. | 180 // Calculate the begin time for the deletion range specified by |time_period|. |
| 180 static base::Time CalculateBeginDeleteTime(TimePeriod time_period); | 181 static base::Time CalculateBeginDeleteTime(TimePeriod time_period); |
| 181 | 182 |
| 182 // Setter for |is_removing_|; DCHECKs that we can only start removing if we're | 183 // Setter for |is_removing_|; DCHECKs that we can only start removing if we're |
| 183 // not already removing, and vice-versa. | 184 // not already removing, and vice-versa. |
| 184 static void set_removing(bool is_removing); | 185 static void set_removing(bool is_removing); |
| 185 | 186 |
| (...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 381 | 382 |
| 382 ObserverList<Observer> observer_list_; | 383 ObserverList<Observer> observer_list_; |
| 383 | 384 |
| 384 // Used if we need to clear history. | 385 // Used if we need to clear history. |
| 385 CancelableRequestConsumer request_consumer_; | 386 CancelableRequestConsumer request_consumer_; |
| 386 | 387 |
| 387 DISALLOW_COPY_AND_ASSIGN(BrowsingDataRemover); | 388 DISALLOW_COPY_AND_ASSIGN(BrowsingDataRemover); |
| 388 }; | 389 }; |
| 389 | 390 |
| 390 #endif // CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_REMOVER_H_ | 391 #endif // CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_REMOVER_H_ |
| OLD | NEW |