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 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 | 178 |
179 virtual GoogleURLTracker* google_url_tracker() = 0; | 179 virtual GoogleURLTracker* google_url_tracker() = 0; |
180 virtual IntranetRedirectDetector* intranet_redirect_detector() = 0; | 180 virtual IntranetRedirectDetector* intranet_redirect_detector() = 0; |
181 | 181 |
182 // Returns the locale used by the application. | 182 // Returns the locale used by the application. |
183 virtual const std::string& GetApplicationLocale() = 0; | 183 virtual const std::string& GetApplicationLocale() = 0; |
184 virtual void SetApplicationLocale(const std::string& locale) = 0; | 184 virtual void SetApplicationLocale(const std::string& locale) = 0; |
185 | 185 |
186 virtual DownloadStatusUpdater* download_status_updater() = 0; | 186 virtual DownloadStatusUpdater* download_status_updater() = 0; |
187 | 187 |
188 // Returns a reference to the user-data-dir based profiles vector. | |
189 std::vector<std::wstring>& user_data_dir_profiles() { | |
190 return user_data_dir_profiles_; | |
191 } | |
192 | |
193 // Returns the object that watches for changes in the closeable state of tab. | 188 // Returns the object that watches for changes in the closeable state of tab. |
194 virtual TabCloseableStateWatcher* tab_closeable_state_watcher() = 0; | 189 virtual TabCloseableStateWatcher* tab_closeable_state_watcher() = 0; |
195 | 190 |
196 // Returns the object that manages background applications. | 191 // Returns the object that manages background applications. |
197 virtual BackgroundModeManager* background_mode_manager() = 0; | 192 virtual BackgroundModeManager* background_mode_manager() = 0; |
198 | 193 |
199 // Returns the StatusTray, which provides an API for displaying status icons | 194 // Returns the StatusTray, which provides an API for displaying status icons |
200 // in the system status tray. Returns NULL if status icons are not supported | 195 // in the system status tray. Returns NULL if status icons are not supported |
201 // on this platform (or this is a unit test). | 196 // on this platform (or this is a unit test). |
202 virtual StatusTray* status_tray() = 0; | 197 virtual StatusTray* status_tray() = 0; |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
243 plugin_data_remover_mime_type_ = mime_type; | 238 plugin_data_remover_mime_type_ = mime_type; |
244 } | 239 } |
245 | 240 |
246 virtual MHTMLGenerationManager* mhtml_generation_manager() = 0; | 241 virtual MHTMLGenerationManager* mhtml_generation_manager() = 0; |
247 | 242 |
248 virtual GpuBlacklistUpdater* gpu_blacklist_updater() = 0; | 243 virtual GpuBlacklistUpdater* gpu_blacklist_updater() = 0; |
249 | 244 |
250 virtual ComponentUpdateService* component_updater() = 0; | 245 virtual ComponentUpdateService* component_updater() = 0; |
251 | 246 |
252 private: | 247 private: |
253 // User-data-dir based profiles. | |
254 std::vector<std::wstring> user_data_dir_profiles_; | |
255 | |
256 // Used for testing plugin data removal at shutdown. | 248 // Used for testing plugin data removal at shutdown. |
257 std::string plugin_data_remover_mime_type_; | 249 std::string plugin_data_remover_mime_type_; |
258 | 250 |
259 DISALLOW_COPY_AND_ASSIGN(BrowserProcess); | 251 DISALLOW_COPY_AND_ASSIGN(BrowserProcess); |
260 }; | 252 }; |
261 | 253 |
262 extern BrowserProcess* g_browser_process; | 254 extern BrowserProcess* g_browser_process; |
263 | 255 |
264 #endif // CHROME_BROWSER_BROWSER_PROCESS_H_ | 256 #endif // CHROME_BROWSER_BROWSER_PROCESS_H_ |
OLD | NEW |