OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 package org.chromium.chrome.browser.contextualsearch; | 5 package org.chromium.chrome.browser.contextualsearch; |
6 | 6 |
7 /** | 7 /** |
8 * A piece of conditional behavior that supports experimentation and logging. | 8 * A piece of conditional behavior that supports experimentation and logging. |
9 */ | 9 */ |
10 abstract class ContextualSearchHeuristic { | 10 abstract class ContextualSearchHeuristic { |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 return false; | 52 return false; |
53 } | 53 } |
54 | 54 |
55 /** | 55 /** |
56 * Logs the heuristic to UMA through Ranker logging for the purpose of Tap S
uppression. | 56 * Logs the heuristic to UMA through Ranker logging for the purpose of Tap S
uppression. |
57 * @param logger A logger to log to. | 57 * @param logger A logger to log to. |
58 */ | 58 */ |
59 protected void logRankerTapSuppression(ContextualSearchRankerLogger logger)
{ | 59 protected void logRankerTapSuppression(ContextualSearchRankerLogger logger)
{ |
60 // Default is to not log. | 60 // Default is to not log. |
61 } | 61 } |
| 62 |
| 63 /** |
| 64 * Logs a Ranker outcome using the heuristic for the purpose of Ranker Tap S
uppression. |
| 65 * @param logger A logger to log to. |
| 66 */ |
| 67 protected void logRankerTapSuppressionOutcome(ContextualSearchRankerLogger l
ogger) { |
| 68 // Default is to not log. |
| 69 } |
62 } | 70 } |
OLD | NEW |