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 <string> | 13 #include <string> |
14 | 14 |
15 #include "base/basictypes.h" | 15 #include "base/basictypes.h" |
16 #include "base/memory/scoped_ptr.h" | 16 #include "base/memory/scoped_ptr.h" |
17 #include "chrome/browser/browser_process_platform_part.h" | 17 #include "chrome/browser/browser_process_platform_part.h" |
| 18 #include "chrome/browser/shell_integration.h" |
18 #include "chrome/browser/ui/host_desktop.h" | 19 #include "chrome/browser/ui/host_desktop.h" |
19 | 20 |
20 class BackgroundModeManager; | 21 class BackgroundModeManager; |
21 class ChromeNetLog; | 22 class ChromeNetLog; |
22 class CRLSetFetcher; | 23 class CRLSetFetcher; |
23 class DownloadRequestLimiter; | 24 class DownloadRequestLimiter; |
24 class DownloadStatusUpdater; | 25 class DownloadStatusUpdater; |
25 class GLStringManager; | 26 class GLStringManager; |
26 class GpuModeManager; | 27 class GpuModeManager; |
27 class IconManager; | 28 class IconManager; |
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
239 virtual WebRtcLogUploader* webrtc_log_uploader() = 0; | 240 virtual WebRtcLogUploader* webrtc_log_uploader() = 0; |
240 #endif | 241 #endif |
241 | 242 |
242 virtual network_time::NetworkTimeTracker* network_time_tracker() = 0; | 243 virtual network_time::NetworkTimeTracker* network_time_tracker() = 0; |
243 | 244 |
244 virtual gcm::GCMDriver* gcm_driver() = 0; | 245 virtual gcm::GCMDriver* gcm_driver() = 0; |
245 | 246 |
246 // Returns the out-of-memory priority manager if it exists, null otherwise. | 247 // Returns the out-of-memory priority manager if it exists, null otherwise. |
247 virtual memory::OomPriorityManager* GetOomPriorityManager() = 0; | 248 virtual memory::OomPriorityManager* GetOomPriorityManager() = 0; |
248 | 249 |
| 250 // Returns the default web client state of Chrome (i.e., was it the user's |
| 251 // default browser) at the time a previous check was made sometime between |
| 252 // process startup and now. |
| 253 virtual ShellIntegration::DefaultWebClientState |
| 254 CachedDefaultWebClientState() = 0; |
| 255 |
249 private: | 256 private: |
250 DISALLOW_COPY_AND_ASSIGN(BrowserProcess); | 257 DISALLOW_COPY_AND_ASSIGN(BrowserProcess); |
251 }; | 258 }; |
252 | 259 |
253 extern BrowserProcess* g_browser_process; | 260 extern BrowserProcess* g_browser_process; |
254 | 261 |
255 #endif // CHROME_BROWSER_BROWSER_PROCESS_H_ | 262 #endif // CHROME_BROWSER_BROWSER_PROCESS_H_ |
OLD | NEW |