| 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/bookmark_provider.h" | 17 #include "chrome/browser/autocomplete/bookmark_provider.h" |
| 18 #include "chrome/browser/autocomplete/builtin_provider.h" | 18 #include "chrome/browser/autocomplete/builtin_provider.h" |
| 19 #include "chrome/browser/autocomplete/history_quick_provider.h" | 19 #include "chrome/browser/autocomplete/history_quick_provider.h" |
| 20 #include "chrome/browser/autocomplete/history_url_provider.h" | 20 #include "chrome/browser/autocomplete/history_url_provider.h" |
| 21 #include "chrome/browser/autocomplete/keyword_provider.h" | 21 #include "chrome/browser/autocomplete/keyword_provider.h" |
| 22 #include "chrome/browser/autocomplete/search_provider.h" | 22 #include "chrome/browser/autocomplete/search_provider.h" |
| 23 #include "chrome/browser/autocomplete/shortcuts_provider.h" | 23 #include "chrome/browser/autocomplete/shortcuts_provider.h" |
| 24 #include "chrome/browser/autocomplete/zero_suggest_provider.h" | 24 #include "chrome/browser/autocomplete/zero_suggest_provider.h" |
| 25 #include "chrome/browser/chrome_notification_types.h" | 25 #include "chrome/browser/chrome_notification_types.h" |
| 26 #include "chrome/browser/omnibox/omnibox_field_trial.h" | 26 #include "chrome/browser/omnibox/omnibox_field_trial.h" |
| 27 #include "chrome/browser/search_engines/template_url_service.h" |
| 27 #include "components/search_engines/template_url.h" | 28 #include "components/search_engines/template_url.h" |
| 28 #include "components/search_engines/template_url_service.h" | |
| 29 #include "content/public/browser/notification_service.h" | 29 #include "content/public/browser/notification_service.h" |
| 30 #include "grit/generated_resources.h" | 30 #include "grit/generated_resources.h" |
| 31 #include "grit/theme_resources.h" | 31 #include "grit/theme_resources.h" |
| 32 #include "ui/base/l10n/l10n_util.h" | 32 #include "ui/base/l10n/l10n_util.h" |
| 33 | 33 |
| 34 namespace { | 34 namespace { |
| 35 | 35 |
| 36 // Converts the given match to a type (and possibly subtype) based on the AQS | 36 // Converts the given match to a type (and possibly subtype) based on the AQS |
| 37 // specification. For more details, see | 37 // specification. For more details, see |
| 38 // http://goto.google.com/binary-clients-logging. | 38 // http://goto.google.com/binary-clients-logging. |
| (...skipping 610 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 649 this, &AutocompleteController::ExpireCopiedEntries); | 649 this, &AutocompleteController::ExpireCopiedEntries); |
| 650 } | 650 } |
| 651 | 651 |
| 652 void AutocompleteController::StartStopTimer() { | 652 void AutocompleteController::StartStopTimer() { |
| 653 stop_timer_.Start(FROM_HERE, | 653 stop_timer_.Start(FROM_HERE, |
| 654 stop_timer_duration_, | 654 stop_timer_duration_, |
| 655 base::Bind(&AutocompleteController::Stop, | 655 base::Bind(&AutocompleteController::Stop, |
| 656 base::Unretained(this), | 656 base::Unretained(this), |
| 657 false)); | 657 false)); |
| 658 } | 658 } |
| OLD | NEW |