| 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 #include "chrome/browser/browsing_data/browsing_data_remover.h" | 5 #include "chrome/browser/browsing_data/browsing_data_remover.h" |
| 6 | 6 |
| 7 #include <map> | 7 #include <map> |
| 8 #include <set> | 8 #include <set> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 #include "chrome/browser/prerender/prerender_manager_factory.h" | 34 #include "chrome/browser/prerender/prerender_manager_factory.h" |
| 35 #include "chrome/browser/profiles/profile.h" | 35 #include "chrome/browser/profiles/profile.h" |
| 36 #include "chrome/browser/renderer_host/web_cache_manager.h" | 36 #include "chrome/browser/renderer_host/web_cache_manager.h" |
| 37 #include "chrome/browser/safe_browsing/safe_browsing_service.h" | 37 #include "chrome/browser/safe_browsing/safe_browsing_service.h" |
| 38 #include "chrome/browser/search_engines/template_url_service.h" | 38 #include "chrome/browser/search_engines/template_url_service.h" |
| 39 #include "chrome/browser/search_engines/template_url_service_factory.h" | 39 #include "chrome/browser/search_engines/template_url_service_factory.h" |
| 40 #include "chrome/browser/sessions/session_service.h" | 40 #include "chrome/browser/sessions/session_service.h" |
| 41 #include "chrome/browser/sessions/session_service_factory.h" | 41 #include "chrome/browser/sessions/session_service_factory.h" |
| 42 #include "chrome/browser/sessions/tab_restore_service.h" | 42 #include "chrome/browser/sessions/tab_restore_service.h" |
| 43 #include "chrome/browser/sessions/tab_restore_service_factory.h" | 43 #include "chrome/browser/sessions/tab_restore_service_factory.h" |
| 44 #include "chrome/browser/webdata/autofill_web_data_service.h" | |
| 45 #include "chrome/common/chrome_notification_types.h" | 44 #include "chrome/common/chrome_notification_types.h" |
| 46 #include "chrome/common/pref_names.h" | 45 #include "chrome/common/pref_names.h" |
| 47 #include "chrome/common/url_constants.h" | 46 #include "chrome/common/url_constants.h" |
| 48 #include "components/autofill/browser/personal_data_manager.h" | 47 #include "components/autofill/browser/personal_data_manager.h" |
| 48 #include "components/webdata/autofill/autofill_webdata_service.h" |
| 49 #include "content/public/browser/browser_thread.h" | 49 #include "content/public/browser/browser_thread.h" |
| 50 #include "content/public/browser/dom_storage_context.h" | 50 #include "content/public/browser/dom_storage_context.h" |
| 51 #include "content/public/browser/download_manager.h" | 51 #include "content/public/browser/download_manager.h" |
| 52 #include "content/public/browser/notification_service.h" | 52 #include "content/public/browser/notification_service.h" |
| 53 #include "content/public/browser/plugin_data_remover.h" | 53 #include "content/public/browser/plugin_data_remover.h" |
| 54 #include "content/public/browser/storage_partition.h" | 54 #include "content/public/browser/storage_partition.h" |
| 55 #include "content/public/browser/user_metrics.h" | 55 #include "content/public/browser/user_metrics.h" |
| 56 #include "net/base/net_errors.h" | 56 #include "net/base/net_errors.h" |
| 57 #include "net/cookies/cookie_store.h" | 57 #include "net/cookies/cookie_store.h" |
| 58 #include "net/disk_cache/disk_cache.h" | 58 #include "net/disk_cache/disk_cache.h" |
| (...skipping 941 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1000 BrowserThread::UI, FROM_HERE, | 1000 BrowserThread::UI, FROM_HERE, |
| 1001 base::Bind(&BrowsingDataRemover::OnClearedFormData, | 1001 base::Bind(&BrowsingDataRemover::OnClearedFormData, |
| 1002 base::Unretained(this))); | 1002 base::Unretained(this))); |
| 1003 } | 1003 } |
| 1004 | 1004 |
| 1005 void BrowsingDataRemover::OnClearedFormData() { | 1005 void BrowsingDataRemover::OnClearedFormData() { |
| 1006 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 1006 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
| 1007 waiting_for_clear_form_ = false; | 1007 waiting_for_clear_form_ = false; |
| 1008 NotifyAndDeleteIfDone(); | 1008 NotifyAndDeleteIfDone(); |
| 1009 } | 1009 } |
| OLD | NEW |