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

Side by Side Diff: chrome/browser/chrome_browser_main.h

Issue 8413009: Changes to upload tracked_objects data from all renderer (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' 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_CHROME_BROWSER_MAIN_H_ 5 #ifndef CHROME_BROWSER_CHROME_BROWSER_MAIN_H_
6 #define CHROME_BROWSER_CHROME_BROWSER_MAIN_H_ 6 #define CHROME_BROWSER_CHROME_BROWSER_MAIN_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/gtest_prod_util.h" 10 #include "base/gtest_prod_util.h"
(...skipping 12 matching lines...) Expand all
23 class Profile; 23 class Profile;
24 class ShutdownWatcherHelper; 24 class ShutdownWatcherHelper;
25 class TranslateManager; 25 class TranslateManager;
26 26
27 namespace chrome_browser { 27 namespace chrome_browser {
28 // For use by ShowMissingLocaleMessageBox. 28 // For use by ShowMissingLocaleMessageBox.
29 extern const char kMissingLocaleDataTitle[]; 29 extern const char kMissingLocaleDataTitle[];
30 extern const char kMissingLocaleDataMessage[]; 30 extern const char kMissingLocaleDataMessage[];
31 } 31 }
32 32
33 namespace chrome_browser_metrics {
34 class TrackingSynchronizer;
35 }
36
33 namespace content { 37 namespace content {
34 struct MainFunctionParams; 38 struct MainFunctionParams;
35 } 39 }
36 40
37 class ChromeBrowserMainParts : public content::BrowserMainParts { 41 class ChromeBrowserMainParts : public content::BrowserMainParts {
38 public: 42 public:
39 virtual ~ChromeBrowserMainParts(); 43 virtual ~ChromeBrowserMainParts();
40 44
41 // Constructs metrics service and does related initialization, including 45 // Constructs metrics service and does related initialization, including
42 // creation of field trials. Call only after labs have been converted to 46 // creation of field trials. Call only after labs have been converted to
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 tracked_objects::AutoTracking tracking_objects_; 132 tracked_objects::AutoTracking tracking_objects_;
129 133
130 // Statistical testing infrastructure for the entire browser. NULL until 134 // Statistical testing infrastructure for the entire browser. NULL until
131 // SetupMetricsAndFieldTrials is called. 135 // SetupMetricsAndFieldTrials is called.
132 scoped_ptr<base::FieldTrialList> field_trial_list_; 136 scoped_ptr<base::FieldTrialList> field_trial_list_;
133 137
134 // Members initialized after / released before main_message_loop_ ------------ 138 // Members initialized after / released before main_message_loop_ ------------
135 139
136 scoped_ptr<BrowserProcessImpl> browser_process_; 140 scoped_ptr<BrowserProcessImpl> browser_process_;
137 scoped_refptr<HistogramSynchronizer> histogram_synchronizer_; 141 scoped_refptr<HistogramSynchronizer> histogram_synchronizer_;
142 scoped_refptr<chrome_browser_metrics::TrackingSynchronizer>
143 tracking_synchronizer_;
138 scoped_ptr<ProcessSingleton> process_singleton_; 144 scoped_ptr<ProcessSingleton> process_singleton_;
139 scoped_ptr<FirstRun::MasterPrefs> master_prefs_; 145 scoped_ptr<FirstRun::MasterPrefs> master_prefs_;
140 bool record_search_engine_; 146 bool record_search_engine_;
141 TranslateManager* translate_manager_; 147 TranslateManager* translate_manager_;
142 Profile* profile_; 148 Profile* profile_;
143 bool run_message_loop_; 149 bool run_message_loop_;
144 ProcessSingleton::NotifyResult notify_result_; 150 ProcessSingleton::NotifyResult notify_result_;
145 151
146 // Initialized in SetupMetricsAndFieldTrials. 152 // Initialized in SetupMetricsAndFieldTrials.
147 scoped_refptr<FieldTrialSynchronizer> field_trial_synchronizer_; 153 scoped_refptr<FieldTrialSynchronizer> field_trial_synchronizer_;
(...skipping 17 matching lines...) Expand all
165 // Records the time from our process' startup to the present time in 171 // Records the time from our process' startup to the present time in
166 // the UMA histogram |metric_name|. 172 // the UMA histogram |metric_name|.
167 void RecordBrowserStartupTime(); 173 void RecordBrowserStartupTime();
168 174
169 // Records a time value to an UMA histogram in the context of the 175 // Records a time value to an UMA histogram in the context of the
170 // PreReadExperiment field-trial. This also reports to the appropriate 176 // PreReadExperiment field-trial. This also reports to the appropriate
171 // sub-histogram (_PreRead(Enabled|Disabled)). 177 // sub-histogram (_PreRead(Enabled|Disabled)).
172 void RecordPreReadExperimentTime(const char* name, base::TimeDelta time); 178 void RecordPreReadExperimentTime(const char* name, base::TimeDelta time);
173 179
174 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_H_ 180 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chrome_browser_main.cc » ('j') | chrome/browser/metrics/tracking_synchronizer.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698