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