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

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

Issue 10454086: Histograms - Support histograms for Plugins, GPU (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 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 | Annotate | Revision Log
OLDNEW
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_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"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "base/memory/scoped_vector.h" 12 #include "base/memory/scoped_vector.h"
13 #include "base/metrics/field_trial.h" 13 #include "base/metrics/field_trial.h"
14 #include "base/tracked_objects.h" 14 #include "base/tracked_objects.h"
15 #include "chrome/browser/first_run/first_run.h" 15 #include "chrome/browser/first_run/first_run.h"
16 #include "chrome/browser/process_singleton.h" 16 #include "chrome/browser/process_singleton.h"
17 #include "chrome/browser/task_profiler/auto_tracking.h" 17 #include "chrome/browser/task_profiler/auto_tracking.h"
18 #include "chrome/browser/ui/startup/startup_browser_creator.h" 18 #include "chrome/browser/ui/startup/startup_browser_creator.h"
19 #include "content/public/browser/browser_main_parts.h" 19 #include "content/public/browser/browser_main_parts.h"
20 #include "content/public/browser/browser_thread.h" 20 #include "content/public/browser/browser_thread.h"
21 21
22 class BrowserProcessImpl; 22 class BrowserProcessImpl;
23 class ChromeBrowserMainExtraParts; 23 class ChromeBrowserMainExtraParts;
24 class FieldTrialSynchronizer; 24 class FieldTrialSynchronizer;
25 class HistogramSynchronizer;
26 class MetricsService; 25 class MetricsService;
27 class PrefService; 26 class PrefService;
28 class Profile; 27 class Profile;
29 class StartupBrowserCreator; 28 class StartupBrowserCreator;
30 class StartupTimeBomb; 29 class StartupTimeBomb;
31 class ShutdownWatcherHelper; 30 class ShutdownWatcherHelper;
32 class TranslateManager; 31 class TranslateManager;
33 32
34 namespace chrome_browser { 33 namespace chrome_browser {
35 // For use by ShowMissingLocaleMessageBox. 34 // For use by ShowMissingLocaleMessageBox.
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 scoped_ptr<base::FieldTrialList> field_trial_list_; 179 scoped_ptr<base::FieldTrialList> field_trial_list_;
181 180
182 // Vector of additional ChromeBrowserMainExtraParts. 181 // Vector of additional ChromeBrowserMainExtraParts.
183 // Parts are deleted in the inverse order they are added. 182 // Parts are deleted in the inverse order they are added.
184 std::vector<ChromeBrowserMainExtraParts*> chrome_extra_parts_; 183 std::vector<ChromeBrowserMainExtraParts*> chrome_extra_parts_;
185 184
186 // Members initialized after / released before main_message_loop_ ------------ 185 // Members initialized after / released before main_message_loop_ ------------
187 186
188 scoped_ptr<StartupBrowserCreator> browser_creator_; 187 scoped_ptr<StartupBrowserCreator> browser_creator_;
189 scoped_ptr<BrowserProcessImpl> browser_process_; 188 scoped_ptr<BrowserProcessImpl> browser_process_;
190 scoped_refptr<HistogramSynchronizer> histogram_synchronizer_;
191 scoped_refptr<chrome_browser_metrics::TrackingSynchronizer> 189 scoped_refptr<chrome_browser_metrics::TrackingSynchronizer>
192 tracking_synchronizer_; 190 tracking_synchronizer_;
193 scoped_ptr<ProcessSingleton> process_singleton_; 191 scoped_ptr<ProcessSingleton> process_singleton_;
194 scoped_ptr<first_run::MasterPrefs> master_prefs_; 192 scoped_ptr<first_run::MasterPrefs> master_prefs_;
195 bool record_search_engine_; 193 bool record_search_engine_;
196 TranslateManager* translate_manager_; 194 TranslateManager* translate_manager_;
197 Profile* profile_; 195 Profile* profile_;
198 bool run_message_loop_; 196 bool run_message_loop_;
199 ProcessSingleton::NotifyResult notify_result_; 197 ProcessSingleton::NotifyResult notify_result_;
200 198
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 // Records the time from our process' startup to the present time in 234 // Records the time from our process' startup to the present time in
237 // the UMA histogram |metric_name|. 235 // the UMA histogram |metric_name|.
238 void RecordBrowserStartupTime(); 236 void RecordBrowserStartupTime();
239 237
240 // Records a time value to an UMA histogram in the context of the 238 // Records a time value to an UMA histogram in the context of the
241 // PreReadExperiment field-trial. This also reports to the appropriate 239 // PreReadExperiment field-trial. This also reports to the appropriate
242 // sub-histogram (_PreRead(Enabled|Disabled)). 240 // sub-histogram (_PreRead(Enabled|Disabled)).
243 void RecordPreReadExperimentTime(const char* name, base::TimeDelta time); 241 void RecordPreReadExperimentTime(const char* name, base::TimeDelta time);
244 242
245 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_H_ 243 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698