OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/credit_card.h" | 12 #include "chrome/browser/autofill/credit_card.h" |
13 #include "chrome/browser/pref_service.h" | 13 #include "chrome/browser/prefs/pref_service.h" |
14 #include "chrome/browser/profile.h" | 14 #include "chrome/browser/profile.h" |
15 #include "chrome/browser/renderer_host/render_view_host.h" | 15 #include "chrome/browser/renderer_host/render_view_host.h" |
16 #include "chrome/browser/tab_contents/tab_contents.h" | 16 #include "chrome/browser/tab_contents/tab_contents.h" |
17 #include "chrome/common/pref_names.h" | 17 #include "chrome/common/pref_names.h" |
18 #include "webkit/glue/form_data.h" | 18 #include "webkit/glue/form_data.h" |
19 | 19 |
20 using webkit_glue::FormData; | 20 using webkit_glue::FormData; |
21 | 21 |
22 namespace { | 22 namespace { |
23 | 23 |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 DCHECK(result->GetType() == AUTOFILL_VALUE_RESULT); | 185 DCHECK(result->GetType() == AUTOFILL_VALUE_RESULT); |
186 const WDResult<std::vector<string16> >* autofill_result = | 186 const WDResult<std::vector<string16> >* autofill_result = |
187 static_cast<const WDResult<std::vector<string16> >*>(result); | 187 static_cast<const WDResult<std::vector<string16> >*>(result); |
188 host->AutocompleteSuggestionsReturned( | 188 host->AutocompleteSuggestionsReturned( |
189 query_id_, autofill_result->GetValue()); | 189 query_id_, autofill_result->GetValue()); |
190 } else { | 190 } else { |
191 host->AutocompleteSuggestionsReturned( | 191 host->AutocompleteSuggestionsReturned( |
192 query_id_, std::vector<string16>()); | 192 query_id_, std::vector<string16>()); |
193 } | 193 } |
194 } | 194 } |
OLD | NEW |