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

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.
36 extern const char kMissingLocaleDataTitle[]; 35 extern const char kMissingLocaleDataTitle[];
37 extern const char kMissingLocaleDataMessage[]; 36 extern const char kMissingLocaleDataMessage[];
38 } 37 }
39 38
40 namespace chrome_browser_metrics { 39 namespace chrome_browser_metrics {
41 class TrackingSynchronizer; 40 class TrackingSynchronizer;
42 } 41 }
43 42
44 namespace content { 43 namespace content {
44 class HistogramSynchronizer;
45 struct MainFunctionParams; 45 struct MainFunctionParams;
46 } 46 }
47 47
48 class ChromeBrowserMainParts : public content::BrowserMainParts { 48 class ChromeBrowserMainParts : public content::BrowserMainParts {
49 public: 49 public:
50 virtual ~ChromeBrowserMainParts(); 50 virtual ~ChromeBrowserMainParts();
51 51
52 // Add additional ChromeBrowserMainExtraParts. 52 // Add additional ChromeBrowserMainExtraParts.
53 virtual void AddParts(ChromeBrowserMainExtraParts* parts); 53 virtual void AddParts(ChromeBrowserMainExtraParts* parts);
54 54
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 scoped_ptr<base::FieldTrialList> field_trial_list_; 180 scoped_ptr<base::FieldTrialList> field_trial_list_;
181 181
182 // Vector of additional ChromeBrowserMainExtraParts. 182 // Vector of additional ChromeBrowserMainExtraParts.
183 // Parts are deleted in the inverse order they are added. 183 // Parts are deleted in the inverse order they are added.
184 std::vector<ChromeBrowserMainExtraParts*> chrome_extra_parts_; 184 std::vector<ChromeBrowserMainExtraParts*> chrome_extra_parts_;
185 185
186 // Members initialized after / released before main_message_loop_ ------------ 186 // Members initialized after / released before main_message_loop_ ------------
187 187
188 scoped_ptr<StartupBrowserCreator> browser_creator_; 188 scoped_ptr<StartupBrowserCreator> browser_creator_;
189 scoped_ptr<BrowserProcessImpl> browser_process_; 189 scoped_ptr<BrowserProcessImpl> browser_process_;
190 scoped_refptr<HistogramSynchronizer> histogram_synchronizer_; 190 scoped_refptr<content::HistogramSynchronizer> histogram_synchronizer_;
191 scoped_refptr<chrome_browser_metrics::TrackingSynchronizer> 191 scoped_refptr<chrome_browser_metrics::TrackingSynchronizer>
192 tracking_synchronizer_; 192 tracking_synchronizer_;
193 scoped_ptr<ProcessSingleton> process_singleton_; 193 scoped_ptr<ProcessSingleton> process_singleton_;
194 scoped_ptr<first_run::MasterPrefs> master_prefs_; 194 scoped_ptr<first_run::MasterPrefs> master_prefs_;
195 bool record_search_engine_; 195 bool record_search_engine_;
196 TranslateManager* translate_manager_; 196 TranslateManager* translate_manager_;
197 Profile* profile_; 197 Profile* profile_;
198 bool run_message_loop_; 198 bool run_message_loop_;
199 ProcessSingleton::NotifyResult notify_result_; 199 ProcessSingleton::NotifyResult notify_result_;
200 200
(...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 236 // Records the time from our process' startup to the present time in
237 // the UMA histogram |metric_name|. 237 // the UMA histogram |metric_name|.
238 void RecordBrowserStartupTime(); 238 void RecordBrowserStartupTime();
239 239
240 // Records a time value to an UMA histogram in the context of the 240 // Records a time value to an UMA histogram in the context of the
241 // PreReadExperiment field-trial. This also reports to the appropriate 241 // PreReadExperiment field-trial. This also reports to the appropriate
242 // sub-histogram (_PreRead(Enabled|Disabled)). 242 // sub-histogram (_PreRead(Enabled|Disabled)).
243 void RecordPreReadExperimentTime(const char* name, base::TimeDelta time); 243 void RecordPreReadExperimentTime(const char* name, base::TimeDelta time);
244 244
245 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_H_ 245 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698