OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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/histogram.h" | 9 #include "base/histogram.h" |
10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
11 #include "base/string_util.h" | 11 #include "base/string_util.h" |
12 #include "chrome/browser/history/history.h" | 12 #include "chrome/browser/history/history.h" |
13 #include "chrome/browser/history/history_backend.h" | 13 #include "chrome/browser/history/history_backend.h" |
14 #include "chrome/browser/history/history_database.h" | 14 #include "chrome/browser/history/history_database.h" |
| 15 #include "chrome/browser/net/url_fixer_upper.h" |
15 #include "chrome/browser/profile.h" | 16 #include "chrome/browser/profile.h" |
16 #include "chrome/browser/url_fixer_upper.h" | |
17 #include "chrome/common/gfx/text_elider.h" | 17 #include "chrome/common/gfx/text_elider.h" |
18 #include "chrome/common/pref_names.h" | 18 #include "chrome/common/pref_names.h" |
19 #include "chrome/common/pref_service.h" | 19 #include "chrome/common/pref_service.h" |
20 #include "chrome/common/sqlite_utils.h" | 20 #include "chrome/common/sqlite_utils.h" |
21 #include "googleurl/src/gurl.h" | 21 #include "googleurl/src/gurl.h" |
22 #include "googleurl/src/url_parse.h" | 22 #include "googleurl/src/url_parse.h" |
23 #include "googleurl/src/url_util.h" | 23 #include "googleurl/src/url_util.h" |
24 #include "net/base/net_util.h" | 24 #include "net/base/net_util.h" |
25 | 25 |
26 using base::Time; | 26 using base::Time; |
(...skipping 794 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
821 match.contents.length(), ACMatchClassification::URL, | 821 match.contents.length(), ACMatchClassification::URL, |
822 &match.contents_class); | 822 &match.contents_class); |
823 match.description = info.title(); | 823 match.description = info.title(); |
824 AutocompleteMatch::ClassifyMatchInString(params->input.text(), info.title(), | 824 AutocompleteMatch::ClassifyMatchInString(params->input.text(), info.title(), |
825 ACMatchClassification::NONE, | 825 ACMatchClassification::NONE, |
826 &match.description_class); | 826 &match.description_class); |
827 | 827 |
828 return match; | 828 return match; |
829 } | 829 } |
830 | 830 |
OLD | NEW |