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

Side by Side Diff: chrome/browser/metrics/field_trial_synchronizer.h

Issue 8539006: Cleanup: Remove unneeded forward declarations from various chrome/browser subdirectories. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: rebase Created 9 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/basictypes.h" 12 #include "base/basictypes.h"
13 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
14 #include "base/metrics/field_trial.h" 14 #include "base/metrics/field_trial.h"
15 15
16 class MessageLoop;
17 class Task;
18
19 // This class is used by the browser process to communicate FieldTrial setting 16 // This class is used by the browser process to communicate FieldTrial setting
20 // (field trial name and group) to any previously started renderers. 17 // (field trial name and group) to any previously started renderers.
21 // 18 //
22 // This class registers itself as an observer of FieldTrialList. FieldTrialList 19 // This class registers itself as an observer of FieldTrialList. FieldTrialList
23 // notifies this class by calling it's OnFieldTrialGroupFinalized method when a 20 // notifies this class by calling it's OnFieldTrialGroupFinalized method when a
24 // group is selected (finalized) for a FieldTrial and OnFieldTrialGroupFinalized 21 // group is selected (finalized) for a FieldTrial and OnFieldTrialGroupFinalized
25 // method sends the FieldTrial's name and the group to all renderer processes. 22 // method sends the FieldTrial's name and the group to all renderer processes.
26 // Each renderer process creates the FieldTrial, and by using a 100% probability 23 // Each renderer process creates the FieldTrial, and by using a 100% probability
27 // for the FieldTrial, forces the FieldTrial to have the same group string. 24 // for the FieldTrial, forces the FieldTrial to have the same group string.
28 25
(...skipping 29 matching lines...) Expand all
58 // This singleton instance should be constructed during the single threaded 55 // This singleton instance should be constructed during the single threaded
59 // portion of main(). It initializes globals to provide support for all future 56 // portion of main(). It initializes globals to provide support for all future
60 // calls. This object is created on the UI thread, and it is destroyed after 57 // calls. This object is created on the UI thread, and it is destroyed after
61 // all the other threads have gone away. 58 // all the other threads have gone away.
62 static FieldTrialSynchronizer* field_trial_synchronizer_; 59 static FieldTrialSynchronizer* field_trial_synchronizer_;
63 60
64 DISALLOW_COPY_AND_ASSIGN(FieldTrialSynchronizer); 61 DISALLOW_COPY_AND_ASSIGN(FieldTrialSynchronizer);
65 }; 62 };
66 63
67 #endif // CHROME_BROWSER_METRICS_FIELD_TRIAL_SYNCHRONIZER_H_ 64 #endif // CHROME_BROWSER_METRICS_FIELD_TRIAL_SYNCHRONIZER_H_
OLDNEW
« no previous file with comments | « chrome/browser/intents/register_intent_handler_infobar_delegate.h ('k') | chrome/browser/metrics/metrics_log.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698