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

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

Issue 10383114: Rename BrowserInit to StartupBrowserCreator, and move into startup subdir. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 7 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/browser_init.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 BrowserInit;
23 class BrowserProcessImpl; 22 class BrowserProcessImpl;
24 class ChromeBrowserMainExtraParts; 23 class ChromeBrowserMainExtraParts;
25 class FieldTrialSynchronizer; 24 class FieldTrialSynchronizer;
26 class HistogramSynchronizer; 25 class HistogramSynchronizer;
27 class MetricsService; 26 class MetricsService;
28 class PrefService; 27 class PrefService;
29 class Profile; 28 class Profile;
29 class StartupBrowserCreator;
30 class StartupTimeBomb; 30 class StartupTimeBomb;
31 class ShutdownWatcherHelper; 31 class ShutdownWatcherHelper;
32 class TranslateManager; 32 class TranslateManager;
33 33
34 namespace chrome_browser { 34 namespace chrome_browser {
35 // For use by ShowMissingLocaleMessageBox. 35 // For use by ShowMissingLocaleMessageBox.
36 extern const char kMissingLocaleDataTitle[]; 36 extern const char kMissingLocaleDataTitle[];
37 extern const char kMissingLocaleDataMessage[]; 37 extern const char kMissingLocaleDataMessage[];
38 } 38 }
39 39
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 // Statistical testing infrastructure for the entire browser. NULL until 178 // Statistical testing infrastructure for the entire browser. NULL until
179 // SetupMetricsAndFieldTrials is called. 179 // SetupMetricsAndFieldTrials is called.
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<BrowserInit> browser_init_; 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<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_;
(...skipping 37 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
« no previous file with comments | « chrome/browser/automation/testing_automation_provider.cc ('k') | chrome/browser/chrome_browser_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698