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/i18n/case_conversion.h" | 13 #include "base/i18n/case_conversion.h" |
13 #include "base/metrics/histogram.h" | 14 #include "base/metrics/histogram.h" |
14 #include "base/string_util.h" | 15 #include "base/string_util.h" |
15 #include "base/stringprintf.h" | 16 #include "base/stringprintf.h" |
16 #include "base/utf_string_conversions.h" | 17 #include "base/utf_string_conversions.h" |
17 #include "chrome/browser/autocomplete/autocomplete.h" | 18 #include "chrome/browser/autocomplete/autocomplete.h" |
18 #include "chrome/browser/autocomplete/autocomplete_match.h" | 19 #include "chrome/browser/autocomplete/autocomplete_match.h" |
19 #include "chrome/browser/history/history.h" | 20 #include "chrome/browser/history/history.h" |
20 #include "chrome/browser/history/history_notifications.h" | 21 #include "chrome/browser/history/history_notifications.h" |
21 #include "chrome/browser/history/in_memory_database.h" | 22 #include "chrome/browser/history/in_memory_database.h" |
22 #include "chrome/browser/predictors/predictor_database.h" | 23 #include "chrome/browser/predictors/predictor_database.h" |
23 #include "chrome/browser/predictors/predictor_database_factory.h" | 24 #include "chrome/browser/predictors/predictor_database_factory.h" |
24 #include "chrome/browser/prerender/prerender_field_trial.h" | 25 #include "chrome/browser/prerender/prerender_field_trial.h" |
25 #include "chrome/browser/prerender/prerender_manager.h" | 26 #include "chrome/browser/prerender/prerender_manager.h" |
26 #include "chrome/browser/prerender/prerender_manager_factory.h" | 27 #include "chrome/browser/prerender/prerender_manager_factory.h" |
27 #include "chrome/browser/profiles/profile.h" | 28 #include "chrome/browser/profiles/profile.h" |
28 #include "chrome/common/chrome_notification_types.h" | 29 #include "chrome/common/chrome_notification_types.h" |
29 #include "chrome/common/guid.h" | |
30 #include "content/public/browser/browser_thread.h" | 30 #include "content/public/browser/browser_thread.h" |
31 #include "content/public/browser/notification_details.h" | 31 #include "content/public/browser/notification_details.h" |
32 #include "content/public/browser/notification_service.h" | 32 #include "content/public/browser/notification_service.h" |
33 #include "content/public/browser/notification_source.h" | 33 #include "content/public/browser/notification_source.h" |
34 | 34 |
35 namespace { | 35 namespace { |
36 | 36 |
37 const float kConfidenceCutoff[] = { | 37 const float kConfidenceCutoff[] = { |
38 0.8f, | 38 0.8f, |
39 0.5f | 39 0.5f |
(...skipping 464 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
504 DATABASE_ACTION_DELETE_SOME, DATABASE_ACTION_COUNT); | 504 DATABASE_ACTION_DELETE_SOME, DATABASE_ACTION_COUNT); |
505 } | 505 } |
506 | 506 |
507 AutocompleteActionPredictor::TransitionalMatch::TransitionalMatch() { | 507 AutocompleteActionPredictor::TransitionalMatch::TransitionalMatch() { |
508 } | 508 } |
509 | 509 |
510 AutocompleteActionPredictor::TransitionalMatch::~TransitionalMatch() { | 510 AutocompleteActionPredictor::TransitionalMatch::~TransitionalMatch() { |
511 } | 511 } |
512 | 512 |
513 } // namespace predictors | 513 } // namespace predictors |
OLD | NEW |