| 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 namespace prerender { | 74 namespace prerender { |
| 75 class PrerenderTracker; | 75 class PrerenderTracker; |
| 76 } | 76 } |
| 77 | 77 |
| 78 namespace printing { | 78 namespace printing { |
| 79 class BackgroundPrintingManager; | 79 class BackgroundPrintingManager; |
| 80 class PrintJobManager; | 80 class PrintJobManager; |
| 81 class PrintPreviewDialogController; | 81 class PrintPreviewDialogController; |
| 82 } | 82 } |
| 83 | 83 |
| 84 namespace rappor { |
| 85 class RapporService; |
| 86 } |
| 87 |
| 84 namespace safe_browsing { | 88 namespace safe_browsing { |
| 85 class ClientSideDetectionService; | 89 class ClientSideDetectionService; |
| 86 } | 90 } |
| 87 | 91 |
| 88 // NOT THREAD SAFE, call only from the main thread. | 92 // NOT THREAD SAFE, call only from the main thread. |
| 89 // These functions shouldn't return NULL unless otherwise noted. | 93 // These functions shouldn't return NULL unless otherwise noted. |
| 90 class BrowserProcess { | 94 class BrowserProcess { |
| 91 public: | 95 public: |
| 92 BrowserProcess(); | 96 BrowserProcess(); |
| 93 virtual ~BrowserProcess(); | 97 virtual ~BrowserProcess(); |
| 94 | 98 |
| 95 // Called when the ResourceDispatcherHost object is created by content. | 99 // Called when the ResourceDispatcherHost object is created by content. |
| 96 virtual void ResourceDispatcherHostCreated() = 0; | 100 virtual void ResourceDispatcherHostCreated() = 0; |
| 97 | 101 |
| 98 // Invoked when the user is logging out/shutting down. When logging off we may | 102 // Invoked when the user is logging out/shutting down. When logging off we may |
| 99 // not have enough time to do a normal shutdown. This method is invoked prior | 103 // not have enough time to do a normal shutdown. This method is invoked prior |
| 100 // to normal shutdown and saves any state that must be saved before we are | 104 // to normal shutdown and saves any state that must be saved before we are |
| 101 // continue shutdown. | 105 // continue shutdown. |
| 102 virtual void EndSession() = 0; | 106 virtual void EndSession() = 0; |
| 103 | 107 |
| 104 // Services: any of these getters may return NULL | 108 // Services: any of these getters may return NULL |
| 105 virtual MetricsService* metrics_service() = 0; | 109 virtual MetricsService* metrics_service() = 0; |
| 110 virtual rappor::RapporService* rappor_service() = 0; |
| 106 virtual ProfileManager* profile_manager() = 0; | 111 virtual ProfileManager* profile_manager() = 0; |
| 107 virtual PrefService* local_state() = 0; | 112 virtual PrefService* local_state() = 0; |
| 108 virtual net::URLRequestContextGetter* system_request_context() = 0; | 113 virtual net::URLRequestContextGetter* system_request_context() = 0; |
| 109 virtual chrome_variations::VariationsService* variations_service() = 0; | 114 virtual chrome_variations::VariationsService* variations_service() = 0; |
| 110 | 115 |
| 111 virtual BrowserProcessPlatformPart* platform_part() = 0; | 116 virtual BrowserProcessPlatformPart* platform_part() = 0; |
| 112 | 117 |
| 113 virtual extensions::EventRouterForwarder* | 118 virtual extensions::EventRouterForwarder* |
| 114 extension_event_router_forwarder() = 0; | 119 extension_event_router_forwarder() = 0; |
| 115 | 120 |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 227 virtual WebRtcLogUploader* webrtc_log_uploader() = 0; | 232 virtual WebRtcLogUploader* webrtc_log_uploader() = 0; |
| 228 #endif | 233 #endif |
| 229 | 234 |
| 230 private: | 235 private: |
| 231 DISALLOW_COPY_AND_ASSIGN(BrowserProcess); | 236 DISALLOW_COPY_AND_ASSIGN(BrowserProcess); |
| 232 }; | 237 }; |
| 233 | 238 |
| 234 extern BrowserProcess* g_browser_process; | 239 extern BrowserProcess* g_browser_process; |
| 235 | 240 |
| 236 #endif // CHROME_BROWSER_BROWSER_PROCESS_H_ | 241 #endif // CHROME_BROWSER_BROWSER_PROCESS_H_ |
| OLD | NEW |