Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(667)

Side by Side Diff: chrome/browser/browsing_data/browsing_data_remover.cc

Issue 1049423002: Move StoragePartitionHttpCacheRemover to browsing_data/ components. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: one more dispcrepancy in build file fixed Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 #include <string> 9 #include <string>
10 10
11 #include "base/bind.h" 11 #include "base/bind.h"
12 #include "base/bind_helpers.h" 12 #include "base/bind_helpers.h"
13 #include "base/callback.h" 13 #include "base/callback.h"
14 #include "base/logging.h" 14 #include "base/logging.h"
15 #include "base/prefs/pref_service.h" 15 #include "base/prefs/pref_service.h"
16 #include "chrome/browser/autofill/personal_data_manager_factory.h" 16 #include "chrome/browser/autofill/personal_data_manager_factory.h"
17 #include "chrome/browser/browser_process.h" 17 #include "chrome/browser/browser_process.h"
18 #include "chrome/browser/browsing_data/browsing_data_helper.h" 18 #include "chrome/browser/browsing_data/browsing_data_helper.h"
19 #include "chrome/browser/browsing_data/storage_partition_http_cache_data_remover .h"
20 #include "chrome/browser/chrome_notification_types.h" 19 #include "chrome/browser/chrome_notification_types.h"
21 #include "chrome/browser/domain_reliability/service_factory.h" 20 #include "chrome/browser/domain_reliability/service_factory.h"
22 #include "chrome/browser/download/download_prefs.h" 21 #include "chrome/browser/download/download_prefs.h"
23 #include "chrome/browser/download/download_service_factory.h" 22 #include "chrome/browser/download/download_service_factory.h"
24 #include "chrome/browser/history/history_service_factory.h" 23 #include "chrome/browser/history/history_service_factory.h"
25 #include "chrome/browser/history/web_history_service_factory.h" 24 #include "chrome/browser/history/web_history_service_factory.h"
26 #include "chrome/browser/io_thread.h" 25 #include "chrome/browser/io_thread.h"
27 #include "chrome/browser/media/media_device_id_salt.h" 26 #include "chrome/browser/media/media_device_id_salt.h"
28 #include "chrome/browser/net/predictor.h" 27 #include "chrome/browser/net/predictor.h"
29 #include "chrome/browser/password_manager/password_store_factory.h" 28 #include "chrome/browser/password_manager/password_store_factory.h"
30 #include "chrome/browser/predictors/logged_in_predictor_table.h" 29 #include "chrome/browser/predictors/logged_in_predictor_table.h"
31 #include "chrome/browser/predictors/predictor_database.h" 30 #include "chrome/browser/predictors/predictor_database.h"
32 #include "chrome/browser/predictors/predictor_database_factory.h" 31 #include "chrome/browser/predictors/predictor_database_factory.h"
33 #include "chrome/browser/prerender/prerender_manager.h" 32 #include "chrome/browser/prerender/prerender_manager.h"
34 #include "chrome/browser/prerender/prerender_manager_factory.h" 33 #include "chrome/browser/prerender/prerender_manager_factory.h"
35 #include "chrome/browser/profiles/profile.h" 34 #include "chrome/browser/profiles/profile.h"
36 #include "chrome/browser/safe_browsing/safe_browsing_service.h" 35 #include "chrome/browser/safe_browsing/safe_browsing_service.h"
37 #include "chrome/browser/search_engines/template_url_service_factory.h" 36 #include "chrome/browser/search_engines/template_url_service_factory.h"
38 #include "chrome/browser/sessions/session_service.h" 37 #include "chrome/browser/sessions/session_service.h"
39 #include "chrome/browser/sessions/session_service_factory.h" 38 #include "chrome/browser/sessions/session_service_factory.h"
40 #include "chrome/browser/sessions/tab_restore_service.h" 39 #include "chrome/browser/sessions/tab_restore_service.h"
41 #include "chrome/browser/sessions/tab_restore_service_factory.h" 40 #include "chrome/browser/sessions/tab_restore_service_factory.h"
42 #include "chrome/browser/webdata/web_data_service_factory.h" 41 #include "chrome/browser/webdata/web_data_service_factory.h"
43 #include "chrome/common/pref_names.h" 42 #include "chrome/common/pref_names.h"
44 #include "chrome/common/url_constants.h" 43 #include "chrome/common/url_constants.h"
45 #include "components/autofill/core/browser/personal_data_manager.h" 44 #include "components/autofill/core/browser/personal_data_manager.h"
46 #include "components/autofill/core/browser/webdata/autofill_webdata_service.h" 45 #include "components/autofill/core/browser/webdata/autofill_webdata_service.h"
46 #include "components/browsing_data/storage_partition_http_cache_data_remover.h"
47 #include "components/content_settings/core/browser/host_content_settings_map.h" 47 #include "components/content_settings/core/browser/host_content_settings_map.h"
48 #include "components/domain_reliability/service.h" 48 #include "components/domain_reliability/service.h"
49 #include "components/history/core/browser/history_service.h" 49 #include "components/history/core/browser/history_service.h"
50 #include "components/nacl/browser/nacl_browser.h" 50 #include "components/nacl/browser/nacl_browser.h"
51 #include "components/nacl/browser/pnacl_host.h" 51 #include "components/nacl/browser/pnacl_host.h"
52 #include "components/password_manager/core/browser/password_store.h" 52 #include "components/password_manager/core/browser/password_store.h"
53 #include "components/power/origin_power_map.h" 53 #include "components/power/origin_power_map.h"
54 #include "components/power/origin_power_map_factory.h" 54 #include "components/power/origin_power_map_factory.h"
55 #include "components/search_engines/template_url_service.h" 55 #include "components/search_engines/template_url_service.h"
56 #include "components/web_cache/browser/web_cache_manager.h" 56 #include "components/web_cache/browser/web_cache_manager.h"
(...skipping 545 matching lines...) Expand 10 before | Expand all | Expand 10 after
602 } 602 }
603 603
604 if (remove_mask & REMOVE_CACHE) { 604 if (remove_mask & REMOVE_CACHE) {
605 // Tell the renderers to clear their cache. 605 // Tell the renderers to clear their cache.
606 web_cache::WebCacheManager::GetInstance()->ClearCache(); 606 web_cache::WebCacheManager::GetInstance()->ClearCache();
607 607
608 content::RecordAction(UserMetricsAction("ClearBrowsingData_Cache")); 608 content::RecordAction(UserMetricsAction("ClearBrowsingData_Cache"));
609 609
610 waiting_for_clear_cache_ = true; 610 waiting_for_clear_cache_ = true;
611 // StoragePartitionHttpCacheDataRemover deletes itself when it is done. 611 // StoragePartitionHttpCacheDataRemover deletes itself when it is done.
612 StoragePartitionHttpCacheDataRemover::CreateForRange( 612 browsing_data::StoragePartitionHttpCacheDataRemover::CreateForRange(
613 BrowserContext::GetDefaultStoragePartition(profile_), delete_begin_, 613 BrowserContext::GetDefaultStoragePartition(profile_), delete_begin_,
614 delete_end_) 614 delete_end_)
615 ->Remove(base::Bind(&BrowsingDataRemover::ClearedCache, 615 ->Remove(base::Bind(&BrowsingDataRemover::ClearedCache,
616 base::Unretained(this))); 616 base::Unretained(this)));
617 617
618 #if !defined(DISABLE_NACL) 618 #if !defined(DISABLE_NACL)
619 waiting_for_clear_nacl_cache_ = true; 619 waiting_for_clear_nacl_cache_ = true;
620 620
621 BrowserThread::PostTask( 621 BrowserThread::PostTask(
622 BrowserThread::IO, FROM_HERE, 622 BrowserThread::IO, FROM_HERE,
(...skipping 510 matching lines...) Expand 10 before | Expand all | Expand 10 after
1133 waiting_for_clear_domain_reliability_monitor_ = false; 1133 waiting_for_clear_domain_reliability_monitor_ = false;
1134 NotifyAndDeleteIfDone(); 1134 NotifyAndDeleteIfDone();
1135 } 1135 }
1136 1136
1137 // static 1137 // static
1138 BrowsingDataRemover::CallbackSubscription 1138 BrowsingDataRemover::CallbackSubscription
1139 BrowsingDataRemover::RegisterOnBrowsingDataRemovedCallback( 1139 BrowsingDataRemover::RegisterOnBrowsingDataRemovedCallback(
1140 const BrowsingDataRemover::Callback& callback) { 1140 const BrowsingDataRemover::Callback& callback) {
1141 return GetOnBrowsingDataRemovedCallbacks()->Add(callback); 1141 return GetOnBrowsingDataRemovedCallbacks()->Add(callback);
1142 } 1142 }
OLDNEW
« no previous file with comments | « chrome/browser/DEPS ('k') | chrome/browser/browsing_data/storage_partition_http_cache_data_remover.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698