| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 interfaces is for managing the global services of the application. Each | 5 // This interfaces 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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 | 115 |
| 116 virtual printing::PrintJobManager* print_job_manager() = 0; | 116 virtual printing::PrintJobManager* print_job_manager() = 0; |
| 117 | 117 |
| 118 virtual GoogleURLTracker* google_url_tracker() = 0; | 118 virtual GoogleURLTracker* google_url_tracker() = 0; |
| 119 | 119 |
| 120 // Returns the locale used by the application. | 120 // Returns the locale used by the application. |
| 121 virtual const std::wstring& GetApplicationLocale() = 0; | 121 virtual const std::wstring& GetApplicationLocale() = 0; |
| 122 | 122 |
| 123 virtual MemoryModel memory_model() = 0; | 123 virtual MemoryModel memory_model() = 0; |
| 124 | 124 |
| 125 virtual SuspendController* suspend_controller() = 0; |
| 126 |
| 125 #if defined(OS_WIN) | 127 #if defined(OS_WIN) |
| 126 DownloadRequestManager* download_request_manager() { | 128 DownloadRequestManager* download_request_manager() { |
| 127 ResourceDispatcherHost* rdh = resource_dispatcher_host(); | 129 ResourceDispatcherHost* rdh = resource_dispatcher_host(); |
| 128 return rdh ? rdh->download_request_manager() : NULL; | 130 return rdh ? rdh->download_request_manager() : NULL; |
| 129 } | 131 } |
| 130 | 132 |
| 131 // Returns an event that is signaled when the browser shutdown. | 133 // Returns an event that is signaled when the browser shutdown. |
| 132 virtual HANDLE shutdown_event() = 0; | 134 virtual HANDLE shutdown_event() = 0; |
| 133 #endif | 135 #endif |
| 134 | 136 |
| 135 private: | 137 private: |
| 136 DISALLOW_EVIL_CONSTRUCTORS(BrowserProcess); | 138 DISALLOW_EVIL_CONSTRUCTORS(BrowserProcess); |
| 137 }; | 139 }; |
| 138 | 140 |
| 139 extern BrowserProcess* g_browser_process; | 141 extern BrowserProcess* g_browser_process; |
| 140 | 142 |
| 141 #endif // CHROME_BROWSER_BROWSER_PROCESS_H__ | 143 #endif // CHROME_BROWSER_BROWSER_PROCESS_H__ |
| 142 | 144 |
| OLD | NEW |