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 CHROME_BROWSER_METRICS_VARIATIONS_VARIATIONS_SEED_PROCESSOR_H_ | 5 #ifndef COMPONENTS_VARIATIONS_VARIATIONS_SEED_PROCESSOR_H_ |
6 #define CHROME_BROWSER_METRICS_VARIATIONS_VARIATIONS_SEED_PROCESSOR_H_ | 6 #define COMPONENTS_VARIATIONS_VARIATIONS_SEED_PROCESSOR_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
11 #include "base/gtest_prod_util.h" | 11 #include "base/gtest_prod_util.h" |
12 #include "base/metrics/field_trial.h" | 12 #include "base/metrics/field_trial.h" |
13 #include "base/time/time.h" | 13 #include "base/time/time.h" |
14 #include "base/version.h" | 14 #include "base/version.h" |
15 #include "chrome/browser/metrics/proto/study.pb.h" | 15 #include "components/variations/proto/study.pb.h" |
16 #include "chrome/browser/metrics/proto/trials_seed.pb.h" | 16 #include "components/variations/proto/trials_seed.pb.h" |
17 | 17 |
18 namespace chrome_variations { | 18 namespace chrome_variations { |
19 | 19 |
20 // Helper class to instantiate field trials from a variations seed. | 20 // Helper class to instantiate field trials from a variations seed. |
21 class VariationsSeedProcessor { | 21 class VariationsSeedProcessor { |
22 public: | 22 public: |
23 VariationsSeedProcessor(); | 23 VariationsSeedProcessor(); |
24 virtual ~VariationsSeedProcessor(); | 24 virtual ~VariationsSeedProcessor(); |
25 | 25 |
26 // Creates field trials from the specified variations |seed|, based on the | 26 // Creates field trials from the specified variations |seed|, based on the |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 // Validates the sanity of |study| and computes the total probability. | 86 // Validates the sanity of |study| and computes the total probability. |
87 bool ValidateStudyAndComputeTotalProbability( | 87 bool ValidateStudyAndComputeTotalProbability( |
88 const Study& study, | 88 const Study& study, |
89 base::FieldTrial::Probability* total_probability); | 89 base::FieldTrial::Probability* total_probability); |
90 | 90 |
91 DISALLOW_COPY_AND_ASSIGN(VariationsSeedProcessor); | 91 DISALLOW_COPY_AND_ASSIGN(VariationsSeedProcessor); |
92 }; | 92 }; |
93 | 93 |
94 } // namespace chrome_variations | 94 } // namespace chrome_variations |
95 | 95 |
96 #endif // CHROME_BROWSER_METRICS_VARIATIONS_VARIATIONS_SEED_PROCESSOR_H_ | 96 #endif // COMPONENTS_VARIATIONS_VARIATIONS_SEED_PROCESSOR_H_ |
OLD | NEW |