| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 void RemoveObserver(Observer* observer); | 109 void RemoveObserver(Observer* observer); |
| 110 | 110 |
| 111 // Called when history deletion is done. | 111 // Called when history deletion is done. |
| 112 void OnHistoryDeletionDone(); | 112 void OnHistoryDeletionDone(); |
| 113 | 113 |
| 114 static bool is_removing() { return removing_; } | 114 static bool is_removing() { return removing_; } |
| 115 | 115 |
| 116 private: | 116 private: |
| 117 // The clear API needs to be able to toggle removing_ in order to test that | 117 // The clear API needs to be able to toggle removing_ in order to test that |
| 118 // only one BrowsingDataRemover instance can be called at a time. | 118 // only one BrowsingDataRemover instance can be called at a time. |
| 119 FRIEND_TEST_ALL_PREFIXES(ExtensionApiTest, ClearOneAtATime); | 119 FRIEND_TEST_ALL_PREFIXES(ExtensionClearTest, OneAtATime); |
| 120 | 120 |
| 121 enum CacheState { | 121 enum CacheState { |
| 122 STATE_NONE, | 122 STATE_NONE, |
| 123 STATE_CREATE_MAIN, | 123 STATE_CREATE_MAIN, |
| 124 STATE_CREATE_MEDIA, | 124 STATE_CREATE_MEDIA, |
| 125 STATE_DELETE_MAIN, | 125 STATE_DELETE_MAIN, |
| 126 STATE_DELETE_MEDIA, | 126 STATE_DELETE_MEDIA, |
| 127 STATE_DONE | 127 STATE_DONE |
| 128 }; | 128 }; |
| 129 | 129 |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 265 | 265 |
| 266 ObserverList<Observer> observer_list_; | 266 ObserverList<Observer> observer_list_; |
| 267 | 267 |
| 268 // Used if we need to clear history. | 268 // Used if we need to clear history. |
| 269 CancelableRequestConsumer request_consumer_; | 269 CancelableRequestConsumer request_consumer_; |
| 270 | 270 |
| 271 DISALLOW_COPY_AND_ASSIGN(BrowsingDataRemover); | 271 DISALLOW_COPY_AND_ASSIGN(BrowsingDataRemover); |
| 272 }; | 272 }; |
| 273 | 273 |
| 274 #endif // CHROME_BROWSER_BROWSING_DATA_REMOVER_H_ | 274 #endif // CHROME_BROWSER_BROWSING_DATA_REMOVER_H_ |
| OLD | NEW |