| 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 10 matching lines...) Expand all Loading... |
| 21 class CommandLine; | 21 class CommandLine; |
| 22 class CRLSetFetcher; | 22 class CRLSetFetcher; |
| 23 class ComponentUpdateService; | 23 class ComponentUpdateService; |
| 24 class DownloadRequestLimiter; | 24 class DownloadRequestLimiter; |
| 25 class DownloadStatusUpdater; | 25 class DownloadStatusUpdater; |
| 26 class IconManager; | 26 class IconManager; |
| 27 class IntranetRedirectDetector; | 27 class IntranetRedirectDetector; |
| 28 class IOThread; | 28 class IOThread; |
| 29 class MetricsService; | 29 class MetricsService; |
| 30 class NotificationUIManager; | 30 class NotificationUIManager; |
| 31 class PrefService; | 31 class PrefServiceSimple; |
| 32 class Profile; | 32 class Profile; |
| 33 class ProfileManager; | 33 class ProfileManager; |
| 34 class RenderWidgetSnapshotTaker; | 34 class RenderWidgetSnapshotTaker; |
| 35 class SafeBrowsingService; | 35 class SafeBrowsingService; |
| 36 class StatusTray; | 36 class StatusTray; |
| 37 class WatchDogThread; | 37 class WatchDogThread; |
| 38 | 38 |
| 39 namespace chrome { | 39 namespace chrome { |
| 40 class MediaFileSystemRegistry; | 40 class MediaFileSystemRegistry; |
| 41 } | 41 } |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 | 89 |
| 90 // Invoked when the user is logging out/shutting down. When logging off we may | 90 // Invoked when the user is logging out/shutting down. When logging off we may |
| 91 // not have enough time to do a normal shutdown. This method is invoked prior | 91 // not have enough time to do a normal shutdown. This method is invoked prior |
| 92 // to normal shutdown and saves any state that must be saved before we are | 92 // to normal shutdown and saves any state that must be saved before we are |
| 93 // continue shutdown. | 93 // continue shutdown. |
| 94 virtual void EndSession() = 0; | 94 virtual void EndSession() = 0; |
| 95 | 95 |
| 96 // Services: any of these getters may return NULL | 96 // Services: any of these getters may return NULL |
| 97 virtual MetricsService* metrics_service() = 0; | 97 virtual MetricsService* metrics_service() = 0; |
| 98 virtual ProfileManager* profile_manager() = 0; | 98 virtual ProfileManager* profile_manager() = 0; |
| 99 virtual PrefService* local_state() = 0; | 99 virtual PrefServiceSimple* local_state() = 0; |
| 100 virtual net::URLRequestContextGetter* system_request_context() = 0; | 100 virtual net::URLRequestContextGetter* system_request_context() = 0; |
| 101 virtual chrome_variations::VariationsService* variations_service() = 0; | 101 virtual chrome_variations::VariationsService* variations_service() = 0; |
| 102 | 102 |
| 103 #if defined(OS_CHROMEOS) | 103 #if defined(OS_CHROMEOS) |
| 104 // Returns the out-of-memory priority manager. | 104 // Returns the out-of-memory priority manager. |
| 105 virtual chromeos::OomPriorityManager* oom_priority_manager() = 0; | 105 virtual chromeos::OomPriorityManager* oom_priority_manager() = 0; |
| 106 #endif // defined(OS_CHROMEOS) | 106 #endif // defined(OS_CHROMEOS) |
| 107 | 107 |
| 108 virtual extensions::EventRouterForwarder* | 108 virtual extensions::EventRouterForwarder* |
| 109 extension_event_router_forwarder() = 0; | 109 extension_event_router_forwarder() = 0; |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 virtual void PlatformSpecificCommandLineProcessing( | 205 virtual void PlatformSpecificCommandLineProcessing( |
| 206 const CommandLine& command_line) = 0; | 206 const CommandLine& command_line) = 0; |
| 207 | 207 |
| 208 private: | 208 private: |
| 209 DISALLOW_COPY_AND_ASSIGN(BrowserProcess); | 209 DISALLOW_COPY_AND_ASSIGN(BrowserProcess); |
| 210 }; | 210 }; |
| 211 | 211 |
| 212 extern BrowserProcess* g_browser_process; | 212 extern BrowserProcess* g_browser_process; |
| 213 | 213 |
| 214 #endif // CHROME_BROWSER_BROWSER_PROCESS_H_ | 214 #endif // CHROME_BROWSER_BROWSER_PROCESS_H_ |
| OLD | NEW |