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 // It might be nicer to have a thread pool for this kind of thing. | 127 // It might be nicer to have a thread pool for this kind of thing. |
128 virtual base::Thread* file_thread() = 0; | 128 virtual base::Thread* file_thread() = 0; |
129 | 129 |
130 // Returns the thread that is used for database operations such as the web | 130 // Returns the thread that is used for database operations such as the web |
131 // database. History has its own thread since it has much higher traffic. | 131 // database. History has its own thread since it has much higher traffic. |
132 virtual base::Thread* db_thread() = 0; | 132 virtual base::Thread* db_thread() = 0; |
133 | 133 |
134 // Returns the thread that is used for background cache operations. | 134 // Returns the thread that is used for background cache operations. |
135 virtual base::Thread* cache_thread() = 0; | 135 virtual base::Thread* cache_thread() = 0; |
136 | 136 |
137 // Returns the thread that issues GPU calls. | |
138 virtual base::Thread* gpu_thread() = 0; | |
139 | |
140 #if defined(USE_X11) | 137 #if defined(USE_X11) |
141 // Returns the thread that is used to process UI requests in cases where | 138 // Returns the thread that is used to process UI requests in cases where |
142 // we can't route the request to the UI thread. Note that this thread | 139 // we can't route the request to the UI thread. Note that this thread |
143 // should only be used by the IO thread and this method is only safe to call | 140 // should only be used by the IO thread and this method is only safe to call |
144 // from the UI thread so, if you've ended up here, something has gone wrong. | 141 // from the UI thread so, if you've ended up here, something has gone wrong. |
145 // This method is only included for uniformity. | 142 // This method is only included for uniformity. |
146 virtual base::Thread* background_x11_thread() = 0; | 143 virtual base::Thread* background_x11_thread() = 0; |
147 #endif | 144 #endif |
148 | 145 |
149 // Returns the thread that is used for health check of all browser threads. | 146 // Returns the thread that is used for health check of all browser threads. |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
248 | 245 |
249 // Used for testing plugin data removal at shutdown. | 246 // Used for testing plugin data removal at shutdown. |
250 std::string plugin_data_remover_mime_type_; | 247 std::string plugin_data_remover_mime_type_; |
251 | 248 |
252 DISALLOW_COPY_AND_ASSIGN(BrowserProcess); | 249 DISALLOW_COPY_AND_ASSIGN(BrowserProcess); |
253 }; | 250 }; |
254 | 251 |
255 extern BrowserProcess* g_browser_process; | 252 extern BrowserProcess* g_browser_process; |
256 | 253 |
257 #endif // CHROME_BROWSER_BROWSER_PROCESS_H_ | 254 #endif // CHROME_BROWSER_BROWSER_PROCESS_H_ |
OLD | NEW |