| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 // NOTE: If you want to post a task to the IO thread, use | 129 // NOTE: If you want to post a task to the IO thread, use |
| 130 // BrowserThread::PostTask (or other variants). | 130 // BrowserThread::PostTask (or other variants). |
| 131 virtual IOThread* io_thread() = 0; | 131 virtual IOThread* io_thread() = 0; |
| 132 | 132 |
| 133 // Returns the thread that is used for health check of all browser threads. | 133 // Returns the thread that is used for health check of all browser threads. |
| 134 virtual WatchDogThread* watchdog_thread() = 0; | 134 virtual WatchDogThread* watchdog_thread() = 0; |
| 135 | 135 |
| 136 // Starts and manages the policy system. | 136 // Starts and manages the policy system. |
| 137 virtual policy::BrowserPolicyConnector* browser_policy_connector() = 0; | 137 virtual policy::BrowserPolicyConnector* browser_policy_connector() = 0; |
| 138 | 138 |
| 139 // Returns true if policy system was already started. |
| 140 virtual bool is_browser_policy_connector_created() = 0; |
| 141 |
| 139 // This is the main interface for chromium components to retrieve policy | 142 // This is the main interface for chromium components to retrieve policy |
| 140 // information from the policy system. | 143 // information from the policy system. |
| 141 virtual policy::PolicyService* policy_service() = 0; | 144 virtual policy::PolicyService* policy_service() = 0; |
| 142 | 145 |
| 143 virtual IconManager* icon_manager() = 0; | 146 virtual IconManager* icon_manager() = 0; |
| 144 | 147 |
| 145 virtual GLStringManager* gl_string_manager() = 0; | 148 virtual GLStringManager* gl_string_manager() = 0; |
| 146 | 149 |
| 147 virtual GpuModeManager* gpu_mode_manager() = 0; | 150 virtual GpuModeManager* gpu_mode_manager() = 0; |
| 148 | 151 |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 219 virtual WebRtcLogUploader* webrtc_log_uploader() = 0; | 222 virtual WebRtcLogUploader* webrtc_log_uploader() = 0; |
| 220 #endif | 223 #endif |
| 221 | 224 |
| 222 private: | 225 private: |
| 223 DISALLOW_COPY_AND_ASSIGN(BrowserProcess); | 226 DISALLOW_COPY_AND_ASSIGN(BrowserProcess); |
| 224 }; | 227 }; |
| 225 | 228 |
| 226 extern BrowserProcess* g_browser_process; | 229 extern BrowserProcess* g_browser_process; |
| 227 | 230 |
| 228 #endif // CHROME_BROWSER_BROWSER_PROCESS_H_ | 231 #endif // CHROME_BROWSER_BROWSER_PROCESS_H_ |
| OLD | NEW |