| 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_ |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 class IntranetRedirectDetector; | 32 class IntranetRedirectDetector; |
| 33 class IOThread; | 33 class IOThread; |
| 34 class MetricsService; | 34 class MetricsService; |
| 35 class MHTMLGenerationManager; | 35 class MHTMLGenerationManager; |
| 36 class NotificationUIManager; | 36 class NotificationUIManager; |
| 37 class PrefService; | 37 class PrefService; |
| 38 class Profile; | 38 class Profile; |
| 39 class ProfileManager; | 39 class ProfileManager; |
| 40 class ResourceDispatcherHost; | 40 class ResourceDispatcherHost; |
| 41 class SafeBrowsingService; | 41 class SafeBrowsingService; |
| 42 class SidebarManager; | |
| 43 class StatusTray; | 42 class StatusTray; |
| 44 class TabCloseableStateWatcher; | 43 class TabCloseableStateWatcher; |
| 45 class ThumbnailGenerator; | 44 class ThumbnailGenerator; |
| 46 class WatchDogThread; | 45 class WatchDogThread; |
| 47 | 46 |
| 48 #if defined(OS_CHROMEOS) | 47 #if defined(OS_CHROMEOS) |
| 49 namespace browser { | 48 namespace browser { |
| 50 class OomPriorityManager; | 49 class OomPriorityManager; |
| 51 } | 50 } |
| 52 #endif // defined(OS_CHROMEOS) | 51 #endif // defined(OS_CHROMEOS) |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 // to normal shutdown and saves any state that must be saved before we are | 88 // to normal shutdown and saves any state that must be saved before we are |
| 90 // continue shutdown. | 89 // continue shutdown. |
| 91 virtual void EndSession() = 0; | 90 virtual void EndSession() = 0; |
| 92 | 91 |
| 93 // Services: any of these getters may return NULL | 92 // Services: any of these getters may return NULL |
| 94 virtual ResourceDispatcherHost* resource_dispatcher_host() = 0; | 93 virtual ResourceDispatcherHost* resource_dispatcher_host() = 0; |
| 95 | 94 |
| 96 virtual MetricsService* metrics_service() = 0; | 95 virtual MetricsService* metrics_service() = 0; |
| 97 virtual ProfileManager* profile_manager() = 0; | 96 virtual ProfileManager* profile_manager() = 0; |
| 98 virtual PrefService* local_state() = 0; | 97 virtual PrefService* local_state() = 0; |
| 99 virtual SidebarManager* sidebar_manager() = 0; | |
| 100 virtual ui::Clipboard* clipboard() = 0; | 98 virtual ui::Clipboard* clipboard() = 0; |
| 101 virtual net::URLRequestContextGetter* system_request_context() = 0; | 99 virtual net::URLRequestContextGetter* system_request_context() = 0; |
| 102 | 100 |
| 103 #if defined(OS_CHROMEOS) | 101 #if defined(OS_CHROMEOS) |
| 104 // Returns the out-of-memory priority manager. | 102 // Returns the out-of-memory priority manager. |
| 105 virtual browser::OomPriorityManager* oom_priority_manager() = 0; | 103 virtual browser::OomPriorityManager* oom_priority_manager() = 0; |
| 106 #endif // defined(OS_CHROMEOS) | 104 #endif // defined(OS_CHROMEOS) |
| 107 | 105 |
| 108 virtual ExtensionEventRouterForwarder* | 106 virtual ExtensionEventRouterForwarder* |
| 109 extension_event_router_forwarder() = 0; | 107 extension_event_router_forwarder() = 0; |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 | 203 |
| 206 virtual AudioManager* audio_manager() = 0; | 204 virtual AudioManager* audio_manager() = 0; |
| 207 | 205 |
| 208 private: | 206 private: |
| 209 DISALLOW_COPY_AND_ASSIGN(BrowserProcess); | 207 DISALLOW_COPY_AND_ASSIGN(BrowserProcess); |
| 210 }; | 208 }; |
| 211 | 209 |
| 212 extern BrowserProcess* g_browser_process; | 210 extern BrowserProcess* g_browser_process; |
| 213 | 211 |
| 214 #endif // CHROME_BROWSER_BROWSER_PROCESS_H_ | 212 #endif // CHROME_BROWSER_BROWSER_PROCESS_H_ |
| OLD | NEW |