OLD | NEW |
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/browsing_data_counter_factory.h" | 5 #include "chrome/browser/browsing_data/browsing_data_counter_factory.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
9 #include "base/memory/ptr_util.h" | 9 #include "base/memory/ptr_util.h" |
10 #include "chrome/browser/browsing_data/browsing_data_counter_utils.h" | 10 #include "chrome/browser/browsing_data/browsing_data_counter_utils.h" |
11 #include "chrome/browser/browsing_data/cache_counter.h" | 11 #include "chrome/browser/browsing_data/cache_counter.h" |
12 #include "chrome/browser/browsing_data/downloads_counter.h" | 12 #include "chrome/browser/browsing_data/downloads_counter.h" |
13 #include "chrome/browser/browsing_data/media_licenses_counter.h" | 13 #include "chrome/browser/browsing_data/media_licenses_counter.h" |
14 #include "chrome/browser/history/history_service_factory.h" | 14 #include "chrome/browser/history/history_service_factory.h" |
15 #include "chrome/browser/history/web_history_service_factory.h" | 15 #include "chrome/browser/history/web_history_service_factory.h" |
16 #include "chrome/browser/password_manager/password_store_factory.h" | 16 #include "chrome/browser/password_manager/password_store_factory.h" |
17 #include "chrome/browser/profiles/profile.h" | 17 #include "chrome/browser/profiles/profile.h" |
18 #include "chrome/browser/sync/profile_sync_service_factory.h" | 18 #include "chrome/browser/sync/profile_sync_service_factory.h" |
19 #include "chrome/browser/web_data_service_factory.h" | 19 #include "chrome/browser/web_data_service_factory.h" |
20 #include "components/browser_sync/browser/profile_sync_service.h" | 20 #include "components/browser_sync/profile_sync_service.h" |
21 #include "components/browsing_data/core/counters/autofill_counter.h" | 21 #include "components/browsing_data/core/counters/autofill_counter.h" |
22 #include "components/browsing_data/core/counters/browsing_data_counter.h" | 22 #include "components/browsing_data/core/counters/browsing_data_counter.h" |
23 #include "components/browsing_data/core/counters/history_counter.h" | 23 #include "components/browsing_data/core/counters/history_counter.h" |
24 #include "components/browsing_data/core/counters/passwords_counter.h" | 24 #include "components/browsing_data/core/counters/passwords_counter.h" |
25 #include "components/browsing_data/core/pref_names.h" | 25 #include "components/browsing_data/core/pref_names.h" |
26 #include "components/history/core/browser/web_history_service.h" | 26 #include "components/history/core/browser/web_history_service.h" |
27 #include "components/password_manager/core/browser/password_store.h" | 27 #include "components/password_manager/core/browser/password_store.h" |
28 | 28 |
29 #if defined(ENABLE_EXTENSIONS) | 29 #if defined(ENABLE_EXTENSIONS) |
30 #include "chrome/browser/browsing_data/hosted_apps_counter.h" | 30 #include "chrome/browser/browsing_data/hosted_apps_counter.h" |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 if (pref_name == browsing_data::prefs::kDeleteMediaLicenses) | 75 if (pref_name == browsing_data::prefs::kDeleteMediaLicenses) |
76 return base::MakeUnique<MediaLicensesCounter>(profile); | 76 return base::MakeUnique<MediaLicensesCounter>(profile); |
77 | 77 |
78 #if defined(ENABLE_EXTENSIONS) | 78 #if defined(ENABLE_EXTENSIONS) |
79 if (pref_name == browsing_data::prefs::kDeleteHostedAppsData) | 79 if (pref_name == browsing_data::prefs::kDeleteHostedAppsData) |
80 return base::MakeUnique<HostedAppsCounter>(profile); | 80 return base::MakeUnique<HostedAppsCounter>(profile); |
81 #endif | 81 #endif |
82 | 82 |
83 return nullptr; | 83 return nullptr; |
84 } | 84 } |
OLD | NEW |