OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_url_provider.h" | 5 #include "chrome/browser/autocomplete/history_url_provider.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 15 matching lines...) Expand all Loading... |
26 #include "chrome/browser/history/in_memory_url_index_types.h" | 26 #include "chrome/browser/history/in_memory_url_index_types.h" |
27 #include "chrome/browser/history/scored_history_match.h" | 27 #include "chrome/browser/history/scored_history_match.h" |
28 #include "chrome/browser/omnibox/omnibox_field_trial.h" | 28 #include "chrome/browser/omnibox/omnibox_field_trial.h" |
29 #include "chrome/browser/profiles/profile.h" | 29 #include "chrome/browser/profiles/profile.h" |
30 #include "chrome/browser/search_engines/template_url_service.h" | 30 #include "chrome/browser/search_engines/template_url_service.h" |
31 #include "chrome/browser/search_engines/template_url_service_factory.h" | 31 #include "chrome/browser/search_engines/template_url_service_factory.h" |
32 #include "chrome/browser/search_engines/ui_thread_search_terms_data.h" | 32 #include "chrome/browser/search_engines/ui_thread_search_terms_data.h" |
33 #include "chrome/common/chrome_switches.h" | 33 #include "chrome/common/chrome_switches.h" |
34 #include "chrome/common/pref_names.h" | 34 #include "chrome/common/pref_names.h" |
35 #include "chrome/common/url_constants.h" | 35 #include "chrome/common/url_constants.h" |
| 36 #include "components/autocomplete/url_prefix.h" |
36 #include "components/bookmarks/browser/bookmark_utils.h" | 37 #include "components/bookmarks/browser/bookmark_utils.h" |
37 #include "components/metrics/proto/omnibox_input_type.pb.h" | 38 #include "components/metrics/proto/omnibox_input_type.pb.h" |
38 #include "components/url_fixer/url_fixer.h" | 39 #include "components/url_fixer/url_fixer.h" |
39 #include "net/base/net_util.h" | 40 #include "net/base/net_util.h" |
40 #include "net/base/registry_controlled_domains/registry_controlled_domain.h" | 41 #include "net/base/registry_controlled_domains/registry_controlled_domain.h" |
41 #include "url/gurl.h" | 42 #include "url/gurl.h" |
42 #include "url/url_parse.h" | 43 #include "url/url_parse.h" |
43 #include "url/url_util.h" | 44 #include "url/url_util.h" |
44 | 45 |
45 namespace { | 46 namespace { |
(...skipping 1110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1156 AutocompleteMatch::ClassifyLocationInString(base::string16::npos, 0, | 1157 AutocompleteMatch::ClassifyLocationInString(base::string16::npos, 0, |
1157 match.contents.length(), ACMatchClassification::URL, | 1158 match.contents.length(), ACMatchClassification::URL, |
1158 &match.contents_class); | 1159 &match.contents_class); |
1159 } | 1160 } |
1160 match.description = info.title(); | 1161 match.description = info.title(); |
1161 match.description_class = | 1162 match.description_class = |
1162 ClassifyDescription(params.input.text(), match.description); | 1163 ClassifyDescription(params.input.text(), match.description); |
1163 RecordAdditionalInfoFromUrlRow(info, &match); | 1164 RecordAdditionalInfoFromUrlRow(info, &match); |
1164 return match; | 1165 return match; |
1165 } | 1166 } |
OLD | NEW |