| 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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 // we can't route the request to the UI thread. Note that this thread | 138 // we can't route the request to the UI thread. Note that this thread |
| 139 // should only be used by the IO thread and this method is only safe to call | 139 // should only be used by the IO thread and this method is only safe to call |
| 140 // from the UI thread so, if you've ended up here, something has gone wrong. | 140 // from the UI thread so, if you've ended up here, something has gone wrong. |
| 141 // This method is only included for uniformity. | 141 // This method is only included for uniformity. |
| 142 virtual base::Thread* background_x11_thread() = 0; | 142 virtual base::Thread* background_x11_thread() = 0; |
| 143 #endif | 143 #endif |
| 144 | 144 |
| 145 // Returns the thread that is used for health check of all browser threads. | 145 // Returns the thread that is used for health check of all browser threads. |
| 146 virtual WatchDogThread* watchdog_thread() = 0; | 146 virtual WatchDogThread* watchdog_thread() = 0; |
| 147 | 147 |
| 148 #if defined(OS_CHROMEOS) |
| 149 // Returns thread for websocket to TCP proxy. |
| 150 // TODO(dilmah): remove this thread. Instead provide this functionality via |
| 151 // hooks into websocket bridge layer. |
| 152 virtual base::Thread* web_socket_proxy_thread() = 0; |
| 153 #endif |
| 154 |
| 148 virtual policy::BrowserPolicyConnector* browser_policy_connector() = 0; | 155 virtual policy::BrowserPolicyConnector* browser_policy_connector() = 0; |
| 149 | 156 |
| 150 virtual IconManager* icon_manager() = 0; | 157 virtual IconManager* icon_manager() = 0; |
| 151 | 158 |
| 152 virtual ThumbnailGenerator* GetThumbnailGenerator() = 0; | 159 virtual ThumbnailGenerator* GetThumbnailGenerator() = 0; |
| 153 | 160 |
| 154 virtual AutomationProviderList* InitAutomationProviderList() = 0; | 161 virtual AutomationProviderList* InitAutomationProviderList() = 0; |
| 155 | 162 |
| 156 virtual void InitDevToolsHttpProtocolHandler( | 163 virtual void InitDevToolsHttpProtocolHandler( |
| 157 const std::string& ip, | 164 const std::string& ip, |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 235 | 242 |
| 236 // Used for testing plugin data removal at shutdown. | 243 // Used for testing plugin data removal at shutdown. |
| 237 std::string plugin_data_remover_mime_type_; | 244 std::string plugin_data_remover_mime_type_; |
| 238 | 245 |
| 239 DISALLOW_COPY_AND_ASSIGN(BrowserProcess); | 246 DISALLOW_COPY_AND_ASSIGN(BrowserProcess); |
| 240 }; | 247 }; |
| 241 | 248 |
| 242 extern BrowserProcess* g_browser_process; | 249 extern BrowserProcess* g_browser_process; |
| 243 | 250 |
| 244 #endif // CHROME_BROWSER_BROWSER_PROCESS_H_ | 251 #endif // CHROME_BROWSER_BROWSER_PROCESS_H_ |
| OLD | NEW |