OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "components/autofill/core/browser/autocomplete_history_manager.h" | 5 #include "components/autofill/core/browser/autocomplete_history_manager.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/prefs/pref_service.h" | 9 #include "base/prefs/pref_service.h" |
10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
11 #include "base/strings/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
| 12 #include "components/autofill/content/common/autofill_messages.h" |
12 #include "components/autofill/core/browser/autofill_driver.h" | 13 #include "components/autofill/core/browser/autofill_driver.h" |
13 #include "components/autofill/core/browser/autofill_external_delegate.h" | 14 #include "components/autofill/core/browser/autofill_external_delegate.h" |
14 #include "components/autofill/core/browser/autofill_manager_delegate.h" | 15 #include "components/autofill/core/browser/autofill_manager_delegate.h" |
15 #include "components/autofill/core/browser/validation.h" | 16 #include "components/autofill/core/browser/validation.h" |
16 #include "components/autofill/core/common/autofill_messages.h" | |
17 #include "components/autofill/core/common/autofill_pref_names.h" | 17 #include "components/autofill/core/common/autofill_pref_names.h" |
18 #include "components/autofill/core/common/form_data.h" | 18 #include "components/autofill/core/common/form_data.h" |
19 | 19 |
20 namespace autofill { | 20 namespace autofill { |
21 namespace { | 21 namespace { |
22 | 22 |
23 // Limit on the number of suggestions to appear in the pop-up menu under an | 23 // Limit on the number of suggestions to appear in the pop-up menu under an |
24 // text input element in a form. | 24 // text input element in a form. |
25 const int kMaxAutocompleteMenuItems = 6; | 25 const int kMaxAutocompleteMenuItems = 6; |
26 | 26 |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 autofill_unique_ids_); | 188 autofill_unique_ids_); |
189 | 189 |
190 query_id_ = 0; | 190 query_id_ = 0; |
191 autofill_values_.clear(); | 191 autofill_values_.clear(); |
192 autofill_labels_.clear(); | 192 autofill_labels_.clear(); |
193 autofill_icons_.clear(); | 193 autofill_icons_.clear(); |
194 autofill_unique_ids_.clear(); | 194 autofill_unique_ids_.clear(); |
195 } | 195 } |
196 | 196 |
197 } // namespace autofill | 197 } // namespace autofill |
OLD | NEW |