| 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 "app/gfx/text_elider.h" |
| 9 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 10 #include "base/histogram.h" | 11 #include "base/histogram.h" |
| 11 #include "base/message_loop.h" | 12 #include "base/message_loop.h" |
| 12 #include "base/string_util.h" | 13 #include "base/string_util.h" |
| 13 #include "chrome/browser/history/history.h" | 14 #include "chrome/browser/history/history.h" |
| 14 #include "chrome/browser/history/history_backend.h" | 15 #include "chrome/browser/history/history_backend.h" |
| 15 #include "chrome/browser/history/history_database.h" | 16 #include "chrome/browser/history/history_database.h" |
| 16 #include "chrome/browser/net/url_fixer_upper.h" | 17 #include "chrome/browser/net/url_fixer_upper.h" |
| 17 #include "chrome/browser/profile.h" | 18 #include "chrome/browser/profile.h" |
| 18 #include "chrome/common/gfx/text_elider.h" | |
| 19 #include "chrome/common/pref_names.h" | 19 #include "chrome/common/pref_names.h" |
| 20 #include "chrome/common/pref_service.h" | 20 #include "chrome/common/pref_service.h" |
| 21 #include "chrome/common/sqlite_utils.h" | 21 #include "chrome/common/sqlite_utils.h" |
| 22 #include "chrome/common/url_constants.h" | 22 #include "chrome/common/url_constants.h" |
| 23 #include "googleurl/src/gurl.h" | 23 #include "googleurl/src/gurl.h" |
| 24 #include "googleurl/src/url_parse.h" | 24 #include "googleurl/src/url_parse.h" |
| 25 #include "googleurl/src/url_util.h" | 25 #include "googleurl/src/url_util.h" |
| 26 #include "net/base/net_util.h" | 26 #include "net/base/net_util.h" |
| 27 | 27 |
| 28 using base::Time; | 28 using base::Time; |
| (...skipping 824 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 853 history_match.input_location - offset, params->input.text().length(), | 853 history_match.input_location - offset, params->input.text().length(), |
| 854 match.contents.length(), ACMatchClassification::URL, | 854 match.contents.length(), ACMatchClassification::URL, |
| 855 &match.contents_class); | 855 &match.contents_class); |
| 856 match.description = info.title(); | 856 match.description = info.title(); |
| 857 AutocompleteMatch::ClassifyMatchInString(params->input.text(), info.title(), | 857 AutocompleteMatch::ClassifyMatchInString(params->input.text(), info.title(), |
| 858 ACMatchClassification::NONE, | 858 ACMatchClassification::NONE, |
| 859 &match.description_class); | 859 &match.description_class); |
| 860 | 860 |
| 861 return match; | 861 return match; |
| 862 } | 862 } |
| OLD | NEW |