OLD | NEW |
1 // Copyright (c) 2010 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_ |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 return clipboard_.get(); | 133 return clipboard_.get(); |
134 } | 134 } |
135 | 135 |
136 virtual NotificationUIManager* notification_ui_manager() { | 136 virtual NotificationUIManager* notification_ui_manager() { |
137 DCHECK(CalledOnValidThread()); | 137 DCHECK(CalledOnValidThread()); |
138 if (!created_notification_ui_manager_) | 138 if (!created_notification_ui_manager_) |
139 CreateNotificationUIManager(); | 139 CreateNotificationUIManager(); |
140 return notification_ui_manager_.get(); | 140 return notification_ui_manager_.get(); |
141 } | 141 } |
142 | 142 |
| 143 virtual StatusTrayManager* status_tray_manager() { |
| 144 DCHECK(CalledOnValidThread()); |
| 145 if (!status_tray_manager_.get()) |
| 146 CreateStatusTrayManager(); |
| 147 return status_tray_manager_.get(); |
| 148 } |
| 149 |
143 virtual IconManager* icon_manager() { | 150 virtual IconManager* icon_manager() { |
144 DCHECK(CalledOnValidThread()); | 151 DCHECK(CalledOnValidThread()); |
145 if (!created_icon_manager_) | 152 if (!created_icon_manager_) |
146 CreateIconManager(); | 153 CreateIconManager(); |
147 return icon_manager_.get(); | 154 return icon_manager_.get(); |
148 } | 155 } |
149 | 156 |
150 virtual ThumbnailGenerator* GetThumbnailGenerator() { | 157 virtual ThumbnailGenerator* GetThumbnailGenerator() { |
151 return &thumbnail_generator_; | 158 return &thumbnail_generator_; |
152 } | 159 } |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
228 void CreateProfileManager(); | 235 void CreateProfileManager(); |
229 void CreateWebDataService(); | 236 void CreateWebDataService(); |
230 void CreateLocalState(); | 237 void CreateLocalState(); |
231 void CreateViewedPageTracker(); | 238 void CreateViewedPageTracker(); |
232 void CreateIconManager(); | 239 void CreateIconManager(); |
233 void CreateDebuggerWrapper(int port); | 240 void CreateDebuggerWrapper(int port); |
234 void CreateDevToolsManager(); | 241 void CreateDevToolsManager(); |
235 void CreateGoogleURLTracker(); | 242 void CreateGoogleURLTracker(); |
236 void CreateIntranetRedirectDetector(); | 243 void CreateIntranetRedirectDetector(); |
237 void CreateNotificationUIManager(); | 244 void CreateNotificationUIManager(); |
| 245 void CreateStatusTrayManager(); |
238 | 246 |
239 #if defined(IPC_MESSAGE_LOG_ENABLED) | 247 #if defined(IPC_MESSAGE_LOG_ENABLED) |
240 void SetIPCLoggingEnabledForChildProcesses(bool enabled); | 248 void SetIPCLoggingEnabledForChildProcesses(bool enabled); |
241 #endif | 249 #endif |
242 | 250 |
243 bool created_resource_dispatcher_host_; | 251 bool created_resource_dispatcher_host_; |
244 scoped_ptr<ResourceDispatcherHost> resource_dispatcher_host_; | 252 scoped_ptr<ResourceDispatcherHost> resource_dispatcher_host_; |
245 | 253 |
246 bool created_metrics_service_; | 254 bool created_metrics_service_; |
247 scoped_ptr<MetricsService> metrics_service_; | 255 scoped_ptr<MetricsService> metrics_service_; |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
281 | 289 |
282 bool created_devtools_manager_; | 290 bool created_devtools_manager_; |
283 scoped_refptr<DevToolsManager> devtools_manager_; | 291 scoped_refptr<DevToolsManager> devtools_manager_; |
284 | 292 |
285 scoped_ptr<Clipboard> clipboard_; | 293 scoped_ptr<Clipboard> clipboard_; |
286 | 294 |
287 // Manager for desktop notification UI. | 295 // Manager for desktop notification UI. |
288 bool created_notification_ui_manager_; | 296 bool created_notification_ui_manager_; |
289 scoped_ptr<NotificationUIManager> notification_ui_manager_; | 297 scoped_ptr<NotificationUIManager> notification_ui_manager_; |
290 | 298 |
| 299 // Manager for status tray. |
| 300 scoped_ptr<StatusTrayManager> status_tray_manager_; |
| 301 |
291 scoped_ptr<AutomationProviderList> automation_provider_list_; | 302 scoped_ptr<AutomationProviderList> automation_provider_list_; |
292 | 303 |
293 scoped_ptr<GoogleURLTracker> google_url_tracker_; | 304 scoped_ptr<GoogleURLTracker> google_url_tracker_; |
294 scoped_ptr<IntranetRedirectDetector> intranet_redirect_detector_; | 305 scoped_ptr<IntranetRedirectDetector> intranet_redirect_detector_; |
295 | 306 |
296 scoped_ptr<NotificationService> main_notification_service_; | 307 scoped_ptr<NotificationService> main_notification_service_; |
297 | 308 |
298 unsigned int module_ref_count_; | 309 unsigned int module_ref_count_; |
299 | 310 |
300 // Ensures that all the print jobs are finished before closing the browser. | 311 // Ensures that all the print jobs are finished before closing the browser. |
(...skipping 14 matching lines...) Expand all Loading... |
315 // Runs on the file thread and stats the inspector's directory, filling in | 326 // Runs on the file thread and stats the inspector's directory, filling in |
316 // have_inspector_files_ with the result. | 327 // have_inspector_files_ with the result. |
317 void DoInspectorFilesCheck(); | 328 void DoInspectorFilesCheck(); |
318 // Our best estimate about the existence of the inspector directory. | 329 // Our best estimate about the existence of the inspector directory. |
319 bool have_inspector_files_; | 330 bool have_inspector_files_; |
320 | 331 |
321 DISALLOW_COPY_AND_ASSIGN(BrowserProcessImpl); | 332 DISALLOW_COPY_AND_ASSIGN(BrowserProcessImpl); |
322 }; | 333 }; |
323 | 334 |
324 #endif // CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ | 335 #endif // CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ |
OLD | NEW |