| 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 <algorithm> | 5 #include <algorithm> |
| 6 | 6 |
| 7 #include "chrome/browser/autocomplete/autocomplete.h" | 7 #include "chrome/browser/autocomplete/autocomplete.h" |
| 8 | 8 |
| 9 #include "base/string_util.h" | 9 #include "base/string_util.h" |
| 10 #include "chrome/browser/autocomplete/history_url_provider.h" | 10 #include "chrome/browser/autocomplete/history_url_provider.h" |
| 11 #include "chrome/browser/autocomplete/history_contents_provider.h" | 11 #include "chrome/browser/autocomplete/history_contents_provider.h" |
| 12 #include "chrome/browser/autocomplete/keyword_provider.h" | 12 #include "chrome/browser/autocomplete/keyword_provider.h" |
| 13 #include "chrome/browser/autocomplete/search_provider.h" | 13 #include "chrome/browser/autocomplete/search_provider.h" |
| 14 #include "chrome/browser/bookmarks/bookmark_model.h" | 14 #include "chrome/browser/bookmarks/bookmark_model.h" |
| 15 #include "chrome/browser/external_protocol_handler.h" | 15 #include "chrome/browser/external_protocol_handler.h" |
| 16 #include "chrome/browser/history_tab_ui.h" | 16 #include "chrome/browser/history_tab_ui.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/browser/url_fixer_upper.h" | |
| 19 #include "chrome/common/gfx/text_elider.h" | 19 #include "chrome/common/gfx/text_elider.h" |
| 20 #include "chrome/common/l10n_util.h" | 20 #include "chrome/common/l10n_util.h" |
| 21 #include "chrome/common/pref_names.h" | 21 #include "chrome/common/pref_names.h" |
| 22 #include "chrome/common/pref_service.h" | 22 #include "chrome/common/pref_service.h" |
| 23 #include "googleurl/src/gurl.h" | 23 #include "googleurl/src/gurl.h" |
| 24 #include "googleurl/src/url_canon_ip.h" | 24 #include "googleurl/src/url_canon_ip.h" |
| 25 #include "net/base/net_util.h" | 25 #include "net/base/net_util.h" |
| 26 #include "net/base/registry_controlled_domain.h" | 26 #include "net/base/registry_controlled_domain.h" |
| 27 | 27 |
| 28 #include "generated_resources.h" | 28 #include "generated_resources.h" |
| (...skipping 784 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 813 match.contents_class.push_back( | 813 match.contents_class.push_back( |
| 814 ACMatchClassification(keyword_offset + input_.text().size(), | 814 ACMatchClassification(keyword_offset + input_.text().size(), |
| 815 ACMatchClassification::NONE)); | 815 ACMatchClassification::NONE)); |
| 816 } | 816 } |
| 817 match.destination_url = | 817 match.destination_url = |
| 818 HistoryTabUI::GetHistoryURLWithSearchText(input_.text()); | 818 HistoryTabUI::GetHistoryURLWithSearchText(input_.text()); |
| 819 match.transition = PageTransition::AUTO_BOOKMARK; | 819 match.transition = PageTransition::AUTO_BOOKMARK; |
| 820 match.provider = history_contents_provider_; | 820 match.provider = history_contents_provider_; |
| 821 latest_result_.AddMatch(match); | 821 latest_result_.AddMatch(match); |
| 822 } | 822 } |
| OLD | NEW |