| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_controller.h" | 5 #include "chrome/browser/autocomplete/autocomplete_controller.h" |
| 6 | 6 |
| 7 #include <set> | 7 #include <set> |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/format_macros.h" | 10 #include "base/format_macros.h" |
| 11 #include "base/logging.h" | 11 #include "base/logging.h" |
| 12 #include "base/metrics/histogram.h" | 12 #include "base/metrics/histogram.h" |
| 13 #include "base/strings/string_number_conversions.h" | 13 #include "base/strings/string_number_conversions.h" |
| 14 #include "base/strings/stringprintf.h" | 14 #include "base/strings/stringprintf.h" |
| 15 #include "base/time/time.h" | 15 #include "base/time/time.h" |
| 16 #include "chrome/browser/autocomplete/autocomplete_controller_delegate.h" | 16 #include "chrome/browser/autocomplete/autocomplete_controller_delegate.h" |
| 17 #include "chrome/browser/autocomplete/builtin_provider.h" | 17 #include "chrome/browser/autocomplete/builtin_provider.h" |
| 18 #include "chrome/browser/autocomplete/history_quick_provider.h" | 18 #include "chrome/browser/autocomplete/history_quick_provider.h" |
| 19 #include "chrome/browser/autocomplete/history_url_provider.h" |
| 19 #include "chrome/browser/autocomplete/in_memory_url_index_factory.h" | 20 #include "chrome/browser/autocomplete/in_memory_url_index_factory.h" |
| 20 #include "chrome/browser/autocomplete/shortcuts_provider.h" | 21 #include "chrome/browser/autocomplete/shortcuts_provider.h" |
| 21 #include "chrome/browser/autocomplete/zero_suggest_provider.h" | 22 #include "chrome/browser/autocomplete/zero_suggest_provider.h" |
| 22 #include "chrome/browser/chrome_notification_types.h" | 23 #include "chrome/browser/chrome_notification_types.h" |
| 23 #include "components/omnibox/bookmark_provider.h" | 24 #include "components/omnibox/bookmark_provider.h" |
| 24 #include "components/omnibox/history_url_provider.h" | |
| 25 #include "components/omnibox/keyword_provider.h" | 25 #include "components/omnibox/keyword_provider.h" |
| 26 #include "components/omnibox/omnibox_field_trial.h" | 26 #include "components/omnibox/omnibox_field_trial.h" |
| 27 #include "components/omnibox/search_provider.h" | 27 #include "components/omnibox/search_provider.h" |
| 28 #include "components/search_engines/template_url.h" | 28 #include "components/search_engines/template_url.h" |
| 29 #include "components/search_engines/template_url_service.h" | 29 #include "components/search_engines/template_url_service.h" |
| 30 #include "content/public/browser/notification_service.h" | 30 #include "content/public/browser/notification_service.h" |
| 31 #include "grit/components_strings.h" | 31 #include "grit/components_strings.h" |
| 32 #include "ui/base/l10n/l10n_util.h" | 32 #include "ui/base/l10n/l10n_util.h" |
| 33 | 33 |
| 34 #if defined(ENABLE_EXTENSIONS) | 34 #if defined(ENABLE_EXTENSIONS) |
| (...skipping 633 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 668 expire_timer_.Stop(); | 668 expire_timer_.Stop(); |
| 669 stop_timer_.Stop(); | 669 stop_timer_.Stop(); |
| 670 done_ = true; | 670 done_ = true; |
| 671 if (clear_result && !result_.empty()) { | 671 if (clear_result && !result_.empty()) { |
| 672 result_.Reset(); | 672 result_.Reset(); |
| 673 // NOTE: We pass in false since we're trying to only clear the popup, not | 673 // NOTE: We pass in false since we're trying to only clear the popup, not |
| 674 // touch the edit... this is all a mess and should be cleaned up :( | 674 // touch the edit... this is all a mess and should be cleaned up :( |
| 675 NotifyChanged(false); | 675 NotifyChanged(false); |
| 676 } | 676 } |
| 677 } | 677 } |
| OLD | NEW |