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

Side by Side Diff: components/variations/processed_study.h

Issue 59103009: Refactor VariationsSeedProcessor to add ProcessedStudy struct. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « components/variations.gypi ('k') | components/variations/processed_study.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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_
OLDNEW
« no previous file with comments | « components/variations.gypi ('k') | components/variations/processed_study.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698