| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 // When each service is created, we set a flag indicating this. At this point, | 5 // When each service is created, we set a flag indicating this. At this point, |
| 6 // the service initialization could fail or succeed. This allows us to remember | 6 // the service initialization could fail or succeed. This allows us to remember |
| 7 // if we tried to create a service, and not try creating it over and over if | 7 // if we tried to create a service, and not try creating it over and over if |
| 8 // the creation failed. | 8 // the creation failed. |
| 9 | 9 |
| 10 #ifndef CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ | 10 #ifndef CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ |
| 11 #define CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ | 11 #define CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 | 175 |
| 176 virtual printing::PrintJobManager* print_job_manager(); | 176 virtual printing::PrintJobManager* print_job_manager(); |
| 177 | 177 |
| 178 virtual GoogleURLTracker* google_url_tracker() { | 178 virtual GoogleURLTracker* google_url_tracker() { |
| 179 DCHECK(CalledOnValidThread()); | 179 DCHECK(CalledOnValidThread()); |
| 180 if (!google_url_tracker_.get()) | 180 if (!google_url_tracker_.get()) |
| 181 CreateGoogleURLTracker(); | 181 CreateGoogleURLTracker(); |
| 182 return google_url_tracker_.get(); | 182 return google_url_tracker_.get(); |
| 183 } | 183 } |
| 184 | 184 |
| 185 virtual IntranetRedirectDetector* intranet_redirect_detector() { |
| 186 DCHECK(CalledOnValidThread()); |
| 187 if (!intranet_redirect_detector_.get()) |
| 188 CreateIntranetRedirectDetector(); |
| 189 return intranet_redirect_detector_.get(); |
| 190 } |
| 191 |
| 185 virtual const std::string& GetApplicationLocale() { | 192 virtual const std::string& GetApplicationLocale() { |
| 186 DCHECK(!locale_.empty()); | 193 DCHECK(!locale_.empty()); |
| 187 return locale_; | 194 return locale_; |
| 188 } | 195 } |
| 189 virtual void set_application_locale(const std::string& locale) { | 196 virtual void set_application_locale(const std::string& locale) { |
| 190 locale_ = locale; | 197 locale_ = locale; |
| 191 } | 198 } |
| 192 | 199 |
| 193 virtual base::WaitableEvent* shutdown_event() { | 200 virtual base::WaitableEvent* shutdown_event() { |
| 194 return shutdown_event_.get(); | 201 return shutdown_event_.get(); |
| (...skipping 23 matching lines...) Expand all Loading... |
| 218 void CreateProcessLauncherThread(); | 225 void CreateProcessLauncherThread(); |
| 219 void CreateTemplateURLModel(); | 226 void CreateTemplateURLModel(); |
| 220 void CreateProfileManager(); | 227 void CreateProfileManager(); |
| 221 void CreateWebDataService(); | 228 void CreateWebDataService(); |
| 222 void CreateLocalState(); | 229 void CreateLocalState(); |
| 223 void CreateViewedPageTracker(); | 230 void CreateViewedPageTracker(); |
| 224 void CreateIconManager(); | 231 void CreateIconManager(); |
| 225 void CreateDebuggerWrapper(int port); | 232 void CreateDebuggerWrapper(int port); |
| 226 void CreateDevToolsManager(); | 233 void CreateDevToolsManager(); |
| 227 void CreateGoogleURLTracker(); | 234 void CreateGoogleURLTracker(); |
| 235 void CreateIntranetRedirectDetector(); |
| 228 void CreateNotificationUIManager(); | 236 void CreateNotificationUIManager(); |
| 229 | 237 |
| 230 #if defined(IPC_MESSAGE_LOG_ENABLED) | 238 #if defined(IPC_MESSAGE_LOG_ENABLED) |
| 231 void SetIPCLoggingEnabledForChildProcesses(bool enabled); | 239 void SetIPCLoggingEnabledForChildProcesses(bool enabled); |
| 232 #endif | 240 #endif |
| 233 | 241 |
| 234 bool created_resource_dispatcher_host_; | 242 bool created_resource_dispatcher_host_; |
| 235 scoped_ptr<ResourceDispatcherHost> resource_dispatcher_host_; | 243 scoped_ptr<ResourceDispatcherHost> resource_dispatcher_host_; |
| 236 | 244 |
| 237 bool created_metrics_service_; | 245 bool created_metrics_service_; |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 275 | 283 |
| 276 scoped_ptr<Clipboard> clipboard_; | 284 scoped_ptr<Clipboard> clipboard_; |
| 277 | 285 |
| 278 // Manager for desktop notification UI. | 286 // Manager for desktop notification UI. |
| 279 bool created_notification_ui_manager_; | 287 bool created_notification_ui_manager_; |
| 280 scoped_ptr<NotificationUIManager> notification_ui_manager_; | 288 scoped_ptr<NotificationUIManager> notification_ui_manager_; |
| 281 | 289 |
| 282 scoped_ptr<AutomationProviderList> automation_provider_list_; | 290 scoped_ptr<AutomationProviderList> automation_provider_list_; |
| 283 | 291 |
| 284 scoped_ptr<GoogleURLTracker> google_url_tracker_; | 292 scoped_ptr<GoogleURLTracker> google_url_tracker_; |
| 293 scoped_ptr<IntranetRedirectDetector> intranet_redirect_detector_; |
| 285 | 294 |
| 286 scoped_ptr<NotificationService> main_notification_service_; | 295 scoped_ptr<NotificationService> main_notification_service_; |
| 287 | 296 |
| 288 unsigned int module_ref_count_; | 297 unsigned int module_ref_count_; |
| 289 | 298 |
| 290 // Ensures that all the print jobs are finished before closing the browser. | 299 // Ensures that all the print jobs are finished before closing the browser. |
| 291 scoped_ptr<printing::PrintJobManager> print_job_manager_; | 300 scoped_ptr<printing::PrintJobManager> print_job_manager_; |
| 292 | 301 |
| 293 std::string locale_; | 302 std::string locale_; |
| 294 | 303 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 305 // Runs on the file thread and stats the inspector's directory, filling in | 314 // Runs on the file thread and stats the inspector's directory, filling in |
| 306 // have_inspector_files_ with the result. | 315 // have_inspector_files_ with the result. |
| 307 void DoInspectorFilesCheck(); | 316 void DoInspectorFilesCheck(); |
| 308 // Our best estimate about the existence of the inspector directory. | 317 // Our best estimate about the existence of the inspector directory. |
| 309 bool have_inspector_files_; | 318 bool have_inspector_files_; |
| 310 | 319 |
| 311 DISALLOW_COPY_AND_ASSIGN(BrowserProcessImpl); | 320 DISALLOW_COPY_AND_ASSIGN(BrowserProcessImpl); |
| 312 }; | 321 }; |
| 313 | 322 |
| 314 #endif // CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ | 323 #endif // CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ |
| OLD | NEW |