| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/autofill_counter.h" | 5 #include "chrome/browser/browsing_data/autofill_counter.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <utility> | 8 #include <utility> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/memory/scoped_vector.h" | 11 #include "base/memory/scoped_vector.h" |
| 12 #include "chrome/browser/profiles/profile.h" | 12 #include "chrome/browser/profiles/profile.h" |
| 13 #include "chrome/browser/web_data_service_factory.h" | 13 #include "chrome/browser/web_data_service_factory.h" |
| 14 #include "chrome/common/pref_names.h" | |
| 15 #include "components/autofill/core/browser/autofill_profile.h" | 14 #include "components/autofill/core/browser/autofill_profile.h" |
| 16 #include "components/autofill/core/browser/credit_card.h" | 15 #include "components/autofill/core/browser/credit_card.h" |
| 17 #include "components/autofill/core/browser/webdata/autofill_webdata_service.h" | 16 #include "components/autofill/core/browser/webdata/autofill_webdata_service.h" |
| 17 #include "components/browsing_data/pref_names.h" |
| 18 | 18 |
| 19 AutofillCounter::AutofillCounter(Profile* profile) | 19 AutofillCounter::AutofillCounter(Profile* profile) |
| 20 : BrowsingDataCounter(prefs::kDeleteFormData), | 20 : BrowsingDataCounter(browsing_data::prefs::kDeleteFormData), |
| 21 profile_(profile), | 21 profile_(profile), |
| 22 web_data_service_(nullptr), | 22 web_data_service_(nullptr), |
| 23 suggestions_query_(0), | 23 suggestions_query_(0), |
| 24 credit_cards_query_(0), | 24 credit_cards_query_(0), |
| 25 addresses_query_(0), | 25 addresses_query_(0), |
| 26 num_suggestions_(0), | 26 num_suggestions_(0), |
| 27 num_credit_cards_(0), | 27 num_credit_cards_(0), |
| 28 num_addresses_(0) {} | 28 num_addresses_(0) {} |
| 29 | 29 |
| 30 AutofillCounter::~AutofillCounter() { | 30 AutofillCounter::~AutofillCounter() { |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 ResultInt num_suggestions, | 162 ResultInt num_suggestions, |
| 163 ResultInt num_credit_cards, | 163 ResultInt num_credit_cards, |
| 164 ResultInt num_addresses) | 164 ResultInt num_addresses) |
| 165 : FinishedResult(source, num_suggestions), | 165 : FinishedResult(source, num_suggestions), |
| 166 num_credit_cards_(num_credit_cards), | 166 num_credit_cards_(num_credit_cards), |
| 167 num_addresses_(num_addresses) { | 167 num_addresses_(num_addresses) { |
| 168 } | 168 } |
| 169 | 169 |
| 170 AutofillCounter::AutofillResult::~AutofillResult() { | 170 AutofillCounter::AutofillResult::~AutofillResult() { |
| 171 } | 171 } |
| OLD | NEW |