| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 // This interface is for managing the global services of the application. Each | 5 // This interface is for managing the global services of the application. Each |
| 6 // service is lazily created when requested the first time. The service getters | 6 // service is lazily created when requested the first time. The service getters |
| 7 // will return NULL if the service is not available, so callers must check for | 7 // will return NULL if the service is not available, so callers must check for |
| 8 // this condition. | 8 // this condition. |
| 9 | 9 |
| 10 #ifndef CHROME_BROWSER_BROWSER_PROCESS_H_ | 10 #ifndef CHROME_BROWSER_BROWSER_PROCESS_H_ |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 class IntranetRedirectDetector; | 32 class IntranetRedirectDetector; |
| 33 class IOThread; | 33 class IOThread; |
| 34 class MetricsService; | 34 class MetricsService; |
| 35 class NotificationUIManager; | 35 class NotificationUIManager; |
| 36 class PrefService; | 36 class PrefService; |
| 37 class ProfileManager; | 37 class ProfileManager; |
| 38 class ResourceDispatcherHost; | 38 class ResourceDispatcherHost; |
| 39 class SidebarManager; | 39 class SidebarManager; |
| 40 class TabCloseableStateWatcher; | 40 class TabCloseableStateWatcher; |
| 41 class ThumbnailGenerator; | 41 class ThumbnailGenerator; |
| 42 class WatchDogThread; |
| 42 | 43 |
| 43 namespace base { | 44 namespace base { |
| 44 class Thread; | 45 class Thread; |
| 45 class WaitableEvent; | 46 class WaitableEvent; |
| 46 } | 47 } |
| 47 | 48 |
| 48 namespace printing { | 49 namespace printing { |
| 49 class PrintJobManager; | 50 class PrintJobManager; |
| 50 class PrintPreviewTabController; | 51 class PrintPreviewTabController; |
| 51 } | 52 } |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 | 109 |
| 109 #if defined(USE_X11) | 110 #if defined(USE_X11) |
| 110 // Returns the thread that is used to process UI requests in cases where | 111 // Returns the thread that is used to process UI requests in cases where |
| 111 // we can't route the request to the UI thread. Note that this thread | 112 // we can't route the request to the UI thread. Note that this thread |
| 112 // should only be used by the IO thread and this method is only safe to call | 113 // should only be used by the IO thread and this method is only safe to call |
| 113 // from the UI thread so, if you've ended up here, something has gone wrong. | 114 // from the UI thread so, if you've ended up here, something has gone wrong. |
| 114 // This method is only included for uniformity. | 115 // This method is only included for uniformity. |
| 115 virtual base::Thread* background_x11_thread() = 0; | 116 virtual base::Thread* background_x11_thread() = 0; |
| 116 #endif | 117 #endif |
| 117 | 118 |
| 119 // Returns the thread that is used for health check of all browser threads. |
| 120 virtual WatchDogThread* watchdog_thread() = 0; |
| 121 |
| 118 virtual policy::BrowserPolicyConnector* browser_policy_connector() = 0; | 122 virtual policy::BrowserPolicyConnector* browser_policy_connector() = 0; |
| 119 | 123 |
| 120 virtual IconManager* icon_manager() = 0; | 124 virtual IconManager* icon_manager() = 0; |
| 121 | 125 |
| 122 virtual ThumbnailGenerator* GetThumbnailGenerator() = 0; | 126 virtual ThumbnailGenerator* GetThumbnailGenerator() = 0; |
| 123 | 127 |
| 124 virtual AutomationProviderList* InitAutomationProviderList() = 0; | 128 virtual AutomationProviderList* InitAutomationProviderList() = 0; |
| 125 | 129 |
| 126 virtual void InitDevToolsHttpProtocolHandler( | 130 virtual void InitDevToolsHttpProtocolHandler( |
| 127 const std::string& ip, | 131 const std::string& ip, |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 | 216 |
| 213 // Used for testing plugin data removal at shutdown. | 217 // Used for testing plugin data removal at shutdown. |
| 214 std::string plugin_data_remover_mime_type_; | 218 std::string plugin_data_remover_mime_type_; |
| 215 | 219 |
| 216 DISALLOW_COPY_AND_ASSIGN(BrowserProcess); | 220 DISALLOW_COPY_AND_ASSIGN(BrowserProcess); |
| 217 }; | 221 }; |
| 218 | 222 |
| 219 extern BrowserProcess* g_browser_process; | 223 extern BrowserProcess* g_browser_process; |
| 220 | 224 |
| 221 #endif // CHROME_BROWSER_BROWSER_PROCESS_H_ | 225 #endif // CHROME_BROWSER_BROWSER_PROCESS_H_ |
| OLD | NEW |