| OLD | NEW |
| 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 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/gtest_prod_util.h" | 9 #include "base/gtest_prod_util.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| 11 #include "base/memory/scoped_vector.h" | 11 #include "base/memory/scoped_vector.h" |
| 12 #include "base/metrics/field_trial.h" | 12 #include "base/metrics/field_trial.h" |
| 13 #include "base/tracked_objects.h" | 13 #include "base/tracked_objects.h" |
| 14 #include "chrome/browser/chrome_browser_field_trials.h" | 14 #include "chrome/browser/chrome_browser_field_trials.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 | 20 |
| 21 class BrowserProcessImpl; | 21 class BrowserProcessImpl; |
| 22 class ChromeBrowserMainExtraParts; | 22 class ChromeBrowserMainExtraParts; |
| 23 class FieldTrialSynchronizer; | 23 class FieldTrialSynchronizer; |
| 24 class MetricsService; | 24 class MetricsService; |
| 25 class PrefService; | 25 class PrefService; |
| 26 class Profile; | 26 class Profile; |
| 27 class StartupBrowserCreator; | 27 class StartupBrowserCreator; |
| 28 class StartupTimeBomb; | 28 class StartupTimeBomb; |
| 29 class ShutdownWatcherHelper; | 29 class ShutdownWatcherHelper; |
| 30 class ThreeDAPIObserver; |
| 30 class TranslateManager; | 31 class TranslateManager; |
| 31 | 32 |
| 32 namespace chrome_browser { | 33 namespace chrome_browser { |
| 33 // For use by ShowMissingLocaleMessageBox. | 34 // For use by ShowMissingLocaleMessageBox. |
| 34 extern const char kMissingLocaleDataTitle[]; | 35 extern const char kMissingLocaleDataTitle[]; |
| 35 extern const char kMissingLocaleDataMessage[]; | 36 extern const char kMissingLocaleDataMessage[]; |
| 36 } | 37 } |
| 37 | 38 |
| 38 namespace chrome_browser_metrics { | 39 namespace chrome_browser_metrics { |
| 39 class TrackingSynchronizer; | 40 class TrackingSynchronizer; |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 // Android doesn't support multiple browser processes, so it doesn't implement | 169 // Android doesn't support multiple browser processes, so it doesn't implement |
| 169 // ProcessSingleton. | 170 // ProcessSingleton. |
| 170 scoped_ptr<ProcessSingleton> process_singleton_; | 171 scoped_ptr<ProcessSingleton> process_singleton_; |
| 171 #endif | 172 #endif |
| 172 scoped_ptr<first_run::MasterPrefs> master_prefs_; | 173 scoped_ptr<first_run::MasterPrefs> master_prefs_; |
| 173 bool record_search_engine_; | 174 bool record_search_engine_; |
| 174 TranslateManager* translate_manager_; | 175 TranslateManager* translate_manager_; |
| 175 Profile* profile_; | 176 Profile* profile_; |
| 176 bool run_message_loop_; | 177 bool run_message_loop_; |
| 177 ProcessSingleton::NotifyResult notify_result_; | 178 ProcessSingleton::NotifyResult notify_result_; |
| 179 scoped_ptr<ThreeDAPIObserver> three_d_observer_; |
| 178 | 180 |
| 179 // Initialized in SetupMetricsAndFieldTrials. | 181 // Initialized in SetupMetricsAndFieldTrials. |
| 180 scoped_refptr<FieldTrialSynchronizer> field_trial_synchronizer_; | 182 scoped_refptr<FieldTrialSynchronizer> field_trial_synchronizer_; |
| 181 | 183 |
| 182 // Members initialized in PreMainMessageLoopRun, needed in | 184 // Members initialized in PreMainMessageLoopRun, needed in |
| 183 // PreMainMessageLoopRunThreadsCreated. | 185 // PreMainMessageLoopRunThreadsCreated. |
| 184 bool do_first_run_tasks_; | 186 bool do_first_run_tasks_; |
| 185 PrefService* local_state_; | 187 PrefService* local_state_; |
| 186 base::FilePath user_data_dir_; | 188 base::FilePath user_data_dir_; |
| 187 | 189 |
| (...skipping 25 matching lines...) Expand all Loading... |
| 213 // Records the time from our process' startup to the present time in | 215 // Records the time from our process' startup to the present time in |
| 214 // the Startup.BrowserMessageLoopStartTime UMA histogram. | 216 // the Startup.BrowserMessageLoopStartTime UMA histogram. |
| 215 void RecordBrowserStartupTime(); | 217 void RecordBrowserStartupTime(); |
| 216 | 218 |
| 217 // Records a time value to an UMA histogram in the context of the | 219 // Records a time value to an UMA histogram in the context of the |
| 218 // PreReadExperiment field-trial. This also reports to the appropriate | 220 // PreReadExperiment field-trial. This also reports to the appropriate |
| 219 // sub-histogram (_PreRead(Enabled|Disabled)). | 221 // sub-histogram (_PreRead(Enabled|Disabled)). |
| 220 void RecordPreReadExperimentTime(const char* name, base::TimeDelta time); | 222 void RecordPreReadExperimentTime(const char* name, base::TimeDelta time); |
| 221 | 223 |
| 222 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_H_ | 224 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_H_ |
| OLD | NEW |