| 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/autocomplete.h" | 5 #include "chrome/browser/autocomplete/autocomplete.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "app/l10n_util.h" | 9 #include "app/l10n_util.h" |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 #include "base/command_line.h" | 11 #include "base/command_line.h" |
| 12 #include "base/i18n/number_formatting.h" | 12 #include "base/i18n/number_formatting.h" |
| 13 #include "base/string_number_conversions.h" | 13 #include "base/string_number_conversions.h" |
| 14 #include "base/string_util.h" | 14 #include "base/string_util.h" |
| 15 #include "base/utf_string_conversions.h" | 15 #include "base/utf_string_conversions.h" |
| 16 #include "chrome/browser/autocomplete/history_quick_provider.h" | 16 #include "chrome/browser/autocomplete/history_quick_provider.h" |
| 17 #include "chrome/browser/autocomplete/history_url_provider.h" | 17 #include "chrome/browser/autocomplete/history_url_provider.h" |
| 18 #include "chrome/browser/autocomplete/history_contents_provider.h" | 18 #include "chrome/browser/autocomplete/history_contents_provider.h" |
| 19 #include "chrome/browser/autocomplete/keyword_provider.h" | 19 #include "chrome/browser/autocomplete/keyword_provider.h" |
| 20 #include "chrome/browser/autocomplete/search_provider.h" | 20 #include "chrome/browser/autocomplete/search_provider.h" |
| 21 #include "chrome/browser/bookmarks/bookmark_model.h" | 21 #include "chrome/browser/bookmarks/bookmark_model.h" |
| 22 #include "chrome/browser/dom_ui/history_ui.h" | 22 #include "chrome/browser/dom_ui/history_ui.h" |
| 23 #include "chrome/browser/external_protocol_handler.h" | 23 #include "chrome/browser/external_protocol_handler.h" |
| 24 #include "chrome/browser/net/url_fixer_upper.h" | 24 #include "chrome/browser/net/url_fixer_upper.h" |
| 25 #include "chrome/browser/pref_service.h" | 25 #include "chrome/browser/prefs/pref_service.h" |
| 26 #include "chrome/browser/profile.h" | 26 #include "chrome/browser/profile.h" |
| 27 #include "chrome/common/chrome_switches.h" | 27 #include "chrome/common/chrome_switches.h" |
| 28 #include "chrome/common/notification_service.h" | 28 #include "chrome/common/notification_service.h" |
| 29 #include "chrome/common/pref_names.h" | 29 #include "chrome/common/pref_names.h" |
| 30 #include "chrome/common/url_constants.h" | 30 #include "chrome/common/url_constants.h" |
| 31 #include "googleurl/src/gurl.h" | 31 #include "googleurl/src/gurl.h" |
| 32 #include "googleurl/src/url_canon_ip.h" | 32 #include "googleurl/src/url_canon_ip.h" |
| 33 #include "googleurl/src/url_util.h" | 33 #include "googleurl/src/url_util.h" |
| 34 #include "grit/generated_resources.h" | 34 #include "grit/generated_resources.h" |
| 35 #include "grit/theme_resources.h" | 35 #include "grit/theme_resources.h" |
| (...skipping 1049 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1085 void AutocompleteController::CheckIfDone() { | 1085 void AutocompleteController::CheckIfDone() { |
| 1086 for (ACProviders::const_iterator i(providers_.begin()); i != providers_.end(); | 1086 for (ACProviders::const_iterator i(providers_.begin()); i != providers_.end(); |
| 1087 ++i) { | 1087 ++i) { |
| 1088 if (!(*i)->done()) { | 1088 if (!(*i)->done()) { |
| 1089 done_ = false; | 1089 done_ = false; |
| 1090 return; | 1090 return; |
| 1091 } | 1091 } |
| 1092 } | 1092 } |
| 1093 done_ = true; | 1093 done_ = true; |
| 1094 } | 1094 } |
| OLD | NEW |