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 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
180 // case, we default to returning true. | 180 // case, we default to returning true. |
181 virtual bool have_inspector_files() const = 0; | 181 virtual bool have_inspector_files() const = 0; |
182 | 182 |
183 #if defined(IPC_MESSAGE_LOG_ENABLED) | 183 #if defined(IPC_MESSAGE_LOG_ENABLED) |
184 // Enable or disable IPC logging for the browser, all processes | 184 // Enable or disable IPC logging for the browser, all processes |
185 // derived from ChildProcess (plugin etc), and all | 185 // derived from ChildProcess (plugin etc), and all |
186 // renderers. | 186 // renderers. |
187 virtual void SetIPCLoggingEnabled(bool enable) = 0; | 187 virtual void SetIPCLoggingEnabled(bool enable) = 0; |
188 #endif | 188 #endif |
189 | 189 |
190 // Used for testing plugin data removal at shutdown. | |
191 const std::string& plugin_data_remover_mime_type() const { | |
192 return plugin_data_remover_mime_type_; | |
193 } | |
194 | |
195 void set_plugin_data_remover_mime_type(const std::string& mime_type) { | |
196 plugin_data_remover_mime_type_ = mime_type; | |
197 } | |
198 | |
190 private: | 199 private: |
191 // User-data-dir based profiles. | 200 // User-data-dir based profiles. |
192 std::vector<std::wstring> user_data_dir_profiles_; | 201 std::vector<std::wstring> user_data_dir_profiles_; |
193 | 202 |
203 std::string plugin_data_remover_mime_type_; | |
jam
2011/01/20 18:34:15
this needs a comment. by convention we don't put
| |
204 | |
194 DISALLOW_COPY_AND_ASSIGN(BrowserProcess); | 205 DISALLOW_COPY_AND_ASSIGN(BrowserProcess); |
195 }; | 206 }; |
196 | 207 |
197 extern BrowserProcess* g_browser_process; | 208 extern BrowserProcess* g_browser_process; |
198 | 209 |
199 #endif // CHROME_BROWSER_BROWSER_PROCESS_H_ | 210 #endif // CHROME_BROWSER_BROWSER_PROCESS_H_ |
OLD | NEW |