| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 11 matching lines...) Expand all Loading... |
| 22 class DownloadRequestManager; | 22 class DownloadRequestManager; |
| 23 class GoogleURLTracker; | 23 class GoogleURLTracker; |
| 24 class IntranetRedirectDetector; | 24 class IntranetRedirectDetector; |
| 25 class IconManager; | 25 class IconManager; |
| 26 class MetricsService; | 26 class MetricsService; |
| 27 class NotificationUIManager; | 27 class NotificationUIManager; |
| 28 class PrefService; | 28 class PrefService; |
| 29 class ProfileManager; | 29 class ProfileManager; |
| 30 class DebuggerWrapper; | 30 class DebuggerWrapper; |
| 31 class ResourceDispatcherHost; | 31 class ResourceDispatcherHost; |
| 32 class StatusTrayManager; |
| 32 class SuspendController; | 33 class SuspendController; |
| 33 class ThumbnailGenerator; | 34 class ThumbnailGenerator; |
| 34 class WebAppInstallerService; | 35 class WebAppInstallerService; |
| 35 | 36 |
| 36 namespace base { | 37 namespace base { |
| 37 class Thread; | 38 class Thread; |
| 38 class WaitableEvent; | 39 class WaitableEvent; |
| 39 } | 40 } |
| 40 | 41 |
| 41 #if defined(OS_WIN) | 42 #if defined(OS_WIN) |
| (...skipping 27 matching lines...) Expand all Loading... |
| 69 virtual MetricsService* metrics_service() = 0; | 70 virtual MetricsService* metrics_service() = 0; |
| 70 virtual ProfileManager* profile_manager() = 0; | 71 virtual ProfileManager* profile_manager() = 0; |
| 71 virtual PrefService* local_state() = 0; | 72 virtual PrefService* local_state() = 0; |
| 72 virtual DebuggerWrapper* debugger_wrapper() = 0; | 73 virtual DebuggerWrapper* debugger_wrapper() = 0; |
| 73 virtual DevToolsManager* devtools_manager() = 0; | 74 virtual DevToolsManager* devtools_manager() = 0; |
| 74 virtual Clipboard* clipboard() = 0; | 75 virtual Clipboard* clipboard() = 0; |
| 75 | 76 |
| 76 // Returns the manager for desktop notifications. | 77 // Returns the manager for desktop notifications. |
| 77 virtual NotificationUIManager* notification_ui_manager() = 0; | 78 virtual NotificationUIManager* notification_ui_manager() = 0; |
| 78 | 79 |
| 80 // Returns the status tray manager (provides APIs for manipulating status |
| 81 // icons). |
| 82 virtual StatusTrayManager* status_tray_manager() = 0; |
| 83 |
| 79 // Returns the thread that we perform I/O coordination on (network requests, | 84 // Returns the thread that we perform I/O coordination on (network requests, |
| 80 // communication with renderers, etc. | 85 // communication with renderers, etc. |
| 81 // NOTE: You should ONLY use this to pass to IPC or other objects which must | 86 // NOTE: You should ONLY use this to pass to IPC or other objects which must |
| 82 // need a MessageLoop*. If you just want to post a task, use | 87 // need a MessageLoop*. If you just want to post a task, use |
| 83 // ChromeThread::PostTask (or other variants) as they take care of checking | 88 // ChromeThread::PostTask (or other variants) as they take care of checking |
| 84 // that a thread is still alive, race conditions, lifetime differences etc. | 89 // that a thread is still alive, race conditions, lifetime differences etc. |
| 85 // If you still must use this, need to check the return value for NULL. | 90 // If you still must use this, need to check the return value for NULL. |
| 86 virtual IOThread* io_thread() = 0; | 91 virtual IOThread* io_thread() = 0; |
| 87 | 92 |
| 88 // Returns the thread that we perform random file operations on. For code | 93 // Returns the thread that we perform random file operations on. For code |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 private: | 165 private: |
| 161 // User-data-dir based profiles. | 166 // User-data-dir based profiles. |
| 162 std::vector<std::wstring> user_data_dir_profiles_; | 167 std::vector<std::wstring> user_data_dir_profiles_; |
| 163 | 168 |
| 164 DISALLOW_COPY_AND_ASSIGN(BrowserProcess); | 169 DISALLOW_COPY_AND_ASSIGN(BrowserProcess); |
| 165 }; | 170 }; |
| 166 | 171 |
| 167 extern BrowserProcess* g_browser_process; | 172 extern BrowserProcess* g_browser_process; |
| 168 | 173 |
| 169 #endif // CHROME_BROWSER_BROWSER_PROCESS_H_ | 174 #endif // CHROME_BROWSER_BROWSER_PROCESS_H_ |
| OLD | NEW |