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_edit.h" | 5 #include "chrome/browser/autocomplete/autocomplete_edit.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/metrics/histogram.h" | 10 #include "base/metrics/histogram.h" |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 #include "chrome/common/url_constants.h" | 47 #include "chrome/common/url_constants.h" |
48 #include "content/public/browser/notification_service.h" | 48 #include "content/public/browser/notification_service.h" |
49 #include "content/public/browser/render_view_host.h" | 49 #include "content/public/browser/render_view_host.h" |
50 #include "content/public/browser/user_metrics.h" | 50 #include "content/public/browser/user_metrics.h" |
51 #include "content/public/browser/web_contents.h" | 51 #include "content/public/browser/web_contents.h" |
52 #include "googleurl/src/gurl.h" | 52 #include "googleurl/src/gurl.h" |
53 #include "googleurl/src/url_util.h" | 53 #include "googleurl/src/url_util.h" |
54 #include "third_party/skia/include/core/SkBitmap.h" | 54 #include "third_party/skia/include/core/SkBitmap.h" |
55 | 55 |
56 using content::UserMetricsAction; | 56 using content::UserMetricsAction; |
| 57 using predictors::AutocompleteActionPredictor; |
| 58 using predictors::AutocompleteActionPredictorFactory; |
57 | 59 |
58 /////////////////////////////////////////////////////////////////////////////// | 60 /////////////////////////////////////////////////////////////////////////////// |
59 // AutocompleteEditController | 61 // AutocompleteEditController |
60 | 62 |
61 AutocompleteEditController::~AutocompleteEditController() { | 63 AutocompleteEditController::~AutocompleteEditController() { |
62 } | 64 } |
63 | 65 |
64 /////////////////////////////////////////////////////////////////////////////// | 66 /////////////////////////////////////////////////////////////////////////////// |
65 // AutocompleteEditModel::State | 67 // AutocompleteEditModel::State |
66 | 68 |
(...skipping 1079 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1146 return metrics::OmniboxEventProto_PageClassification_INVALID_SPEC; | 1148 return metrics::OmniboxEventProto_PageClassification_INVALID_SPEC; |
1147 const std::string& url = gurl.spec(); | 1149 const std::string& url = gurl.spec(); |
1148 if (url == chrome::kChromeUINewTabURL) | 1150 if (url == chrome::kChromeUINewTabURL) |
1149 return metrics::OmniboxEventProto_PageClassification_NEW_TAB_PAGE; | 1151 return metrics::OmniboxEventProto_PageClassification_NEW_TAB_PAGE; |
1150 if (url == chrome::kAboutBlankURL) | 1152 if (url == chrome::kAboutBlankURL) |
1151 return metrics::OmniboxEventProto_PageClassification_BLANK; | 1153 return metrics::OmniboxEventProto_PageClassification_BLANK; |
1152 if (url == profile()->GetPrefs()->GetString(prefs::kHomePage)) | 1154 if (url == profile()->GetPrefs()->GetString(prefs::kHomePage)) |
1153 return metrics::OmniboxEventProto_PageClassification_HOMEPAGE; | 1155 return metrics::OmniboxEventProto_PageClassification_HOMEPAGE; |
1154 return metrics::OmniboxEventProto_PageClassification_OTHER; | 1156 return metrics::OmniboxEventProto_PageClassification_OTHER; |
1155 } | 1157 } |
OLD | NEW |