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

Side by Side Diff: base/field_trial.h

Issue 118162: Reduce header dependencies in base/ (Closed)
Patch Set: Created 11 years, 6 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
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 // FieldTrial is a class for handling details of statistical experiments 5 // FieldTrial is a class for handling details of statistical experiments
6 // performed by actual users in the field (i.e., in a shipped or beta product). 6 // performed by actual users in the field (i.e., in a shipped or beta product).
7 // All code is called exclusively on the UI thread currently. 7 // All code is called exclusively on the UI thread currently.
8 // 8 //
9 // The simplest example is an experiment to see whether one of two options 9 // The simplest example is an experiment to see whether one of two options
10 // produces "better" results across our user population. In that scenario, UMA 10 // produces "better" results across our user population. In that scenario, UMA
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 59
60 //------------------------------------------------------------------------------ 60 //------------------------------------------------------------------------------
61 61
62 #ifndef BASE_FIELD_TRIAL_H_ 62 #ifndef BASE_FIELD_TRIAL_H_
63 #define BASE_FIELD_TRIAL_H_ 63 #define BASE_FIELD_TRIAL_H_
64 64
65 #include <map> 65 #include <map>
66 #include <string> 66 #include <string>
67 67
68 #include "base/lock.h" 68 #include "base/lock.h"
69 #include "base/non_thread_safe.h"
70 #include "base/ref_counted.h" 69 #include "base/ref_counted.h"
71 #include "base/time.h" 70 #include "base/time.h"
72 71
73 72
74 class FieldTrial : public base::RefCounted<FieldTrial> { 73 class FieldTrial : public base::RefCounted<FieldTrial> {
75 public: 74 public:
76 static const int kNotParticipating; 75 static const int kNotParticipating;
77 76
78 // Define a separator charactor to use when creating a persistent form of an 77 // Define a separator charactor to use when creating a persistent form of an
79 // instance. This is intended for use as a command line argument, passed to a 78 // instance. This is intended for use as a command line argument, passed to a
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 base::Time application_start_time_; 199 base::Time application_start_time_;
201 200
202 // Lock for access to registered_. 201 // Lock for access to registered_.
203 Lock lock_; 202 Lock lock_;
204 RegistrationList registered_; 203 RegistrationList registered_;
205 204
206 DISALLOW_COPY_AND_ASSIGN(FieldTrialList); 205 DISALLOW_COPY_AND_ASSIGN(FieldTrialList);
207 }; 206 };
208 207
209 #endif // BASE_FIELD_TRIAL_H_ 208 #endif // BASE_FIELD_TRIAL_H_
OLDNEW
« no previous file with comments | « base/debug_util_win.cc ('k') | base/file_version_info.h » ('j') | base/system_monitor.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698