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_ |
11 #define CHROME_BROWSER_BROWSER_PROCESS_H_ | 11 #define CHROME_BROWSER_BROWSER_PROCESS_H_ |
12 #pragma once | 12 #pragma once |
13 | 13 |
14 #include <string> | 14 #include <string> |
15 #include <vector> | 15 #include <vector> |
16 | 16 |
17 #include "base/basictypes.h" | 17 #include "base/basictypes.h" |
18 #include "base/memory/ref_counted.h" | 18 #include "base/memory/ref_counted.h" |
19 #include "ipc/ipc_message.h" | 19 #include "ipc/ipc_message.h" |
20 | 20 |
21 class AutomationProviderList; | 21 class AutomationProviderList; |
22 | 22 |
23 namespace safe_browsing { | 23 namespace safe_browsing { |
24 class ClientSideDetectionService; | 24 class ClientSideDetectionService; |
25 } | 25 } |
26 | 26 |
| 27 class BackgroundModeManager; |
27 class ChromeNetLog; | 28 class ChromeNetLog; |
28 class DevToolsManager; | 29 class DevToolsManager; |
29 class DownloadRequestLimiter; | 30 class DownloadRequestLimiter; |
30 class DownloadStatusUpdater; | 31 class DownloadStatusUpdater; |
31 class ExtensionEventRouterForwarder; | 32 class ExtensionEventRouterForwarder; |
32 class GoogleURLTracker; | 33 class GoogleURLTracker; |
33 class IconManager; | 34 class IconManager; |
34 class IntranetRedirectDetector; | 35 class IntranetRedirectDetector; |
35 class IOThread; | 36 class IOThread; |
36 class MetricsService; | 37 class MetricsService; |
37 class NotificationUIManager; | 38 class NotificationUIManager; |
38 class PrefService; | 39 class PrefService; |
39 class ProfileManager; | 40 class ProfileManager; |
40 class ResourceDispatcherHost; | 41 class ResourceDispatcherHost; |
41 class SidebarManager; | 42 class SidebarManager; |
| 43 class StatusTray; |
42 class TabCloseableStateWatcher; | 44 class TabCloseableStateWatcher; |
43 class ThumbnailGenerator; | 45 class ThumbnailGenerator; |
44 class WatchDogThread; | 46 class WatchDogThread; |
45 | 47 |
46 namespace base { | 48 namespace base { |
47 class Thread; | 49 class Thread; |
48 class WaitableEvent; | 50 class WaitableEvent; |
49 } | 51 } |
50 | 52 |
51 #if defined(OS_CHROMEOS) | 53 #if defined(OS_CHROMEOS) |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 virtual base::WaitableEvent* shutdown_event() = 0; | 194 virtual base::WaitableEvent* shutdown_event() = 0; |
193 | 195 |
194 // Returns a reference to the user-data-dir based profiles vector. | 196 // Returns a reference to the user-data-dir based profiles vector. |
195 std::vector<std::wstring>& user_data_dir_profiles() { | 197 std::vector<std::wstring>& user_data_dir_profiles() { |
196 return user_data_dir_profiles_; | 198 return user_data_dir_profiles_; |
197 } | 199 } |
198 | 200 |
199 // Returns the object that watches for changes in the closeable state of tab. | 201 // Returns the object that watches for changes in the closeable state of tab. |
200 virtual TabCloseableStateWatcher* tab_closeable_state_watcher() = 0; | 202 virtual TabCloseableStateWatcher* tab_closeable_state_watcher() = 0; |
201 | 203 |
| 204 // Returns the object that manages background applications. |
| 205 virtual BackgroundModeManager* background_mode_manager() = 0; |
| 206 |
| 207 // Returns the StatusTray, which provides an API for displaying status icons |
| 208 // in the system status tray. Returns NULL if status icons are not supported |
| 209 // on this platform (or this is a unit test). |
| 210 virtual StatusTray* status_tray() = 0; |
| 211 |
202 // Returns an object which handles communication with the SafeBrowsing | 212 // Returns an object which handles communication with the SafeBrowsing |
203 // client-side detection servers. | 213 // client-side detection servers. |
204 virtual safe_browsing::ClientSideDetectionService* | 214 virtual safe_browsing::ClientSideDetectionService* |
205 safe_browsing_detection_service() = 0; | 215 safe_browsing_detection_service() = 0; |
206 | 216 |
207 // Returns the state of the disable plugin finder policy. Callable only on | 217 // Returns the state of the disable plugin finder policy. Callable only on |
208 // the IO thread. | 218 // the IO thread. |
209 virtual bool plugin_finder_disabled() const = 0; | 219 virtual bool plugin_finder_disabled() const = 0; |
210 | 220 |
211 #if (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) | 221 #if (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) |
(...skipping 30 matching lines...) Expand all Loading... |
242 | 252 |
243 // Used for testing plugin data removal at shutdown. | 253 // Used for testing plugin data removal at shutdown. |
244 std::string plugin_data_remover_mime_type_; | 254 std::string plugin_data_remover_mime_type_; |
245 | 255 |
246 DISALLOW_COPY_AND_ASSIGN(BrowserProcess); | 256 DISALLOW_COPY_AND_ASSIGN(BrowserProcess); |
247 }; | 257 }; |
248 | 258 |
249 extern BrowserProcess* g_browser_process; | 259 extern BrowserProcess* g_browser_process; |
250 | 260 |
251 #endif // CHROME_BROWSER_BROWSER_PROCESS_H_ | 261 #endif // CHROME_BROWSER_BROWSER_PROCESS_H_ |
OLD | NEW |