| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 interfaces is for managing the global services of the application. Each | 5 // This interfaces 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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 // Returns the thread that we perform random file operations on. For code | 89 // Returns the thread that we perform random file operations on. For code |
| 90 // that wants to do I/O operations (not network requests or even file: URL | 90 // that wants to do I/O operations (not network requests or even file: URL |
| 91 // requests), this is the thread to use to avoid blocking the UI thread. | 91 // requests), this is the thread to use to avoid blocking the UI thread. |
| 92 // It might be nicer to have a thread pool for this kind of thing. | 92 // It might be nicer to have a thread pool for this kind of thing. |
| 93 virtual base::Thread* file_thread() = 0; | 93 virtual base::Thread* file_thread() = 0; |
| 94 | 94 |
| 95 // Returns the thread that is used for database operations such as the web | 95 // Returns the thread that is used for database operations such as the web |
| 96 // database. History has its own thread since it has much higher traffic. | 96 // database. History has its own thread since it has much higher traffic. |
| 97 virtual base::Thread* db_thread() = 0; | 97 virtual base::Thread* db_thread() = 0; |
| 98 | 98 |
| 99 #if defined(OS_LINUX) |
| 100 // Returns the thread that is used to process UI requests in cases were |
| 101 // we can't route the request to the UI thread. Note that this thread |
| 102 // should only be used by the IO thread and this method is only safe to call |
| 103 // from the UI thread so, if you've ended up here, something has gone wrong. |
| 104 // This method is only included for uniformity. |
| 105 virtual base::Thread* background_x11_thread() = 0; |
| 106 #endif |
| 107 |
| 99 virtual sandbox::BrokerServices* broker_services() = 0; | 108 virtual sandbox::BrokerServices* broker_services() = 0; |
| 100 | 109 |
| 101 virtual IconManager* icon_manager() = 0; | 110 virtual IconManager* icon_manager() = 0; |
| 102 | 111 |
| 103 virtual void InitBrokerServices(sandbox::BrokerServices*) = 0; | 112 virtual void InitBrokerServices(sandbox::BrokerServices*) = 0; |
| 104 virtual AutomationProviderList* InitAutomationProviderList() = 0; | 113 virtual AutomationProviderList* InitAutomationProviderList() = 0; |
| 105 | 114 |
| 106 virtual void InitDebuggerWrapper(int port) = 0; | 115 virtual void InitDebuggerWrapper(int port) = 0; |
| 107 | 116 |
| 108 virtual unsigned int AddRefModule() = 0; | 117 virtual unsigned int AddRefModule() = 0; |
| (...skipping 27 matching lines...) Expand all Loading... |
| 136 private: | 145 private: |
| 137 // User-data-dir based profiles. | 146 // User-data-dir based profiles. |
| 138 std::vector<std::wstring> user_data_dir_profiles_; | 147 std::vector<std::wstring> user_data_dir_profiles_; |
| 139 | 148 |
| 140 DISALLOW_COPY_AND_ASSIGN(BrowserProcess); | 149 DISALLOW_COPY_AND_ASSIGN(BrowserProcess); |
| 141 }; | 150 }; |
| 142 | 151 |
| 143 extern BrowserProcess* g_browser_process; | 152 extern BrowserProcess* g_browser_process; |
| 144 | 153 |
| 145 #endif // CHROME_BROWSER_BROWSER_PROCESS_H_ | 154 #endif // CHROME_BROWSER_BROWSER_PROCESS_H_ |
| OLD | NEW |