| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/autocomplete_history_manager.h" | 5 #include "chrome/browser/autocomplete_history_manager.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/string16.h" | 9 #include "base/string16.h" |
| 10 #include "base/string_number_conversions.h" | 10 #include "base/string_number_conversions.h" |
| 11 #include "base/utf_string_conversions.h" | 11 #include "base/utf_string_conversions.h" |
| 12 #include "chrome/browser/autofill/autofill_external_delegate.h" | 12 #include "chrome/browser/autofill/autofill_external_delegate.h" |
| 13 #include "chrome/browser/autofill/credit_card.h" | 13 #include "chrome/browser/autofill/credit_card.h" |
| 14 #include "chrome/browser/prefs/pref_service.h" | 14 #include "chrome/browser/prefs/pref_service.h" |
| 15 #include "chrome/browser/profiles/profile.h" | 15 #include "chrome/browser/profiles/profile.h" |
| 16 #include "chrome/common/autofill_messages.h" | 16 #include "chrome/common/autofill_messages.h" |
| 17 #include "chrome/common/pref_names.h" | 17 #include "chrome/common/pref_names.h" |
| 18 #include "content/browser/renderer_host/render_view_host.h" | 18 #include "content/browser/renderer_host/render_view_host.h" |
| 19 #include "content/browser/tab_contents/tab_contents.h" | 19 #include "content/browser/tab_contents/tab_contents.h" |
| 20 #include "webkit/glue/form_data.h" | 20 #include "webkit/forms/form_data.h" |
| 21 | 21 |
| 22 using webkit_glue::FormData; | 22 using webkit::forms::FormData; |
| 23 using webkit_glue::FormField; | 23 using webkit::forms::FormField; |
| 24 | 24 |
| 25 namespace { | 25 namespace { |
| 26 | 26 |
| 27 // Limit on the number of suggestions to appear in the pop-up menu under an | 27 // Limit on the number of suggestions to appear in the pop-up menu under an |
| 28 // text input element in a form. | 28 // text input element in a form. |
| 29 const int kMaxAutocompleteMenuItems = 6; | 29 const int kMaxAutocompleteMenuItems = 6; |
| 30 | 30 |
| 31 // The separator characters for SSNs. | 31 // The separator characters for SSNs. |
| 32 const char16 kSSNSeparators[] = {' ', '-', 0}; | 32 const char16 kSSNSeparators[] = {' ', '-', 0}; |
| 33 | 33 |
| (...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 284 autofill_icons_, | 284 autofill_icons_, |
| 285 autofill_unique_ids_)); | 285 autofill_unique_ids_)); |
| 286 } | 286 } |
| 287 | 287 |
| 288 query_id_ = 0; | 288 query_id_ = 0; |
| 289 autofill_values_.clear(); | 289 autofill_values_.clear(); |
| 290 autofill_labels_.clear(); | 290 autofill_labels_.clear(); |
| 291 autofill_icons_.clear(); | 291 autofill_icons_.clear(); |
| 292 autofill_unique_ids_.clear(); | 292 autofill_unique_ids_.clear(); |
| 293 } | 293 } |
| OLD | NEW |