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

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

Issue 421663003: Move variations component code to variations namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Fix Created 6 years, 5 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 | Annotate | Revision Log
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « components/variations/android/variations_associated_data_android.cc ('k') | components/variations/processed_study.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698