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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 void RemoveObserver(Observer* observer); | 121 void RemoveObserver(Observer* observer); |
122 | 122 |
123 // Called when history deletion is done. | 123 // Called when history deletion is done. |
124 void OnHistoryDeletionDone(); | 124 void OnHistoryDeletionDone(); |
125 | 125 |
126 static bool is_removing() { return removing_; } | 126 static bool is_removing() { return removing_; } |
127 | 127 |
128 private: | 128 private: |
129 // The clear API needs to be able to toggle removing_ in order to test that | 129 // The clear API needs to be able to toggle removing_ in order to test that |
130 // only one BrowsingDataRemover instance can be called at a time. | 130 // only one BrowsingDataRemover instance can be called at a time. |
131 FRIEND_TEST_ALL_PREFIXES(ExtensionApiTest, ClearOneAtATime); | 131 FRIEND_TEST_ALL_PREFIXES(ExtensionClearTest, OneAtATime); |
132 | 132 |
133 enum CacheState { | 133 enum CacheState { |
134 STATE_NONE, | 134 STATE_NONE, |
135 STATE_CREATE_MAIN, | 135 STATE_CREATE_MAIN, |
136 STATE_CREATE_MEDIA, | 136 STATE_CREATE_MEDIA, |
137 STATE_DELETE_MAIN, | 137 STATE_DELETE_MAIN, |
138 STATE_DELETE_MEDIA, | 138 STATE_DELETE_MEDIA, |
139 STATE_DONE | 139 STATE_DONE |
140 }; | 140 }; |
141 | 141 |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
277 | 277 |
278 ObserverList<Observer> observer_list_; | 278 ObserverList<Observer> observer_list_; |
279 | 279 |
280 // Used if we need to clear history. | 280 // Used if we need to clear history. |
281 CancelableRequestConsumer request_consumer_; | 281 CancelableRequestConsumer request_consumer_; |
282 | 282 |
283 DISALLOW_COPY_AND_ASSIGN(BrowsingDataRemover); | 283 DISALLOW_COPY_AND_ASSIGN(BrowsingDataRemover); |
284 }; | 284 }; |
285 | 285 |
286 #endif // CHROME_BROWSER_BROWSING_DATA_REMOVER_H_ | 286 #endif // CHROME_BROWSER_BROWSING_DATA_REMOVER_H_ |
OLD | NEW |