| 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/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/metrics/field_trial.h" | 10 #include "base/metrics/field_trial.h" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 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 ThreeDAPIObserver; |
| 31 class TranslateManager; | |
| 32 | 31 |
| 33 namespace chrome_browser { | 32 namespace chrome_browser { |
| 34 // For use by ShowMissingLocaleMessageBox. | 33 // For use by ShowMissingLocaleMessageBox. |
| 35 extern const char kMissingLocaleDataTitle[]; | 34 extern const char kMissingLocaleDataTitle[]; |
| 36 extern const char kMissingLocaleDataMessage[]; | 35 extern const char kMissingLocaleDataMessage[]; |
| 37 } | 36 } |
| 38 | 37 |
| 39 namespace chrome_browser_metrics { | 38 namespace chrome_browser_metrics { |
| 40 class TrackingSynchronizer; | 39 class TrackingSynchronizer; |
| 41 } | 40 } |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 // Browser creation happens on the Java side in Android. | 161 // Browser creation happens on the Java side in Android. |
| 163 scoped_ptr<StartupBrowserCreator> browser_creator_; | 162 scoped_ptr<StartupBrowserCreator> browser_creator_; |
| 164 | 163 |
| 165 // Android doesn't support multiple browser processes, so it doesn't implement | 164 // Android doesn't support multiple browser processes, so it doesn't implement |
| 166 // ProcessSingleton. | 165 // ProcessSingleton. |
| 167 scoped_ptr<ChromeProcessSingleton> process_singleton_; | 166 scoped_ptr<ChromeProcessSingleton> process_singleton_; |
| 168 | 167 |
| 169 // Android's first run is done in Java instead of native. | 168 // Android's first run is done in Java instead of native. |
| 170 scoped_ptr<first_run::MasterPrefs> master_prefs_; | 169 scoped_ptr<first_run::MasterPrefs> master_prefs_; |
| 171 #endif | 170 #endif |
| 172 TranslateManager* translate_manager_; | |
| 173 Profile* profile_; | 171 Profile* profile_; |
| 174 bool run_message_loop_; | 172 bool run_message_loop_; |
| 175 ProcessSingleton::NotifyResult notify_result_; | 173 ProcessSingleton::NotifyResult notify_result_; |
| 176 scoped_ptr<ThreeDAPIObserver> three_d_observer_; | 174 scoped_ptr<ThreeDAPIObserver> three_d_observer_; |
| 177 | 175 |
| 178 // Initialized in SetupMetricsAndFieldTrials. | 176 // Initialized in SetupMetricsAndFieldTrials. |
| 179 scoped_refptr<FieldTrialSynchronizer> field_trial_synchronizer_; | 177 scoped_refptr<FieldTrialSynchronizer> field_trial_synchronizer_; |
| 180 | 178 |
| 181 // Members initialized in PreMainMessageLoopRun, needed in | 179 // Members initialized in PreMainMessageLoopRun, needed in |
| 182 // PreMainMessageLoopRunThreadsCreated. | 180 // PreMainMessageLoopRunThreadsCreated. |
| 183 PrefService* local_state_; | 181 PrefService* local_state_; |
| 184 base::FilePath user_data_dir_; | 182 base::FilePath user_data_dir_; |
| 185 | 183 |
| 186 // Members needed across shutdown methods. | 184 // Members needed across shutdown methods. |
| 187 bool restart_last_session_; | 185 bool restart_last_session_; |
| 188 | 186 |
| 189 // Tests can set this to true to disable restricting cookie access in the | 187 // Tests can set this to true to disable restricting cookie access in the |
| 190 // network stack, as this can only be done once. | 188 // network stack, as this can only be done once. |
| 191 static bool disable_enforcing_cookie_policies_for_tests_; | 189 static bool disable_enforcing_cookie_policies_for_tests_; |
| 192 | 190 |
| 193 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainParts); | 191 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainParts); |
| 194 }; | 192 }; |
| 195 | 193 |
| 196 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_H_ | 194 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_H_ |
| OLD | NEW |