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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 // It might be nicer to have a thread pool for this kind of thing. | 140 // It might be nicer to have a thread pool for this kind of thing. |
141 virtual base::Thread* file_thread() = 0; | 141 virtual base::Thread* file_thread() = 0; |
142 | 142 |
143 // Returns the thread that is used for database operations such as the web | 143 // Returns the thread that is used for database operations such as the web |
144 // database. History has its own thread since it has much higher traffic. | 144 // database. History has its own thread since it has much higher traffic. |
145 virtual base::Thread* db_thread() = 0; | 145 virtual base::Thread* db_thread() = 0; |
146 | 146 |
147 // Returns the thread that is used for background cache operations. | 147 // Returns the thread that is used for background cache operations. |
148 virtual base::Thread* cache_thread() = 0; | 148 virtual base::Thread* cache_thread() = 0; |
149 | 149 |
| 150 // Returns the thread that is used for background appcache operations. |
| 151 virtual base::Thread* appcache_thread() = 0; |
| 152 |
150 // Returns the thread that is used for health check of all browser threads. | 153 // Returns the thread that is used for health check of all browser threads. |
151 virtual WatchDogThread* watchdog_thread() = 0; | 154 virtual WatchDogThread* watchdog_thread() = 0; |
152 | 155 |
153 #if defined(OS_CHROMEOS) | 156 #if defined(OS_CHROMEOS) |
154 // Returns thread for websocket to TCP proxy. | 157 // Returns thread for websocket to TCP proxy. |
155 // TODO(dilmah): remove this thread. Instead provide this functionality via | 158 // TODO(dilmah): remove this thread. Instead provide this functionality via |
156 // hooks into websocket bridge layer. | 159 // hooks into websocket bridge layer. |
157 virtual base::Thread* web_socket_proxy_thread() = 0; | 160 virtual base::Thread* web_socket_proxy_thread() = 0; |
158 #endif | 161 #endif |
159 | 162 |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
247 | 250 |
248 virtual CRLSetFetcher* crl_set_fetcher() = 0; | 251 virtual CRLSetFetcher* crl_set_fetcher() = 0; |
249 | 252 |
250 private: | 253 private: |
251 DISALLOW_COPY_AND_ASSIGN(BrowserProcess); | 254 DISALLOW_COPY_AND_ASSIGN(BrowserProcess); |
252 }; | 255 }; |
253 | 256 |
254 extern BrowserProcess* g_browser_process; | 257 extern BrowserProcess* g_browser_process; |
255 | 258 |
256 #endif // CHROME_BROWSER_BROWSER_PROCESS_H_ | 259 #endif // CHROME_BROWSER_BROWSER_PROCESS_H_ |
OLD | NEW |