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

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

Issue 2657453006: Move BrowsingDataFilterBuilder[Impl] to content/ (Closed)
Patch Set: Rebased Created 3 years, 10 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/chrome_browsing_data_remover_delegate.h" 5 #include "chrome/browser/browsing_data/chrome_browsing_data_remover_delegate.h"
6 6
7 #include <set> 7 #include <set>
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 10
11 #include "base/callback.h" 11 #include "base/callback.h"
12 #include "chrome/browser/autofill/personal_data_manager_factory.h" 12 #include "chrome/browser/autofill/personal_data_manager_factory.h"
13 #include "chrome/browser/bookmarks/bookmark_model_factory.h" 13 #include "chrome/browser/bookmarks/bookmark_model_factory.h"
14 #include "chrome/browser/browser_process.h" 14 #include "chrome/browser/browser_process.h"
15 #include "chrome/browser/browsing_data/browsing_data_filter_builder.h"
16 #include "chrome/browser/browsing_data/browsing_data_helper.h" 15 #include "chrome/browser/browsing_data/browsing_data_helper.h"
17 #include "chrome/browser/chrome_notification_types.h" 16 #include "chrome/browser/chrome_notification_types.h"
18 #include "chrome/browser/content_settings/host_content_settings_map_factory.h" 17 #include "chrome/browser/content_settings/host_content_settings_map_factory.h"
19 #include "chrome/browser/domain_reliability/service_factory.h" 18 #include "chrome/browser/domain_reliability/service_factory.h"
20 #include "chrome/browser/download/download_prefs.h" 19 #include "chrome/browser/download/download_prefs.h"
21 #include "chrome/browser/history/history_service_factory.h" 20 #include "chrome/browser/history/history_service_factory.h"
22 #include "chrome/browser/history/web_history_service_factory.h" 21 #include "chrome/browser/history/web_history_service_factory.h"
23 #include "chrome/browser/io_thread.h" 22 #include "chrome/browser/io_thread.h"
24 #include "chrome/browser/media/media_device_id_salt.h" 23 #include "chrome/browser/media/media_device_id_salt.h"
25 #include "chrome/browser/net/nqe/ui_network_quality_estimator_service.h" 24 #include "chrome/browser/net/nqe/ui_network_quality_estimator_service.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 #include "components/nacl/browser/pnacl_host.h" 57 #include "components/nacl/browser/pnacl_host.h"
59 #include "components/ntp_snippets/bookmarks/bookmark_last_visit_utils.h" 58 #include "components/ntp_snippets/bookmarks/bookmark_last_visit_utils.h"
60 #include "components/ntp_snippets/content_suggestions_service.h" 59 #include "components/ntp_snippets/content_suggestions_service.h"
61 #include "components/omnibox/browser/omnibox_pref_names.h" 60 #include "components/omnibox/browser/omnibox_pref_names.h"
62 #include "components/password_manager/core/browser/password_store.h" 61 #include "components/password_manager/core/browser/password_store.h"
63 #include "components/prefs/pref_service.h" 62 #include "components/prefs/pref_service.h"
64 #include "components/previews/core/previews_ui_service.h" 63 #include "components/previews/core/previews_ui_service.h"
65 #include "components/search_engines/template_url_service.h" 64 #include "components/search_engines/template_url_service.h"
66 #include "components/sessions/core/tab_restore_service.h" 65 #include "components/sessions/core/tab_restore_service.h"
67 #include "components/translate/core/browser/language_model.h" 66 #include "components/translate/core/browser/language_model.h"
67 #include "content/public/browser/browsing_data_filter_builder.h"
68 #include "content/public/browser/plugin_data_remover.h" 68 #include "content/public/browser/plugin_data_remover.h"
69 #include "content/public/browser/ssl_host_state_delegate.h" 69 #include "content/public/browser/ssl_host_state_delegate.h"
70 #include "content/public/browser/storage_partition.h" 70 #include "content/public/browser/storage_partition.h"
71 #include "content/public/browser/user_metrics.h" 71 #include "content/public/browser/user_metrics.h"
72 #include "net/cookies/cookie_store.h" 72 #include "net/cookies/cookie_store.h"
73 #include "net/http/http_transaction_factory.h" 73 #include "net/http/http_transaction_factory.h"
74 #include "net/url_request/url_request_context.h" 74 #include "net/url_request/url_request_context.h"
75 #include "net/url_request/url_request_context_getter.h" 75 #include "net/url_request/url_request_context_getter.h"
76 76
77 #if defined(OS_ANDROID) 77 #if defined(OS_ANDROID)
(...skipping 29 matching lines...) Expand all
107 #include "chrome/browser/media/webrtc/webrtc_log_util.h" 107 #include "chrome/browser/media/webrtc/webrtc_log_util.h"
108 #endif 108 #endif
109 109
110 #if BUILDFLAG(ENABLE_PLUGINS) 110 #if BUILDFLAG(ENABLE_PLUGINS)
111 #include "chrome/browser/browsing_data/browsing_data_flash_lso_helper.h" 111 #include "chrome/browser/browsing_data/browsing_data_flash_lso_helper.h"
112 #endif 112 #endif
113 113
114 using base::UserMetricsAction; 114 using base::UserMetricsAction;
115 using content::BrowserContext; 115 using content::BrowserContext;
116 using content::BrowserThread; 116 using content::BrowserThread;
117 using content::BrowsingDataFilterBuilder;
117 118
118 namespace { 119 namespace {
119 120
120 void UIThreadTrampolineHelper(const base::Closure& callback) { 121 void UIThreadTrampolineHelper(const base::Closure& callback) {
121 BrowserThread::PostTask(BrowserThread::UI, FROM_HERE, callback); 122 BrowserThread::PostTask(BrowserThread::UI, FROM_HERE, callback);
122 } 123 }
123 124
124 // Convenience method to create a callback that can be run on any thread and 125 // Convenience method to create a callback that can be run on any thread and
125 // will post the given |callback| back to the UI thread. 126 // will post the given |callback| back to the UI thread.
126 base::Closure UIThreadTrampoline(const base::Closure& callback) { 127 base::Closure UIThreadTrampoline(const base::Closure& callback) {
(...skipping 922 matching lines...) Expand 10 before | Expand all | Expand 10 after
1049 } 1050 }
1050 1051
1051 void ChromeBrowsingDataRemoverDelegate:: 1052 void ChromeBrowsingDataRemoverDelegate::
1052 OnDeauthorizeFlashContentLicensesCompleted( 1053 OnDeauthorizeFlashContentLicensesCompleted(
1053 uint32_t request_id, 1054 uint32_t request_id,
1054 bool /* success */) { 1055 bool /* success */) {
1055 DCHECK_EQ(request_id, deauthorize_flash_content_licenses_request_id_); 1056 DCHECK_EQ(request_id, deauthorize_flash_content_licenses_request_id_);
1056 clear_flash_content_licenses_.GetCompletionCallback().Run(); 1057 clear_flash_content_licenses_.GetCompletionCallback().Run();
1057 } 1058 }
1058 #endif 1059 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698