Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(798)

Side by Side Diff: chrome/browser/omnibox/omnibox_field_trial.h

Issue 307003002: Omnibox: HistoryQuick Provider Scoring: Boost Bookmarks (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/omnibox/omnibox_field_trial.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #ifndef CHROME_BROWSER_OMNIBOX_OMNIBOX_FIELD_TRIAL_H_ 5 #ifndef CHROME_BROWSER_OMNIBOX_OMNIBOX_FIELD_TRIAL_H_
6 #define CHROME_BROWSER_OMNIBOX_OMNIBOX_FIELD_TRIAL_H_ 6 #define CHROME_BROWSER_OMNIBOX_OMNIBOX_FIELD_TRIAL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 // experiment. If there is no such experiment, this function simply sets 230 // experiment. If there is no such experiment, this function simply sets
231 // |scoring_params|->experimental_scoring_enabled to false. 231 // |scoring_params|->experimental_scoring_enabled to false.
232 static void GetExperimentalHUPScoringParams(HUPScoringParams* scoring_params); 232 static void GetExperimentalHUPScoringParams(HUPScoringParams* scoring_params);
233 233
234 // For the HQPBookmarkValue experiment that's part of the 234 // For the HQPBookmarkValue experiment that's part of the
235 // bundled omnibox field trial. 235 // bundled omnibox field trial.
236 236
237 // Returns the value an untyped visit to a bookmark should receive. 237 // Returns the value an untyped visit to a bookmark should receive.
238 // Compare this value with the default of 1 for non-bookmarked untyped 238 // Compare this value with the default of 1 for non-bookmarked untyped
239 // visits to pages and the default of 20 for typed visits. Returns 239 // visits to pages and the default of 20 for typed visits. Returns
240 // 1 if the bookmark value experiment isn't active. 240 // 10 if the bookmark value experiment isn't active.
241 static int HQPBookmarkValue(); 241 static int HQPBookmarkValue();
242 242
243 // --------------------------------------------------------- 243 // ---------------------------------------------------------
244 // For the HQPAllowMatchInTLD experiment that's part of the 244 // For the HQPAllowMatchInTLD experiment that's part of the
245 // bundled omnibox field trial. 245 // bundled omnibox field trial.
246 246
247 // Returns true if HQP should allow an input term to match in the 247 // Returns true if HQP should allow an input term to match in the
248 // top level domain (e.g., .com) of a URL. Returns false if the 248 // top level domain (e.g., .com) of a URL. Returns false if the
249 // allow match in TLD experiment isn't active. 249 // allow match in TLD experiment isn't active.
250 static bool HQPAllowMatchInTLDValue(); 250 static bool HQPAllowMatchInTLDValue();
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 // prioritize different wildcard contexts, see the implementation. How to 312 // prioritize different wildcard contexts, see the implementation. How to
313 // interpret the value is left to the caller; this is rule-dependent. 313 // interpret the value is left to the caller; this is rule-dependent.
314 static std::string GetValueForRuleInContext( 314 static std::string GetValueForRuleInContext(
315 const std::string& rule, 315 const std::string& rule,
316 AutocompleteInput::PageClassification page_classification); 316 AutocompleteInput::PageClassification page_classification);
317 317
318 DISALLOW_IMPLICIT_CONSTRUCTORS(OmniboxFieldTrial); 318 DISALLOW_IMPLICIT_CONSTRUCTORS(OmniboxFieldTrial);
319 }; 319 };
320 320
321 #endif // CHROME_BROWSER_OMNIBOX_OMNIBOX_FIELD_TRIAL_H_ 321 #endif // CHROME_BROWSER_OMNIBOX_OMNIBOX_FIELD_TRIAL_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/omnibox/omnibox_field_trial.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698