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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 // Returns the thread that we perform random file operations on. For code | 127 // Returns the thread that we perform random file operations on. For code |
128 // that wants to do I/O operations (not network requests or even file: URL | 128 // that wants to do I/O operations (not network requests or even file: URL |
129 // requests), this is the thread to use to avoid blocking the UI thread. | 129 // requests), this is the thread to use to avoid blocking the UI thread. |
130 // It might be nicer to have a thread pool for this kind of thing. | 130 // It might be nicer to have a thread pool for this kind of thing. |
131 virtual base::Thread* file_thread() = 0; | 131 virtual base::Thread* file_thread() = 0; |
132 | 132 |
133 // Returns the thread that is used for database operations such as the web | 133 // Returns the thread that is used for database operations such as the web |
134 // database. History has its own thread since it has much higher traffic. | 134 // database. History has its own thread since it has much higher traffic. |
135 virtual base::Thread* db_thread() = 0; | 135 virtual base::Thread* db_thread() = 0; |
136 | 136 |
137 // Returns the thread that is used for background cache operations. | |
138 virtual base::Thread* cache_thread() = 0; | |
139 | |
140 // Returns the thread that is used for health check of all browser threads. | 137 // Returns the thread that is used for health check of all browser threads. |
141 virtual WatchDogThread* watchdog_thread() = 0; | 138 virtual WatchDogThread* watchdog_thread() = 0; |
142 | 139 |
143 #if defined(OS_CHROMEOS) | 140 #if defined(OS_CHROMEOS) |
144 // Returns thread for websocket to TCP proxy. | 141 // Returns thread for websocket to TCP proxy. |
145 // TODO(dilmah): remove this thread. Instead provide this functionality via | 142 // TODO(dilmah): remove this thread. Instead provide this functionality via |
146 // hooks into websocket bridge layer. | 143 // hooks into websocket bridge layer. |
147 virtual base::Thread* web_socket_proxy_thread() = 0; | 144 virtual base::Thread* web_socket_proxy_thread() = 0; |
148 #endif | 145 #endif |
149 | 146 |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
228 | 225 |
229 virtual CRLSetFetcher* crl_set_fetcher() = 0; | 226 virtual CRLSetFetcher* crl_set_fetcher() = 0; |
230 | 227 |
231 private: | 228 private: |
232 DISALLOW_COPY_AND_ASSIGN(BrowserProcess); | 229 DISALLOW_COPY_AND_ASSIGN(BrowserProcess); |
233 }; | 230 }; |
234 | 231 |
235 extern BrowserProcess* g_browser_process; | 232 extern BrowserProcess* g_browser_process; |
236 | 233 |
237 #endif // CHROME_BROWSER_BROWSER_PROCESS_H_ | 234 #endif // CHROME_BROWSER_BROWSER_PROCESS_H_ |
OLD | NEW |