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_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/histogram.h" | 10 #include "base/histogram.h" |
11 #include "base/message_loop.h" | 11 #include "base/message_loop.h" |
12 #include "base/string_util.h" | 12 #include "base/string_util.h" |
13 #include "base/utf_string_conversions.h" | 13 #include "base/utf_string_conversions.h" |
14 #include "chrome/browser/history/history.h" | 14 #include "chrome/browser/history/history.h" |
15 #include "chrome/browser/history/history_backend.h" | 15 #include "chrome/browser/history/history_backend.h" |
16 #include "chrome/browser/history/history_database.h" | 16 #include "chrome/browser/history/history_database.h" |
17 #include "chrome/browser/net/url_fixer_upper.h" | 17 #include "chrome/browser/net/url_fixer_upper.h" |
18 #include "chrome/browser/pref_service.h" | 18 #include "chrome/browser/prefs/pref_service.h" |
19 #include "chrome/browser/profile.h" | 19 #include "chrome/browser/profile.h" |
20 #include "chrome/common/pref_names.h" | 20 #include "chrome/common/pref_names.h" |
21 #include "chrome/common/url_constants.h" | 21 #include "chrome/common/url_constants.h" |
22 #include "googleurl/src/gurl.h" | 22 #include "googleurl/src/gurl.h" |
23 #include "googleurl/src/url_parse.h" | 23 #include "googleurl/src/url_parse.h" |
24 #include "googleurl/src/url_util.h" | 24 #include "googleurl/src/url_util.h" |
25 #include "net/base/net_util.h" | 25 #include "net/base/net_util.h" |
26 | 26 |
27 using base::Time; | 27 using base::Time; |
28 using base::TimeDelta; | 28 using base::TimeDelta; |
(...skipping 877 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
906 &match.contents_class); | 906 &match.contents_class); |
907 } | 907 } |
908 match.description = UTF16ToWide(info.title()); | 908 match.description = UTF16ToWide(info.title()); |
909 AutocompleteMatch::ClassifyMatchInString(params->input.text(), | 909 AutocompleteMatch::ClassifyMatchInString(params->input.text(), |
910 UTF16ToWide(info.title()), | 910 UTF16ToWide(info.title()), |
911 ACMatchClassification::NONE, | 911 ACMatchClassification::NONE, |
912 &match.description_class); | 912 &match.description_class); |
913 | 913 |
914 return match; | 914 return match; |
915 } | 915 } |
OLD | NEW |