| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_ |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 if (!created_devtools_manager_) | 119 if (!created_devtools_manager_) |
| 120 CreateDevToolsManager(); | 120 CreateDevToolsManager(); |
| 121 return devtools_manager_.get(); | 121 return devtools_manager_.get(); |
| 122 } | 122 } |
| 123 | 123 |
| 124 virtual Clipboard* clipboard() { | 124 virtual Clipboard* clipboard() { |
| 125 DCHECK(CalledOnValidThread()); | 125 DCHECK(CalledOnValidThread()); |
| 126 return clipboard_.get(); | 126 return clipboard_.get(); |
| 127 } | 127 } |
| 128 | 128 |
| 129 virtual NotificationUIManager* notification_ui_manager() { |
| 130 DCHECK(CalledOnValidThread()); |
| 131 if (!created_notification_ui_manager_) |
| 132 CreateNotificationUIManager(); |
| 133 return notification_ui_manager_.get(); |
| 134 } |
| 135 |
| 129 virtual IconManager* icon_manager() { | 136 virtual IconManager* icon_manager() { |
| 130 DCHECK(CalledOnValidThread()); | 137 DCHECK(CalledOnValidThread()); |
| 131 if (!created_icon_manager_) | 138 if (!created_icon_manager_) |
| 132 CreateIconManager(); | 139 CreateIconManager(); |
| 133 return icon_manager_.get(); | 140 return icon_manager_.get(); |
| 134 } | 141 } |
| 135 | 142 |
| 136 virtual ThumbnailGenerator* GetThumbnailGenerator() { | 143 virtual ThumbnailGenerator* GetThumbnailGenerator() { |
| 137 return &thumbnail_generator_; | 144 return &thumbnail_generator_; |
| 138 } | 145 } |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 210 void CreateDBThread(); | 217 void CreateDBThread(); |
| 211 void CreateTemplateURLModel(); | 218 void CreateTemplateURLModel(); |
| 212 void CreateProfileManager(); | 219 void CreateProfileManager(); |
| 213 void CreateWebDataService(); | 220 void CreateWebDataService(); |
| 214 void CreateLocalState(); | 221 void CreateLocalState(); |
| 215 void CreateViewedPageTracker(); | 222 void CreateViewedPageTracker(); |
| 216 void CreateIconManager(); | 223 void CreateIconManager(); |
| 217 void CreateDebuggerWrapper(int port); | 224 void CreateDebuggerWrapper(int port); |
| 218 void CreateDevToolsManager(); | 225 void CreateDevToolsManager(); |
| 219 void CreateGoogleURLTracker(); | 226 void CreateGoogleURLTracker(); |
| 227 void CreateNotificationUIManager(); |
| 220 | 228 |
| 221 #if defined(OS_WIN) | 229 #if defined(OS_WIN) |
| 222 void InitBrokerServices(sandbox::BrokerServices* broker_services); | 230 void InitBrokerServices(sandbox::BrokerServices* broker_services); |
| 223 #endif // defined(OS_WIN) | 231 #endif // defined(OS_WIN) |
| 224 | 232 |
| 225 #if defined(IPC_MESSAGE_LOG_ENABLED) | 233 #if defined(IPC_MESSAGE_LOG_ENABLED) |
| 226 void SetIPCLoggingEnabledForChildProcesses(bool enabled); | 234 void SetIPCLoggingEnabledForChildProcesses(bool enabled); |
| 227 #endif | 235 #endif |
| 228 | 236 |
| 229 bool created_resource_dispatcher_host_; | 237 bool created_resource_dispatcher_host_; |
| (...skipping 30 matching lines...) Expand all Loading... |
| 260 scoped_ptr<IconManager> icon_manager_; | 268 scoped_ptr<IconManager> icon_manager_; |
| 261 | 269 |
| 262 bool created_debugger_wrapper_; | 270 bool created_debugger_wrapper_; |
| 263 scoped_refptr<DebuggerWrapper> debugger_wrapper_; | 271 scoped_refptr<DebuggerWrapper> debugger_wrapper_; |
| 264 | 272 |
| 265 bool created_devtools_manager_; | 273 bool created_devtools_manager_; |
| 266 scoped_refptr<DevToolsManager> devtools_manager_; | 274 scoped_refptr<DevToolsManager> devtools_manager_; |
| 267 | 275 |
| 268 scoped_ptr<Clipboard> clipboard_; | 276 scoped_ptr<Clipboard> clipboard_; |
| 269 | 277 |
| 278 // Manager for desktop notification UI. |
| 279 bool created_notification_ui_manager_; |
| 280 scoped_ptr<NotificationUIManager> notification_ui_manager_; |
| 281 |
| 270 scoped_ptr<AutomationProviderList> automation_provider_list_; | 282 scoped_ptr<AutomationProviderList> automation_provider_list_; |
| 271 | 283 |
| 272 scoped_ptr<GoogleURLTracker> google_url_tracker_; | 284 scoped_ptr<GoogleURLTracker> google_url_tracker_; |
| 273 | 285 |
| 274 scoped_ptr<NotificationService> main_notification_service_; | 286 scoped_ptr<NotificationService> main_notification_service_; |
| 275 | 287 |
| 276 unsigned int module_ref_count_; | 288 unsigned int module_ref_count_; |
| 277 | 289 |
| 278 // Ensures that all the print jobs are finished before closing the browser. | 290 // Ensures that all the print jobs are finished before closing the browser. |
| 279 scoped_ptr<printing::PrintJobManager> print_job_manager_; | 291 scoped_ptr<printing::PrintJobManager> print_job_manager_; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 293 // Runs on the file thread and stats the inspector's directory, filling in | 305 // Runs on the file thread and stats the inspector's directory, filling in |
| 294 // have_inspector_files_ with the result. | 306 // have_inspector_files_ with the result. |
| 295 void DoInspectorFilesCheck(); | 307 void DoInspectorFilesCheck(); |
| 296 // Our best estimate about the existence of the inspector directory. | 308 // Our best estimate about the existence of the inspector directory. |
| 297 bool have_inspector_files_; | 309 bool have_inspector_files_; |
| 298 | 310 |
| 299 DISALLOW_COPY_AND_ASSIGN(BrowserProcessImpl); | 311 DISALLOW_COPY_AND_ASSIGN(BrowserProcessImpl); |
| 300 }; | 312 }; |
| 301 | 313 |
| 302 #endif // CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ | 314 #endif // CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ |
| OLD | NEW |