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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 IOThread* io_thread() override; | 100 IOThread* io_thread() override; |
101 WatchDogThread* watchdog_thread() override; | 101 WatchDogThread* watchdog_thread() override; |
102 ProfileManager* profile_manager() override; | 102 ProfileManager* profile_manager() override; |
103 PrefService* local_state() override; | 103 PrefService* local_state() override; |
104 net::URLRequestContextGetter* system_request_context() override; | 104 net::URLRequestContextGetter* system_request_context() override; |
105 variations::VariationsService* variations_service() override; | 105 variations::VariationsService* variations_service() override; |
106 web_resource::PromoResourceService* promo_resource_service() override; | 106 web_resource::PromoResourceService* promo_resource_service() override; |
107 BrowserProcessPlatformPart* platform_part() override; | 107 BrowserProcessPlatformPart* platform_part() override; |
108 extensions::EventRouterForwarder* extension_event_router_forwarder() override; | 108 extensions::EventRouterForwarder* extension_event_router_forwarder() override; |
109 NotificationUIManager* notification_ui_manager() override; | 109 NotificationUIManager* notification_ui_manager() override; |
| 110 NotificationBridge* notification_bridge() override; |
110 message_center::MessageCenter* message_center() override; | 111 message_center::MessageCenter* message_center() override; |
111 policy::BrowserPolicyConnector* browser_policy_connector() override; | 112 policy::BrowserPolicyConnector* browser_policy_connector() override; |
112 policy::PolicyService* policy_service() override; | 113 policy::PolicyService* policy_service() override; |
113 IconManager* icon_manager() override; | 114 IconManager* icon_manager() override; |
114 GLStringManager* gl_string_manager() override; | 115 GLStringManager* gl_string_manager() override; |
115 GpuModeManager* gpu_mode_manager() override; | 116 GpuModeManager* gpu_mode_manager() override; |
116 void CreateDevToolsHttpProtocolHandler(const std::string& ip, | 117 void CreateDevToolsHttpProtocolHandler(const std::string& ip, |
117 uint16_t port) override; | 118 uint16_t port) override; |
118 void CreateDevToolsAutoOpener() override; | 119 void CreateDevToolsAutoOpener() override; |
119 bool IsShuttingDown() override; | 120 bool IsShuttingDown() override; |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 // KeepAliveStateObserver implementation | 163 // KeepAliveStateObserver implementation |
163 void OnKeepAliveStateChanged(bool is_keeping_alive) override; | 164 void OnKeepAliveStateChanged(bool is_keeping_alive) override; |
164 void OnKeepAliveRestartStateChanged(bool can_restart) override; | 165 void OnKeepAliveRestartStateChanged(bool can_restart) override; |
165 | 166 |
166 void CreateWatchdogThread(); | 167 void CreateWatchdogThread(); |
167 void CreateProfileManager(); | 168 void CreateProfileManager(); |
168 void CreateLocalState(); | 169 void CreateLocalState(); |
169 void CreateViewedPageTracker(); | 170 void CreateViewedPageTracker(); |
170 void CreateIconManager(); | 171 void CreateIconManager(); |
171 void CreateIntranetRedirectDetector(); | 172 void CreateIntranetRedirectDetector(); |
| 173 void CreateNotificationBridge(); |
172 void CreateNotificationUIManager(); | 174 void CreateNotificationUIManager(); |
173 void CreateStatusTrayManager(); | 175 void CreateStatusTrayManager(); |
174 void CreatePrintPreviewDialogController(); | 176 void CreatePrintPreviewDialogController(); |
175 void CreateBackgroundPrintingManager(); | 177 void CreateBackgroundPrintingManager(); |
176 void CreateSafeBrowsingService(); | 178 void CreateSafeBrowsingService(); |
177 void CreateSafeBrowsingDetectionService(); | 179 void CreateSafeBrowsingDetectionService(); |
178 void CreateStatusTray(); | 180 void CreateStatusTray(); |
179 void CreateBackgroundModeManager(); | 181 void CreateBackgroundModeManager(); |
180 void CreateGCMDriver(); | 182 void CreateGCMDriver(); |
181 | 183 |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
237 #endif | 239 #endif |
238 | 240 |
239 // Manager for desktop notification UI. | 241 // Manager for desktop notification UI. |
240 bool created_notification_ui_manager_; | 242 bool created_notification_ui_manager_; |
241 scoped_ptr<NotificationUIManager> notification_ui_manager_; | 243 scoped_ptr<NotificationUIManager> notification_ui_manager_; |
242 | 244 |
243 scoped_ptr<IntranetRedirectDetector> intranet_redirect_detector_; | 245 scoped_ptr<IntranetRedirectDetector> intranet_redirect_detector_; |
244 | 246 |
245 scoped_ptr<StatusTray> status_tray_; | 247 scoped_ptr<StatusTray> status_tray_; |
246 | 248 |
| 249 bool created_notification_bridge_; |
| 250 scoped_ptr<NotificationBridge> notification_bridge_; |
| 251 |
247 #if BUILDFLAG(ENABLE_BACKGROUND) | 252 #if BUILDFLAG(ENABLE_BACKGROUND) |
248 scoped_ptr<BackgroundModeManager> background_mode_manager_; | 253 scoped_ptr<BackgroundModeManager> background_mode_manager_; |
249 #endif | 254 #endif |
250 | 255 |
251 bool created_safe_browsing_service_; | 256 bool created_safe_browsing_service_; |
252 scoped_refptr<safe_browsing::SafeBrowsingService> safe_browsing_service_; | 257 scoped_refptr<safe_browsing::SafeBrowsingService> safe_browsing_service_; |
253 | 258 |
254 bool shutting_down_; | 259 bool shutting_down_; |
255 | 260 |
256 bool tearing_down_; | 261 bool tearing_down_; |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
334 // chrome/browser/memory/tab_manager_browsertest.cc | 339 // chrome/browser/memory/tab_manager_browsertest.cc |
335 scoped_ptr<memory::TabManager> tab_manager_; | 340 scoped_ptr<memory::TabManager> tab_manager_; |
336 #endif | 341 #endif |
337 | 342 |
338 shell_integration::DefaultWebClientState cached_default_web_client_state_; | 343 shell_integration::DefaultWebClientState cached_default_web_client_state_; |
339 | 344 |
340 DISALLOW_COPY_AND_ASSIGN(BrowserProcessImpl); | 345 DISALLOW_COPY_AND_ASSIGN(BrowserProcessImpl); |
341 }; | 346 }; |
342 | 347 |
343 #endif // CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ | 348 #endif // CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ |
OLD | NEW |