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

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

Issue 1551433002: Switch to standard integer types in components/, part 3 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more Created 4 years, 12 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 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>
9 #include <stdint.h>
10
8 #include <map> 11 #include <map>
9 #include <string> 12 #include <string>
10 #include <vector> 13 #include <vector>
11 14
12 #include "base/basictypes.h" 15 #include "base/macros.h"
13 #include "components/metrics/proto/omnibox_event.pb.h" 16 #include "components/metrics/proto/omnibox_event.pb.h"
14 #include "components/omnibox/browser/autocomplete_match_type.h" 17 #include "components/omnibox/browser/autocomplete_match_type.h"
15 18
16 namespace base { 19 namespace base {
17 class TimeDelta; 20 class TimeDelta;
18 } 21 }
19 22
20 // The set of parameters customizing the HUP scoring. 23 // The set of parameters customizing the HUP scoring.
21 struct HUPScoringParams { 24 struct HUPScoringParams {
22 // A set of parameters describing how to cap a given count score. First, 25 // A set of parameters describing how to cap a given count score. First,
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 // Returns whether the user is in any dynamic field trial where the 119 // Returns whether the user is in any dynamic field trial where the
117 // group has a the prefix |group_prefix|. 120 // group has a the prefix |group_prefix|.
118 static bool HasDynamicFieldTrialGroupPrefix(const char *group_prefix); 121 static bool HasDynamicFieldTrialGroupPrefix(const char *group_prefix);
119 122
120 // --------------------------------------------------------- 123 // ---------------------------------------------------------
121 // For the suggest field trial. 124 // For the suggest field trial.
122 125
123 // Populates |field_trial_hash| with hashes of the active suggest field trial 126 // Populates |field_trial_hash| with hashes of the active suggest field trial
124 // names, if any. 127 // names, if any.
125 static void GetActiveSuggestFieldTrialHashes( 128 static void GetActiveSuggestFieldTrialHashes(
126 std::vector<uint32>* field_trial_hash); 129 std::vector<uint32_t>* field_trial_hash);
127 130
128 // --------------------------------------------------------- 131 // ---------------------------------------------------------
129 // For the AutocompleteController "stop timer" field trial. 132 // For the AutocompleteController "stop timer" field trial.
130 133
131 // Returns the duration to be used for the AutocompleteController's stop 134 // Returns the duration to be used for the AutocompleteController's stop
132 // timer. Returns the default value of 1.5 seconds if the stop timer 135 // timer. Returns the default value of 1.5 seconds if the stop timer
133 // override experiment isn't active or if parsing the experiment-provided 136 // override experiment isn't active or if parsing the experiment-provided
134 // duration fails. 137 // duration fails.
135 static base::TimeDelta StopTimerFieldTrialDuration(); 138 static base::TimeDelta StopTimerFieldTrialDuration();
136 139
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after
430 // prioritize different wildcard contexts, see the implementation. How to 433 // prioritize different wildcard contexts, see the implementation. How to
431 // interpret the value is left to the caller; this is rule-dependent. 434 // interpret the value is left to the caller; this is rule-dependent.
432 static std::string GetValueForRuleInContext( 435 static std::string GetValueForRuleInContext(
433 const std::string& rule, 436 const std::string& rule,
434 metrics::OmniboxEventProto::PageClassification page_classification); 437 metrics::OmniboxEventProto::PageClassification page_classification);
435 438
436 DISALLOW_IMPLICIT_CONSTRUCTORS(OmniboxFieldTrial); 439 DISALLOW_IMPLICIT_CONSTRUCTORS(OmniboxFieldTrial);
437 }; 440 };
438 441
439 #endif // COMPONENTS_OMNIBOX_BROWSER_OMNIBOX_FIELD_TRIAL_H_ 442 #endif // COMPONENTS_OMNIBOX_BROWSER_OMNIBOX_FIELD_TRIAL_H_
OLDNEW
« no previous file with comments | « components/omnibox/browser/omnibox_edit_model.cc ('k') | components/omnibox/browser/omnibox_field_trial.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698