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 | |
127 #if defined(OS_WIN) | 125 #if defined(OS_WIN) |
128 DownloadRequestManager* download_request_manager() { | 126 DownloadRequestManager* download_request_manager() { |
129 ResourceDispatcherHost* rdh = resource_dispatcher_host(); | 127 ResourceDispatcherHost* rdh = resource_dispatcher_host(); |
130 return rdh ? rdh->download_request_manager() : NULL; | 128 return rdh ? rdh->download_request_manager() : NULL; |
131 } | 129 } |
132 | 130 |
133 // Returns an event that is signaled when the browser shutdown. | 131 // Returns an event that is signaled when the browser shutdown. |
134 virtual HANDLE shutdown_event() = 0; | 132 virtual HANDLE shutdown_event() = 0; |
135 #endif | 133 #endif |
136 | 134 |
137 private: | 135 private: |
138 DISALLOW_EVIL_CONSTRUCTORS(BrowserProcess); | 136 DISALLOW_EVIL_CONSTRUCTORS(BrowserProcess); |
139 }; | 137 }; |
140 | 138 |
141 extern BrowserProcess* g_browser_process; | 139 extern BrowserProcess* g_browser_process; |
142 | 140 |
143 #endif // CHROME_BROWSER_BROWSER_PROCESS_H__ | 141 #endif // CHROME_BROWSER_BROWSER_PROCESS_H__ |
144 | 142 |
OLD | NEW |