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/predictors/autocomplete_action_predictor.h" | 5 #include "chrome/browser/predictors/autocomplete_action_predictor.h" |
6 | 6 |
7 #include <math.h> | 7 #include <math.h> |
8 | 8 |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/bind.h" | 11 #include "base/bind.h" |
12 #include "base/guid.h" | 12 #include "base/guid.h" |
13 #include "base/i18n/case_conversion.h" | 13 #include "base/i18n/case_conversion.h" |
14 #include "base/metrics/histogram.h" | 14 #include "base/metrics/histogram.h" |
15 #include "base/strings/string_util.h" | 15 #include "base/strings/string_util.h" |
16 #include "base/strings/stringprintf.h" | 16 #include "base/strings/stringprintf.h" |
17 #include "base/strings/utf_string_conversions.h" | 17 #include "base/strings/utf_string_conversions.h" |
18 #include "chrome/browser/autocomplete/autocomplete_result.h" | |
19 #include "chrome/browser/chrome_notification_types.h" | 18 #include "chrome/browser/chrome_notification_types.h" |
20 #include "chrome/browser/history/history_notifications.h" | 19 #include "chrome/browser/history/history_notifications.h" |
21 #include "chrome/browser/history/history_service.h" | 20 #include "chrome/browser/history/history_service.h" |
22 #include "chrome/browser/history/history_service_factory.h" | 21 #include "chrome/browser/history/history_service_factory.h" |
23 #include "chrome/browser/omnibox/omnibox_log.h" | 22 #include "chrome/browser/omnibox/omnibox_log.h" |
24 #include "chrome/browser/predictors/autocomplete_action_predictor_factory.h" | 23 #include "chrome/browser/predictors/autocomplete_action_predictor_factory.h" |
25 #include "chrome/browser/predictors/predictor_database.h" | 24 #include "chrome/browser/predictors/predictor_database.h" |
26 #include "chrome/browser/predictors/predictor_database_factory.h" | 25 #include "chrome/browser/predictors/predictor_database_factory.h" |
27 #include "chrome/browser/prerender/prerender_field_trial.h" | 26 #include "chrome/browser/prerender/prerender_field_trial.h" |
28 #include "chrome/browser/prerender/prerender_handle.h" | 27 #include "chrome/browser/prerender/prerender_handle.h" |
29 #include "chrome/browser/prerender/prerender_manager.h" | 28 #include "chrome/browser/prerender/prerender_manager.h" |
30 #include "chrome/browser/prerender/prerender_manager_factory.h" | 29 #include "chrome/browser/prerender/prerender_manager_factory.h" |
31 #include "chrome/browser/profiles/profile.h" | 30 #include "chrome/browser/profiles/profile.h" |
32 #include "chrome/browser/ui/omnibox/omnibox_popup_model.h" | 31 #include "chrome/browser/ui/omnibox/omnibox_popup_model.h" |
33 #include "components/history/core/browser/in_memory_database.h" | 32 #include "components/history/core/browser/in_memory_database.h" |
34 #include "components/omnibox/autocomplete_match.h" | 33 #include "components/omnibox/autocomplete_match.h" |
| 34 #include "components/omnibox/autocomplete_result.h" |
35 #include "content/public/browser/browser_thread.h" | 35 #include "content/public/browser/browser_thread.h" |
36 #include "content/public/browser/notification_details.h" | 36 #include "content/public/browser/notification_details.h" |
37 #include "content/public/browser/notification_service.h" | 37 #include "content/public/browser/notification_service.h" |
38 #include "content/public/browser/notification_source.h" | 38 #include "content/public/browser/notification_source.h" |
39 | 39 |
40 namespace { | 40 namespace { |
41 | 41 |
42 const float kConfidenceCutoff[] = { | 42 const float kConfidenceCutoff[] = { |
43 0.8f, | 43 0.8f, |
44 0.5f | 44 0.5f |
(...skipping 558 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
603 return number_of_hits / (number_of_hits + value.number_of_misses); | 603 return number_of_hits / (number_of_hits + value.number_of_misses); |
604 } | 604 } |
605 | 605 |
606 AutocompleteActionPredictor::TransitionalMatch::TransitionalMatch() { | 606 AutocompleteActionPredictor::TransitionalMatch::TransitionalMatch() { |
607 } | 607 } |
608 | 608 |
609 AutocompleteActionPredictor::TransitionalMatch::~TransitionalMatch() { | 609 AutocompleteActionPredictor::TransitionalMatch::~TransitionalMatch() { |
610 } | 610 } |
611 | 611 |
612 } // namespace predictors | 612 } // namespace predictors |
OLD | NEW |