| 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_ |
| 11 #define CHROME_BROWSER_BROWSER_PROCESS_H_ | 11 #define CHROME_BROWSER_BROWSER_PROCESS_H_ |
| 12 | 12 |
| 13 #include <stdint.h> | 13 #include <stdint.h> |
| 14 | 14 |
| 15 #include <memory> | 15 #include <memory> |
| 16 #include <string> | 16 #include <string> |
| 17 | 17 |
| 18 #include "base/macros.h" | 18 #include "base/macros.h" |
| 19 #include "build/build_config.h" | 19 #include "build/build_config.h" |
| 20 #include "chrome/browser/browser_process_platform_part.h" | 20 #include "chrome/browser/browser_process_platform_part.h" |
| 21 #include "chrome/browser/shell_integration.h" | 21 #include "chrome/browser/shell_integration.h" |
| 22 #include "media/media_features.h" |
| 22 | 23 |
| 23 class BackgroundModeManager; | 24 class BackgroundModeManager; |
| 24 class CRLSetFetcher; | 25 class CRLSetFetcher; |
| 25 class DownloadRequestLimiter; | 26 class DownloadRequestLimiter; |
| 26 class DownloadStatusUpdater; | 27 class DownloadStatusUpdater; |
| 27 class GpuModeManager; | 28 class GpuModeManager; |
| 28 class GpuProfileCache; | 29 class GpuProfileCache; |
| 29 class IconManager; | 30 class IconManager; |
| 30 class IntranetRedirectDetector; | 31 class IntranetRedirectDetector; |
| 31 class IOThread; | 32 class IOThread; |
| 32 class MediaFileSystemRegistry; | 33 class MediaFileSystemRegistry; |
| 33 class NotificationPlatformBridge; | 34 class NotificationPlatformBridge; |
| 34 class NotificationUIManager; | 35 class NotificationUIManager; |
| 35 class PhysicalWebDataSource; | 36 class PhysicalWebDataSource; |
| 36 class PrefRegistrySimple; | 37 class PrefRegistrySimple; |
| 37 class PrefService; | 38 class PrefService; |
| 38 class Profile; | 39 class Profile; |
| 39 class ProfileManager; | 40 class ProfileManager; |
| 40 class StatusTray; | 41 class StatusTray; |
| 41 class WatchDogThread; | 42 class WatchDogThread; |
| 42 #if defined(ENABLE_WEBRTC) | 43 #if BUILDFLAG(ENABLE_WEBRTC) |
| 43 class WebRtcLogUploader; | 44 class WebRtcLogUploader; |
| 44 #endif | 45 #endif |
| 45 | 46 |
| 46 namespace safe_browsing { | 47 namespace safe_browsing { |
| 47 class SafeBrowsingService; | 48 class SafeBrowsingService; |
| 48 } | 49 } |
| 49 | 50 |
| 50 namespace subresource_filter { | 51 namespace subresource_filter { |
| 51 class RulesetService; | 52 class RulesetService; |
| 52 } | 53 } |
| (...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 255 virtual component_updater::PnaclComponentInstaller* | 256 virtual component_updater::PnaclComponentInstaller* |
| 256 pnacl_component_installer() = 0; | 257 pnacl_component_installer() = 0; |
| 257 | 258 |
| 258 virtual component_updater::SupervisedUserWhitelistInstaller* | 259 virtual component_updater::SupervisedUserWhitelistInstaller* |
| 259 supervised_user_whitelist_installer() = 0; | 260 supervised_user_whitelist_installer() = 0; |
| 260 | 261 |
| 261 virtual MediaFileSystemRegistry* media_file_system_registry() = 0; | 262 virtual MediaFileSystemRegistry* media_file_system_registry() = 0; |
| 262 | 263 |
| 263 virtual bool created_local_state() const = 0; | 264 virtual bool created_local_state() const = 0; |
| 264 | 265 |
| 265 #if defined(ENABLE_WEBRTC) | 266 #if BUILDFLAG(ENABLE_WEBRTC) |
| 266 virtual WebRtcLogUploader* webrtc_log_uploader() = 0; | 267 virtual WebRtcLogUploader* webrtc_log_uploader() = 0; |
| 267 #endif | 268 #endif |
| 268 | 269 |
| 269 virtual network_time::NetworkTimeTracker* network_time_tracker() = 0; | 270 virtual network_time::NetworkTimeTracker* network_time_tracker() = 0; |
| 270 | 271 |
| 271 virtual gcm::GCMDriver* gcm_driver() = 0; | 272 virtual gcm::GCMDriver* gcm_driver() = 0; |
| 272 | 273 |
| 273 // Returns the tab manager. On non-supported platforms, this returns null. | 274 // Returns the tab manager. On non-supported platforms, this returns null. |
| 274 virtual memory::TabManager* GetTabManager() = 0; | 275 virtual memory::TabManager* GetTabManager() = 0; |
| 275 | 276 |
| 276 // Returns the default web client state of Chrome (i.e., was it the user's | 277 // Returns the default web client state of Chrome (i.e., was it the user's |
| 277 // default browser) at the time a previous check was made sometime between | 278 // default browser) at the time a previous check was made sometime between |
| 278 // process startup and now. | 279 // process startup and now. |
| 279 virtual shell_integration::DefaultWebClientState | 280 virtual shell_integration::DefaultWebClientState |
| 280 CachedDefaultWebClientState() = 0; | 281 CachedDefaultWebClientState() = 0; |
| 281 | 282 |
| 282 // Returns the Physical Web data source. | 283 // Returns the Physical Web data source. |
| 283 virtual PhysicalWebDataSource* GetPhysicalWebDataSource() = 0; | 284 virtual PhysicalWebDataSource* GetPhysicalWebDataSource() = 0; |
| 284 | 285 |
| 285 private: | 286 private: |
| 286 DISALLOW_COPY_AND_ASSIGN(BrowserProcess); | 287 DISALLOW_COPY_AND_ASSIGN(BrowserProcess); |
| 287 }; | 288 }; |
| 288 | 289 |
| 289 extern BrowserProcess* g_browser_process; | 290 extern BrowserProcess* g_browser_process; |
| 290 | 291 |
| 291 #endif // CHROME_BROWSER_BROWSER_PROCESS_H_ | 292 #endif // CHROME_BROWSER_BROWSER_PROCESS_H_ |
| OLD | NEW |