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 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 | 201 |
202 // Returns an object which handles communication with the SafeBrowsing | 202 // Returns an object which handles communication with the SafeBrowsing |
203 // client-side detection servers. | 203 // client-side detection servers. |
204 virtual safe_browsing::ClientSideDetectionService* | 204 virtual safe_browsing::ClientSideDetectionService* |
205 safe_browsing_detection_service() = 0; | 205 safe_browsing_detection_service() = 0; |
206 | 206 |
207 // Returns the state of the disable plugin finder policy. Callable only on | 207 // Returns the state of the disable plugin finder policy. Callable only on |
208 // the IO thread. | 208 // the IO thread. |
209 virtual bool plugin_finder_disabled() const = 0; | 209 virtual bool plugin_finder_disabled() const = 0; |
210 | 210 |
| 211 // Returns the state of the allow cross origin auth prompt policy. Callable |
| 212 // only on the IO thread. |
| 213 virtual bool allow_cross_origin_auth_prompt() const = 0; |
| 214 |
211 #if (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) | 215 #if (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) |
212 // This will start a timer that, if Chrome is in persistent mode, will check | 216 // This will start a timer that, if Chrome is in persistent mode, will check |
213 // whether an update is available, and if that's the case, restart the | 217 // whether an update is available, and if that's the case, restart the |
214 // browser. Note that restart code will strip some of the command line keys | 218 // browser. Note that restart code will strip some of the command line keys |
215 // and all loose values from the cl this instance of Chrome was launched with, | 219 // and all loose values from the cl this instance of Chrome was launched with, |
216 // and add the command line key that will force Chrome to start in the | 220 // and add the command line key that will force Chrome to start in the |
217 // background mode. For the full list of "blacklisted" keys, refer to | 221 // background mode. For the full list of "blacklisted" keys, refer to |
218 // |kSwitchesToRemoveOnAutorestart| array in browser_process_impl.cc. | 222 // |kSwitchesToRemoveOnAutorestart| array in browser_process_impl.cc. |
219 virtual void StartAutoupdateTimer() = 0; | 223 virtual void StartAutoupdateTimer() = 0; |
220 #endif | 224 #endif |
(...skipping 21 matching lines...) Expand all Loading... |
242 | 246 |
243 // Used for testing plugin data removal at shutdown. | 247 // Used for testing plugin data removal at shutdown. |
244 std::string plugin_data_remover_mime_type_; | 248 std::string plugin_data_remover_mime_type_; |
245 | 249 |
246 DISALLOW_COPY_AND_ASSIGN(BrowserProcess); | 250 DISALLOW_COPY_AND_ASSIGN(BrowserProcess); |
247 }; | 251 }; |
248 | 252 |
249 extern BrowserProcess* g_browser_process; | 253 extern BrowserProcess* g_browser_process; |
250 | 254 |
251 #endif // CHROME_BROWSER_BROWSER_PROCESS_H_ | 255 #endif // CHROME_BROWSER_BROWSER_PROCESS_H_ |
OLD | NEW |