Index: chrome/browser/autocomplete/network_action_predictor.h |
diff --git a/chrome/browser/autocomplete/network_action_predictor.h b/chrome/browser/autocomplete/network_action_predictor.h |
index 0f3068a336c828e5d9593985ba6a84022d922a41..a8351e41adbc75359db727789fb61919dba779db 100644 |
--- a/chrome/browser/autocomplete/network_action_predictor.h |
+++ b/chrome/browser/autocomplete/network_action_predictor.h |
@@ -51,6 +51,9 @@ class NetworkActionPredictor |
explicit NetworkActionPredictor(Profile* profile); |
virtual ~NetworkActionPredictor(); |
+ static void set_hit_weight(double weight) { hit_weight_ = weight; } |
+ static double get_hit_weight() { return hit_weight_; } |
+ |
// Registers an AutocompleteResult for a given |user_text|. This will be used |
// when the user navigates from the Omnibox to determine early opportunities |
// to predict their actions. |
@@ -115,6 +118,11 @@ class NetworkActionPredictor |
static const int kMaximumDaysToKeepEntry; |
+ // Multiplying factor applied to the |number_of_hits| for a database entry |
+ // when calculating the confidence. It is currently set by a field trial so is |
+ // static. Once the field trial ends, this will be a constant value. |
+ static double hit_weight_; |
+ |
// ProfileKeyedService |
virtual void Shutdown() OVERRIDE; |