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

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: fix ALL_MATCHES (in response to recent changes) 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 <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 // --------------------------------------------------------- 252 // ---------------------------------------------------------
253 // For the HQPAllowMatchInScheme experiment that's part of the 253 // For the HQPAllowMatchInScheme experiment that's part of the
254 // bundled omnibox field trial. 254 // bundled omnibox field trial.
255 255
256 // Returns true if HQP should allow an input term to match in the 256 // Returns true if HQP should allow an input term to match in the
257 // scheme (e.g., http://) of a URL. Returns false if the allow 257 // scheme (e.g., http://) of a URL. Returns false if the allow
258 // match in scheme experiment isn't active. 258 // match in scheme experiment isn't active.
259 static bool HQPAllowMatchInSchemeValue(); 259 static bool HQPAllowMatchInSchemeValue();
260 260
261 // --------------------------------------------------------- 261 // ---------------------------------------------------------
262 // For the BookmarksIndexURLs experiment that's part of the
263 // bundled omnibox field trial.
264
265 // Returns true if BookmarkIndex should index the URL of bookmarks
266 // (not only the titles) and search for / mark matches in the URLs,
267 // and BookmarkProvider should score bookmarks based on both the
268 // matches in bookmark title and URL. Returns false if the bookmarks
269 // index URLs experiment isn't active.
270 static bool BookmarksIndexURLsValue();
271
272 // ---------------------------------------------------------
262 // Exposed publicly for the sake of unittests. 273 // Exposed publicly for the sake of unittests.
263 static const char kBundledExperimentFieldTrialName[]; 274 static const char kBundledExperimentFieldTrialName[];
264 // Rule names used by the bundled experiment. 275 // Rule names used by the bundled experiment.
265 static const char kShortcutsScoringMaxRelevanceRule[]; 276 static const char kShortcutsScoringMaxRelevanceRule[];
266 static const char kSearchHistoryRule[]; 277 static const char kSearchHistoryRule[];
267 static const char kDemoteByTypeRule[]; 278 static const char kDemoteByTypeRule[];
268 static const char kHQPBookmarkValueRule[]; 279 static const char kHQPBookmarkValueRule[];
269 static const char kHQPDiscountFrecencyWhenFewVisitsRule[]; 280 static const char kHQPDiscountFrecencyWhenFewVisitsRule[];
270 static const char kHQPAllowMatchInTLDRule[]; 281 static const char kHQPAllowMatchInTLDRule[];
271 static const char kHQPAllowMatchInSchemeRule[]; 282 static const char kHQPAllowMatchInSchemeRule[];
272 static const char kZeroSuggestRule[]; 283 static const char kZeroSuggestRule[];
273 static const char kZeroSuggestVariantRule[]; 284 static const char kZeroSuggestVariantRule[];
285 static const char kBookmarksIndexURLsRule[];
274 286
275 // Parameter names used by the HUP new scoring experiments. 287 // Parameter names used by the HUP new scoring experiments.
276 static const char kHUPNewScoringEnabledParam[]; 288 static const char kHUPNewScoringEnabledParam[];
277 static const char kHUPNewScoringTypedCountRelevanceCapParam[]; 289 static const char kHUPNewScoringTypedCountRelevanceCapParam[];
278 static const char kHUPNewScoringTypedCountHalfLifeTimeParam[]; 290 static const char kHUPNewScoringTypedCountHalfLifeTimeParam[];
279 static const char kHUPNewScoringTypedCountScoreBucketsParam[]; 291 static const char kHUPNewScoringTypedCountScoreBucketsParam[];
280 static const char kHUPNewScoringVisitedCountRelevanceCapParam[]; 292 static const char kHUPNewScoringVisitedCountRelevanceCapParam[];
281 static const char kHUPNewScoringVisitedCountHalfLifeTimeParam[]; 293 static const char kHUPNewScoringVisitedCountHalfLifeTimeParam[];
282 static const char kHUPNewScoringVisitedCountScoreBucketsParam[]; 294 static const char kHUPNewScoringVisitedCountScoreBucketsParam[];
283 295
(...skipping 16 matching lines...) Expand all
300 // prioritize different wildcard contexts, see the implementation. How to 312 // prioritize different wildcard contexts, see the implementation. How to
301 // 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.
302 static std::string GetValueForRuleInContext( 314 static std::string GetValueForRuleInContext(
303 const std::string& rule, 315 const std::string& rule,
304 AutocompleteInput::PageClassification page_classification); 316 AutocompleteInput::PageClassification page_classification);
305 317
306 DISALLOW_IMPLICIT_CONSTRUCTORS(OmniboxFieldTrial); 318 DISALLOW_IMPLICIT_CONSTRUCTORS(OmniboxFieldTrial);
307 }; 319 };
308 320
309 #endif // CHROME_BROWSER_OMNIBOX_OMNIBOX_FIELD_TRIAL_H_ 321 #endif // CHROME_BROWSER_OMNIBOX_OMNIBOX_FIELD_TRIAL_H_
OLDNEW
« no previous file with comments | « chrome/browser/importer/profile_writer_unittest.cc ('k') | chrome/browser/omnibox/omnibox_field_trial.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698