OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_FIELD_TRIAL_SYNCHRONIZER_H_ | 5 #ifndef CHROME_BROWSER_METRICS_FIELD_TRIAL_SYNCHRONIZER_H_ |
6 #define CHROME_BROWSER_METRICS_FIELD_TRIAL_SYNCHRONIZER_H_ | 6 #define CHROME_BROWSER_METRICS_FIELD_TRIAL_SYNCHRONIZER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/macros.h" |
12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
13 #include "base/metrics/field_trial.h" | 13 #include "base/metrics/field_trial.h" |
14 | 14 |
15 // This class is used by the browser process to communicate FieldTrial setting | 15 // This class is used by the browser process to communicate FieldTrial setting |
16 // (field trial name and group) to any previously started renderers. | 16 // (field trial name and group) to any previously started renderers. |
17 // | 17 // |
18 // This class registers itself as an observer of FieldTrialList. FieldTrialList | 18 // This class registers itself as an observer of FieldTrialList. FieldTrialList |
19 // notifies this class by calling it's OnFieldTrialGroupFinalized method when a | 19 // notifies this class by calling it's OnFieldTrialGroupFinalized method when a |
20 // group is selected (finalized) for a FieldTrial and OnFieldTrialGroupFinalized | 20 // group is selected (finalized) for a FieldTrial and OnFieldTrialGroupFinalized |
21 // method sends the FieldTrial's name and the group to all renderer processes. | 21 // method sends the FieldTrial's name and the group to all renderer processes. |
(...skipping 27 matching lines...) Expand all Loading... |
49 const std::string& group_name) override; | 49 const std::string& group_name) override; |
50 | 50 |
51 private: | 51 private: |
52 friend class base::RefCountedThreadSafe<FieldTrialSynchronizer>; | 52 friend class base::RefCountedThreadSafe<FieldTrialSynchronizer>; |
53 ~FieldTrialSynchronizer() override; | 53 ~FieldTrialSynchronizer() override; |
54 | 54 |
55 DISALLOW_COPY_AND_ASSIGN(FieldTrialSynchronizer); | 55 DISALLOW_COPY_AND_ASSIGN(FieldTrialSynchronizer); |
56 }; | 56 }; |
57 | 57 |
58 #endif // CHROME_BROWSER_METRICS_FIELD_TRIAL_SYNCHRONIZER_H_ | 58 #endif // CHROME_BROWSER_METRICS_FIELD_TRIAL_SYNCHRONIZER_H_ |
OLD | NEW |