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

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

Issue 184663002: Omnibox: Make URLs of Bookmarks Searchable (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Peter's comments Created 6 years, 8 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
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 <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 // --------------------------------------------------------- 261 // ---------------------------------------------------------
262 // For the HQPAllowMatchInScheme experiment that's part of the 262 // For the HQPAllowMatchInScheme experiment that's part of the
263 // bundled omnibox field trial. 263 // bundled omnibox field trial.
264 264
265 // Returns true if HQP should allow an input term to match in the 265 // Returns true if HQP should allow an input term to match in the
266 // scheme (e.g., http://) of a URL. Returns false if the allow 266 // scheme (e.g., http://) of a URL. Returns false if the allow
267 // match in scheme experiment isn't active. 267 // match in scheme experiment isn't active.
268 static bool HQPAllowMatchInSchemeValue(); 268 static bool HQPAllowMatchInSchemeValue();
269 269
270 // --------------------------------------------------------- 270 // ---------------------------------------------------------
271 // For the BookmarksIndexURLs experiment that's part of the
272 // bundled omnibox field trial.
273
274 // Returns true if BookmarkIndex should index the URL of bookmarks
275 // (not only the titles) and search for / mark matches in the URLs,
276 // and BookmarkProvider should score bookmarks based on both the
277 // matches in bookmark title and URL. Returns false if the bookmarks
278 // index URLs experiment isn't active.
279 static bool BookmarksIndexURLsValue();
280
281 // ---------------------------------------------------------
271 // Exposed publicly for the sake of unittests. 282 // Exposed publicly for the sake of unittests.
272 static const char kBundledExperimentFieldTrialName[]; 283 static const char kBundledExperimentFieldTrialName[];
273 // Rule names used by the bundled experiment. 284 // Rule names used by the bundled experiment.
274 static const char kShortcutsScoringMaxRelevanceRule[]; 285 static const char kShortcutsScoringMaxRelevanceRule[];
275 static const char kSearchHistoryRule[]; 286 static const char kSearchHistoryRule[];
276 static const char kDemoteByTypeRule[]; 287 static const char kDemoteByTypeRule[];
277 static const char kUndemotableTopTypeRule[]; 288 static const char kUndemotableTopTypeRule[];
278 static const char kHQPBookmarkValueRule[]; 289 static const char kHQPBookmarkValueRule[];
279 static const char kHQPDiscountFrecencyWhenFewVisitsRule[]; 290 static const char kHQPDiscountFrecencyWhenFewVisitsRule[];
280 static const char kHQPAllowMatchInTLDRule[]; 291 static const char kHQPAllowMatchInTLDRule[];
281 static const char kHQPAllowMatchInSchemeRule[]; 292 static const char kHQPAllowMatchInSchemeRule[];
282 static const char kZeroSuggestRule[]; 293 static const char kZeroSuggestRule[];
283 static const char kZeroSuggestVariantRule[]; 294 static const char kZeroSuggestVariantRule[];
295 static const char kBookmarksIndexURLsRule[];
284 296
285 // Parameter names used by the HUP new scoring experiments. 297 // Parameter names used by the HUP new scoring experiments.
286 static const char kHUPNewScoringEnabledParam[]; 298 static const char kHUPNewScoringEnabledParam[];
287 static const char kHUPNewScoringTypedCountRelevanceCapParam[]; 299 static const char kHUPNewScoringTypedCountRelevanceCapParam[];
288 static const char kHUPNewScoringTypedCountHalfLifeTimeParam[]; 300 static const char kHUPNewScoringTypedCountHalfLifeTimeParam[];
289 static const char kHUPNewScoringTypedCountScoreBucketsParam[]; 301 static const char kHUPNewScoringTypedCountScoreBucketsParam[];
290 static const char kHUPNewScoringVisitedCountRelevanceCapParam[]; 302 static const char kHUPNewScoringVisitedCountRelevanceCapParam[];
291 static const char kHUPNewScoringVisitedCountHalfLifeTimeParam[]; 303 static const char kHUPNewScoringVisitedCountHalfLifeTimeParam[];
292 static const char kHUPNewScoringVisitedCountScoreBucketsParam[]; 304 static const char kHUPNewScoringVisitedCountScoreBucketsParam[];
293 305
(...skipping 16 matching lines...) Expand all
310 // prioritize different wildcard contexts, see the implementation. How to 322 // prioritize different wildcard contexts, see the implementation. How to
311 // interpret the value is left to the caller; this is rule-dependent. 323 // interpret the value is left to the caller; this is rule-dependent.
312 static std::string GetValueForRuleInContext( 324 static std::string GetValueForRuleInContext(
313 const std::string& rule, 325 const std::string& rule,
314 AutocompleteInput::PageClassification page_classification); 326 AutocompleteInput::PageClassification page_classification);
315 327
316 DISALLOW_IMPLICIT_CONSTRUCTORS(OmniboxFieldTrial); 328 DISALLOW_IMPLICIT_CONSTRUCTORS(OmniboxFieldTrial);
317 }; 329 };
318 330
319 #endif // CHROME_BROWSER_OMNIBOX_OMNIBOX_FIELD_TRIAL_H_ 331 #endif // CHROME_BROWSER_OMNIBOX_OMNIBOX_FIELD_TRIAL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698