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 <vector> | 9 #include <set> |
10 | 10 |
11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
12 #include "base/observer_list.h" | 12 #include "base/observer_list.h" |
13 #include "base/synchronization/waitable_event_watcher.h" | 13 #include "base/synchronization/waitable_event_watcher.h" |
14 #include "base/time.h" | 14 #include "base/time.h" |
15 #include "chrome/browser/prefs/pref_member.h" | 15 #include "chrome/browser/prefs/pref_member.h" |
16 #include "content/browser/appcache/chrome_appcache_service.h" | 16 #include "content/browser/appcache/chrome_appcache_service.h" |
17 #include "content/browser/cancelable_request.h" | 17 #include "content/browser/cancelable_request.h" |
18 #include "content/public/browser/notification_observer.h" | 18 #include "content/public/browser/notification_observer.h" |
19 #include "content/public/browser/notification_registrar.h" | 19 #include "content/public/browser/notification_registrar.h" |
20 #include "webkit/quota/quota_types.h" | 20 #include "webkit/quota/quota_types.h" |
21 | 21 |
22 class ExtensionSpecialStoragePolicy; | 22 class ExtensionSpecialStoragePolicy; |
23 class IOThread; | 23 class IOThread; |
24 class PluginDataRemover; | 24 class PluginDataRemover; |
25 class Profile; | 25 class Profile; |
26 | 26 |
27 namespace disk_cache { | 27 namespace disk_cache { |
28 class Backend; | 28 class Backend; |
29 } | 29 } |
30 | 30 |
31 namespace net { | 31 namespace net { |
32 class URLRequestContextGetter; | 32 class URLRequestContextGetter; |
33 } | 33 } |
34 | 34 |
35 namespace webkit_database { | |
36 class DatabaseTracker; | |
37 } | |
38 | |
39 namespace quota { | 35 namespace quota { |
40 class QuotaManager; | 36 class QuotaManager; |
41 } | 37 } |
42 | 38 |
43 // BrowsingDataRemover is responsible for removing data related to browsing: | 39 // BrowsingDataRemover is responsible for removing data related to browsing: |
44 // visits in url database, downloads, cookies ... | 40 // visits in url database, downloads, cookies ... |
45 | 41 |
46 class BrowsingDataRemover : public content::NotificationObserver, | 42 class BrowsingDataRemover : public content::NotificationObserver, |
47 public base::WaitableEventWatcher::Delegate { | 43 public base::WaitableEventWatcher::Delegate { |
48 public: | 44 public: |
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
257 | 253 |
258 ObserverList<Observer> observer_list_; | 254 ObserverList<Observer> observer_list_; |
259 | 255 |
260 // Used if we need to clear history. | 256 // Used if we need to clear history. |
261 CancelableRequestConsumer request_consumer_; | 257 CancelableRequestConsumer request_consumer_; |
262 | 258 |
263 DISALLOW_COPY_AND_ASSIGN(BrowsingDataRemover); | 259 DISALLOW_COPY_AND_ASSIGN(BrowsingDataRemover); |
264 }; | 260 }; |
265 | 261 |
266 #endif // CHROME_BROWSER_BROWSING_DATA_REMOVER_H_ | 262 #endif // CHROME_BROWSER_BROWSING_DATA_REMOVER_H_ |
OLD | NEW |