OLD | NEW |
(Empty) | |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef COMPONENTS_VARIATIONS_PROCESSED_STUDY_H_ |
| 6 #define COMPONENTS_VARIATIONS_PROCESSED_STUDY_H_ |
| 7 |
| 8 #include "base/metrics/field_trial.h" |
| 9 |
| 10 namespace chrome_variations { |
| 11 |
| 12 class Study; |
| 13 |
| 14 // Wrapper over Study with extra information computed during pre-processing, |
| 15 // such as whether the study is expired and its total probability. |
| 16 struct ProcessedStudy { |
| 17 ProcessedStudy(const Study* study, |
| 18 base::FieldTrial::Probability total_probability, |
| 19 bool is_expired); |
| 20 ~ProcessedStudy(); |
| 21 |
| 22 // Corresponding Study object. Weak reference. |
| 23 const Study* study; |
| 24 |
| 25 // Computed total group probability for the study. |
| 26 base::FieldTrial::Probability total_probability; |
| 27 |
| 28 // Whether the study is expired. |
| 29 bool is_expired; |
| 30 }; |
| 31 |
| 32 } // namespace chrome_variations |
| 33 |
| 34 #endif // COMPONENTS_VARIATIONS_PROCESSED_STUDY_H_ |
OLD | NEW |