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

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

Issue 348433009: [AiS] Command-line flag and field trial changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Respond to comments 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
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 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 275
276 // Returns true if AutocompleteResult should prevent any suggestion with 276 // Returns true if AutocompleteResult should prevent any suggestion with
277 // a non-empty |inline_autocomplete| from being the default match. In 277 // a non-empty |inline_autocomplete| from being the default match. In
278 // other words, prevent an inline autocompletion from appearing as the 278 // other words, prevent an inline autocompletion from appearing as the
279 // top suggestion / within the omnibox itself, reordering matches as 279 // top suggestion / within the omnibox itself, reordering matches as
280 // necessary to make this true. Returns false if the experiment isn't 280 // necessary to make this true. Returns false if the experiment isn't
281 // active. 281 // active.
282 static bool DisableInlining(); 282 static bool DisableInlining();
283 283
284 // --------------------------------------------------------- 284 // ---------------------------------------------------------
285 // For the AnswersInSuggest experiment that's part of the bundled omnibox
286 // field trial.
287
288 // Returns true if the AnswersInSuggest feature should be enabled causing
289 // query responses such as current weather conditions or stock quotes
290 // to be provided in the Omnibox suggestion list. Considers both the
291 // field trial state as well as the overriding command-line flags.
292 static bool EnableAnswersInSuggest();
293
294 // ---------------------------------------------------------
285 // Exposed publicly for the sake of unittests. 295 // Exposed publicly for the sake of unittests.
286 static const char kBundledExperimentFieldTrialName[]; 296 static const char kBundledExperimentFieldTrialName[];
287 // Rule names used by the bundled experiment. 297 // Rule names used by the bundled experiment.
288 static const char kShortcutsScoringMaxRelevanceRule[]; 298 static const char kShortcutsScoringMaxRelevanceRule[];
289 static const char kSearchHistoryRule[]; 299 static const char kSearchHistoryRule[];
290 static const char kDemoteByTypeRule[]; 300 static const char kDemoteByTypeRule[];
291 static const char kHQPBookmarkValueRule[]; 301 static const char kHQPBookmarkValueRule[];
292 static const char kHQPDiscountFrecencyWhenFewVisitsRule[]; 302 static const char kHQPDiscountFrecencyWhenFewVisitsRule[];
293 static const char kHQPAllowMatchInTLDRule[]; 303 static const char kHQPAllowMatchInTLDRule[];
294 static const char kHQPAllowMatchInSchemeRule[]; 304 static const char kHQPAllowMatchInSchemeRule[];
295 static const char kZeroSuggestRule[]; 305 static const char kZeroSuggestRule[];
296 static const char kZeroSuggestVariantRule[]; 306 static const char kZeroSuggestVariantRule[];
297 static const char kBookmarksIndexURLsRule[]; 307 static const char kBookmarksIndexURLsRule[];
298 static const char kDisableInliningRule[]; 308 static const char kDisableInliningRule[];
309 static const char kAnswersInSuggestRule[];
299 310
300 // Parameter names used by the HUP new scoring experiments. 311 // Parameter names used by the HUP new scoring experiments.
301 static const char kHUPNewScoringEnabledParam[]; 312 static const char kHUPNewScoringEnabledParam[];
302 static const char kHUPNewScoringTypedCountRelevanceCapParam[]; 313 static const char kHUPNewScoringTypedCountRelevanceCapParam[];
303 static const char kHUPNewScoringTypedCountHalfLifeTimeParam[]; 314 static const char kHUPNewScoringTypedCountHalfLifeTimeParam[];
304 static const char kHUPNewScoringTypedCountScoreBucketsParam[]; 315 static const char kHUPNewScoringTypedCountScoreBucketsParam[];
305 static const char kHUPNewScoringVisitedCountRelevanceCapParam[]; 316 static const char kHUPNewScoringVisitedCountRelevanceCapParam[];
306 static const char kHUPNewScoringVisitedCountHalfLifeTimeParam[]; 317 static const char kHUPNewScoringVisitedCountHalfLifeTimeParam[];
307 static const char kHUPNewScoringVisitedCountScoreBucketsParam[]; 318 static const char kHUPNewScoringVisitedCountScoreBucketsParam[];
308 319
(...skipping 16 matching lines...) Expand all
325 // prioritize different wildcard contexts, see the implementation. How to 336 // prioritize different wildcard contexts, see the implementation. How to
326 // interpret the value is left to the caller; this is rule-dependent. 337 // interpret the value is left to the caller; this is rule-dependent.
327 static std::string GetValueForRuleInContext( 338 static std::string GetValueForRuleInContext(
328 const std::string& rule, 339 const std::string& rule,
329 AutocompleteInput::PageClassification page_classification); 340 AutocompleteInput::PageClassification page_classification);
330 341
331 DISALLOW_IMPLICIT_CONSTRUCTORS(OmniboxFieldTrial); 342 DISALLOW_IMPLICIT_CONSTRUCTORS(OmniboxFieldTrial);
332 }; 343 };
333 344
334 #endif // CHROME_BROWSER_OMNIBOX_OMNIBOX_FIELD_TRIAL_H_ 345 #endif // CHROME_BROWSER_OMNIBOX_OMNIBOX_FIELD_TRIAL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698