| 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 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 224 | 224 |
| 225 virtual prerender::PrerenderTracker* prerender_tracker() = 0; | 225 virtual prerender::PrerenderTracker* prerender_tracker() = 0; |
| 226 | 226 |
| 227 #if defined(IPC_MESSAGE_LOG_ENABLED) | 227 #if defined(IPC_MESSAGE_LOG_ENABLED) |
| 228 // Enable or disable IPC logging for the browser, all processes | 228 // Enable or disable IPC logging for the browser, all processes |
| 229 // derived from ChildProcess (plugin etc), and all | 229 // derived from ChildProcess (plugin etc), and all |
| 230 // renderers. | 230 // renderers. |
| 231 virtual void SetIPCLoggingEnabled(bool enable) = 0; | 231 virtual void SetIPCLoggingEnabled(bool enable) = 0; |
| 232 #endif | 232 #endif |
| 233 | 233 |
| 234 const std::string& plugin_data_remover_mime_type() const { | |
| 235 return plugin_data_remover_mime_type_; | |
| 236 } | |
| 237 | |
| 238 void set_plugin_data_remover_mime_type(const std::string& mime_type) { | |
| 239 plugin_data_remover_mime_type_ = mime_type; | |
| 240 } | |
| 241 | |
| 242 virtual MHTMLGenerationManager* mhtml_generation_manager() = 0; | 234 virtual MHTMLGenerationManager* mhtml_generation_manager() = 0; |
| 243 | 235 |
| 244 virtual GpuBlacklistUpdater* gpu_blacklist_updater() = 0; | 236 virtual GpuBlacklistUpdater* gpu_blacklist_updater() = 0; |
| 245 | 237 |
| 246 virtual ComponentUpdateService* component_updater() = 0; | 238 virtual ComponentUpdateService* component_updater() = 0; |
| 247 | 239 |
| 248 private: | 240 private: |
| 249 // Used for testing plugin data removal at shutdown. | |
| 250 std::string plugin_data_remover_mime_type_; | |
| 251 | |
| 252 DISALLOW_COPY_AND_ASSIGN(BrowserProcess); | 241 DISALLOW_COPY_AND_ASSIGN(BrowserProcess); |
| 253 }; | 242 }; |
| 254 | 243 |
| 255 extern BrowserProcess* g_browser_process; | 244 extern BrowserProcess* g_browser_process; |
| 256 | 245 |
| 257 #endif // CHROME_BROWSER_BROWSER_PROCESS_H_ | 246 #endif // CHROME_BROWSER_BROWSER_PROCESS_H_ |
| OLD | NEW |