OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 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_VARIATIONS_PROCESSED_STUDY_H_ | 5 #ifndef COMPONENTS_VARIATIONS_PROCESSED_STUDY_H_ |
6 #define COMPONENTS_VARIATIONS_PROCESSED_STUDY_H_ | 6 #define COMPONENTS_VARIATIONS_PROCESSED_STUDY_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/metrics/field_trial.h" | 11 #include "base/metrics/field_trial.h" |
12 | 12 |
13 namespace chrome_variations { | 13 namespace variations { |
14 | 14 |
15 class Study; | 15 class Study; |
16 | 16 |
17 // Wrapper over Study with extra information computed during pre-processing, | 17 // Wrapper over Study with extra information computed during pre-processing, |
18 // such as whether the study is expired and its total probability. | 18 // such as whether the study is expired and its total probability. |
19 class ProcessedStudy { | 19 class ProcessedStudy { |
20 public: | 20 public: |
21 ProcessedStudy(); | 21 ProcessedStudy(); |
22 ~ProcessedStudy(); | 22 ~ProcessedStudy(); |
23 | 23 |
(...skipping 20 matching lines...) Expand all Loading... |
44 // Corresponding Study object. Weak reference. | 44 // Corresponding Study object. Weak reference. |
45 const Study* study_; | 45 const Study* study_; |
46 | 46 |
47 // Computed total group probability for the study. | 47 // Computed total group probability for the study. |
48 base::FieldTrial::Probability total_probability_; | 48 base::FieldTrial::Probability total_probability_; |
49 | 49 |
50 // Whether the study is expired. | 50 // Whether the study is expired. |
51 bool is_expired_; | 51 bool is_expired_; |
52 }; | 52 }; |
53 | 53 |
54 } // namespace chrome_variations | 54 } // namespace variations |
55 | 55 |
56 #endif // COMPONENTS_VARIATIONS_PROCESSED_STUDY_H_ | 56 #endif // COMPONENTS_VARIATIONS_PROCESSED_STUDY_H_ |
OLD | NEW |