| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 COMPONENTS_OMNIBOX_BROWSER_OMNIBOX_FIELD_TRIAL_H_ | 5 #ifndef COMPONENTS_OMNIBOX_BROWSER_OMNIBOX_FIELD_TRIAL_H_ |
| 6 #define COMPONENTS_OMNIBOX_BROWSER_OMNIBOX_FIELD_TRIAL_H_ | 6 #define COMPONENTS_OMNIBOX_BROWSER_OMNIBOX_FIELD_TRIAL_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 419 // (no "?"). | 419 // (no "?"). |
| 420 static std::string ZeroSuggestRedirectToChromeServerAddress(); | 420 static std::string ZeroSuggestRedirectToChromeServerAddress(); |
| 421 | 421 |
| 422 // Returns a string representing the parameters that are sent to the | 422 // Returns a string representing the parameters that are sent to the |
| 423 // alternative service providing zero suggestions. The returned value is | 423 // alternative service providing zero suggestions. The returned value is |
| 424 // properly escaped. It can be appended to the string representaiton of a | 424 // properly escaped. It can be appended to the string representaiton of a |
| 425 // request URL. | 425 // request URL. |
| 426 static std::string ZeroSuggestRedirectToChromeAdditionalFields(); | 426 static std::string ZeroSuggestRedirectToChromeAdditionalFields(); |
| 427 | 427 |
| 428 // --------------------------------------------------------- | 428 // --------------------------------------------------------- |
| 429 // Clipboard URL suggestions: |
| 430 |
| 431 // The parameter "ClipboardURLMaximumAge" doesn't live in this file; instead |
| 432 // it lives in |
| 433 // components/open_from_clipboard/clipboard_recent_content.cc. |
| 434 // Please see ClipboardRecentContent::MaximumAgeOfClipboard() for the usage |
| 435 // of it. The parameter cannot live here because that component cannot |
| 436 // include this component, else there would be a circular dependency. |
| 437 |
| 438 // --------------------------------------------------------- |
| 429 // Exposed publicly for the sake of unittests. | 439 // Exposed publicly for the sake of unittests. |
| 430 static const char kBundledExperimentFieldTrialName[]; | 440 static const char kBundledExperimentFieldTrialName[]; |
| 431 // Rule names used by the bundled experiment. | 441 // Rule names used by the bundled experiment. |
| 432 static const char kDisableProvidersRule[]; | 442 static const char kDisableProvidersRule[]; |
| 433 static const char kShortcutsScoringMaxRelevanceRule[]; | 443 static const char kShortcutsScoringMaxRelevanceRule[]; |
| 434 static const char kSearchHistoryRule[]; | 444 static const char kSearchHistoryRule[]; |
| 435 static const char kDemoteByTypeRule[]; | 445 static const char kDemoteByTypeRule[]; |
| 436 static const char kHQPBookmarkValueRule[]; | 446 static const char kHQPBookmarkValueRule[]; |
| 437 static const char kHQPTypedValueRule[]; | 447 static const char kHQPTypedValueRule[]; |
| 438 static const char kHQPDiscountFrecencyWhenFewVisitsRule[]; | 448 static const char kHQPDiscountFrecencyWhenFewVisitsRule[]; |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 508 // prioritize different wildcard contexts, see the implementation. How to | 518 // prioritize different wildcard contexts, see the implementation. How to |
| 509 // interpret the value is left to the caller; this is rule-dependent. | 519 // interpret the value is left to the caller; this is rule-dependent. |
| 510 static std::string GetValueForRuleInContext( | 520 static std::string GetValueForRuleInContext( |
| 511 const std::string& rule, | 521 const std::string& rule, |
| 512 metrics::OmniboxEventProto::PageClassification page_classification); | 522 metrics::OmniboxEventProto::PageClassification page_classification); |
| 513 | 523 |
| 514 DISALLOW_IMPLICIT_CONSTRUCTORS(OmniboxFieldTrial); | 524 DISALLOW_IMPLICIT_CONSTRUCTORS(OmniboxFieldTrial); |
| 515 }; | 525 }; |
| 516 | 526 |
| 517 #endif // COMPONENTS_OMNIBOX_BROWSER_OMNIBOX_FIELD_TRIAL_H_ | 527 #endif // COMPONENTS_OMNIBOX_BROWSER_OMNIBOX_FIELD_TRIAL_H_ |
| OLD | NEW |