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 // 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 IOThread* io_thread() override; | 84 IOThread* io_thread() override; |
85 WatchDogThread* watchdog_thread() override; | 85 WatchDogThread* watchdog_thread() override; |
86 ProfileManager* profile_manager() override; | 86 ProfileManager* profile_manager() override; |
87 PrefService* local_state() override; | 87 PrefService* local_state() override; |
88 net::URLRequestContextGetter* system_request_context() override; | 88 net::URLRequestContextGetter* system_request_context() override; |
89 chrome_variations::VariationsService* variations_service() override; | 89 chrome_variations::VariationsService* variations_service() override; |
90 PromoResourceService* promo_resource_service() override; | 90 PromoResourceService* promo_resource_service() override; |
91 BrowserProcessPlatformPart* platform_part() override; | 91 BrowserProcessPlatformPart* platform_part() override; |
92 extensions::EventRouterForwarder* extension_event_router_forwarder() override; | 92 extensions::EventRouterForwarder* extension_event_router_forwarder() override; |
93 NotificationUIManager* notification_ui_manager() override; | 93 NotificationUIManager* notification_ui_manager() override; |
| 94 SidebarManager* sidebar_manager() override; |
94 message_center::MessageCenter* message_center() override; | 95 message_center::MessageCenter* message_center() override; |
95 policy::BrowserPolicyConnector* browser_policy_connector() override; | 96 policy::BrowserPolicyConnector* browser_policy_connector() override; |
96 policy::PolicyService* policy_service() override; | 97 policy::PolicyService* policy_service() override; |
97 IconManager* icon_manager() override; | 98 IconManager* icon_manager() override; |
98 GLStringManager* gl_string_manager() override; | 99 GLStringManager* gl_string_manager() override; |
99 GpuModeManager* gpu_mode_manager() override; | 100 GpuModeManager* gpu_mode_manager() override; |
100 void CreateDevToolsHttpProtocolHandler( | 101 void CreateDevToolsHttpProtocolHandler( |
101 chrome::HostDesktopType host_desktop_type, | 102 chrome::HostDesktopType host_desktop_type, |
102 const std::string& ip, | 103 const std::string& ip, |
103 uint16 port) override; | 104 uint16 port) override; |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 gcm::GCMDriver* gcm_driver() override; | 142 gcm::GCMDriver* gcm_driver() override; |
142 | 143 |
143 static void RegisterPrefs(PrefRegistrySimple* registry); | 144 static void RegisterPrefs(PrefRegistrySimple* registry); |
144 | 145 |
145 private: | 146 private: |
146 void CreateWatchdogThread(); | 147 void CreateWatchdogThread(); |
147 void CreateProfileManager(); | 148 void CreateProfileManager(); |
148 void CreateLocalState(); | 149 void CreateLocalState(); |
149 void CreateViewedPageTracker(); | 150 void CreateViewedPageTracker(); |
150 void CreateIconManager(); | 151 void CreateIconManager(); |
| 152 void CreateSidebarManager(); |
151 void CreateIntranetRedirectDetector(); | 153 void CreateIntranetRedirectDetector(); |
152 void CreateNotificationUIManager(); | 154 void CreateNotificationUIManager(); |
153 void CreateStatusTrayManager(); | 155 void CreateStatusTrayManager(); |
154 void CreatePrintPreviewDialogController(); | 156 void CreatePrintPreviewDialogController(); |
155 void CreateBackgroundPrintingManager(); | 157 void CreateBackgroundPrintingManager(); |
156 void CreateSafeBrowsingService(); | 158 void CreateSafeBrowsingService(); |
157 void CreateSafeBrowsingDetectionService(); | 159 void CreateSafeBrowsingDetectionService(); |
158 void CreateStatusTray(); | 160 void CreateStatusTray(); |
159 void CreateBackgroundModeManager(); | 161 void CreateBackgroundModeManager(); |
160 void CreateGCMDriver(); | 162 void CreateGCMDriver(); |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
199 | 201 |
200 scoped_refptr<extensions::EventRouterForwarder> | 202 scoped_refptr<extensions::EventRouterForwarder> |
201 extension_event_router_forwarder_; | 203 extension_event_router_forwarder_; |
202 | 204 |
203 scoped_ptr<MediaFileSystemRegistry> media_file_system_registry_; | 205 scoped_ptr<MediaFileSystemRegistry> media_file_system_registry_; |
204 #endif | 206 #endif |
205 | 207 |
206 #if !defined(OS_ANDROID) | 208 #if !defined(OS_ANDROID) |
207 scoped_ptr<RemoteDebuggingServer> remote_debugging_server_; | 209 scoped_ptr<RemoteDebuggingServer> remote_debugging_server_; |
208 #endif | 210 #endif |
| 211 bool created_sidebar_manager_; |
| 212 scoped_refptr<SidebarManager> sidebar_manager_; |
209 | 213 |
210 #if defined(ENABLE_PRINT_PREVIEW) | 214 #if defined(ENABLE_PRINT_PREVIEW) |
211 scoped_refptr<printing::PrintPreviewDialogController> | 215 scoped_refptr<printing::PrintPreviewDialogController> |
212 print_preview_dialog_controller_; | 216 print_preview_dialog_controller_; |
213 | 217 |
214 scoped_ptr<printing::BackgroundPrintingManager> background_printing_manager_; | 218 scoped_ptr<printing::BackgroundPrintingManager> background_printing_manager_; |
215 #endif | 219 #endif |
216 | 220 |
217 // Manager for desktop notification UI. | 221 // Manager for desktop notification UI. |
218 bool created_notification_ui_manager_; | 222 bool created_notification_ui_manager_; |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
305 scoped_ptr<ChromeChildProcessWatcher> child_process_watcher_; | 309 scoped_ptr<ChromeChildProcessWatcher> child_process_watcher_; |
306 | 310 |
307 #if !defined(OS_ANDROID) | 311 #if !defined(OS_ANDROID) |
308 scoped_ptr<ChromeDeviceClient> device_client_; | 312 scoped_ptr<ChromeDeviceClient> device_client_; |
309 #endif | 313 #endif |
310 | 314 |
311 DISALLOW_COPY_AND_ASSIGN(BrowserProcessImpl); | 315 DISALLOW_COPY_AND_ASSIGN(BrowserProcessImpl); |
312 }; | 316 }; |
313 | 317 |
314 #endif // CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ | 318 #endif // CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ |
OLD | NEW |