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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 // a friend. | 127 // a friend. |
128 friend class DeleteTask<BrowsingDataRemover>; | 128 friend class DeleteTask<BrowsingDataRemover>; |
129 virtual ~BrowsingDataRemover(); | 129 virtual ~BrowsingDataRemover(); |
130 | 130 |
131 // content::NotificationObserver method. Callback when TemplateURLService has | 131 // content::NotificationObserver method. Callback when TemplateURLService has |
132 // finished loading. Deletes the entries from the model, and if we're not | 132 // finished loading. Deletes the entries from the model, and if we're not |
133 // waiting on anything else notifies observers and deletes this | 133 // waiting on anything else notifies observers and deletes this |
134 // BrowsingDataRemover. | 134 // BrowsingDataRemover. |
135 virtual void Observe(int type, | 135 virtual void Observe(int type, |
136 const content::NotificationSource& source, | 136 const content::NotificationSource& source, |
137 const content::NotificationDetails& details); | 137 const content::NotificationDetails& details) OVERRIDE; |
138 | 138 |
139 // WaitableEventWatcher implementation. | 139 // WaitableEventWatcher implementation. |
140 // Called when plug-in data has been cleared. Invokes NotifyAndDeleteIfDone. | 140 // Called when plug-in data has been cleared. Invokes NotifyAndDeleteIfDone. |
141 virtual void OnWaitableEventSignaled(base::WaitableEvent* waitable_event); | 141 virtual void OnWaitableEventSignaled( |
| 142 base::WaitableEvent* waitable_event) OVERRIDE; |
142 | 143 |
143 // If we're not waiting on anything, notifies observers and deletes this | 144 // If we're not waiting on anything, notifies observers and deletes this |
144 // object. | 145 // object. |
145 void NotifyAndDeleteIfDone(); | 146 void NotifyAndDeleteIfDone(); |
146 | 147 |
147 // Callback when the network history has been deleted. Invokes | 148 // Callback when the network history has been deleted. Invokes |
148 // NotifyAndDeleteIfDone. | 149 // NotifyAndDeleteIfDone. |
149 void ClearedNetworkHistory(); | 150 void ClearedNetworkHistory(); |
150 | 151 |
151 // Invoked on the IO thread to clear the HostCache, speculative data about | 152 // Invoked on the IO thread to clear the HostCache, speculative data about |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
256 | 257 |
257 ObserverList<Observer> observer_list_; | 258 ObserverList<Observer> observer_list_; |
258 | 259 |
259 // Used if we need to clear history. | 260 // Used if we need to clear history. |
260 CancelableRequestConsumer request_consumer_; | 261 CancelableRequestConsumer request_consumer_; |
261 | 262 |
262 DISALLOW_COPY_AND_ASSIGN(BrowsingDataRemover); | 263 DISALLOW_COPY_AND_ASSIGN(BrowsingDataRemover); |
263 }; | 264 }; |
264 | 265 |
265 #endif // CHROME_BROWSER_BROWSING_DATA_REMOVER_H_ | 266 #endif // CHROME_BROWSER_BROWSING_DATA_REMOVER_H_ |
OLD | NEW |