| 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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 } | 159 } |
| 160 | 160 |
| 161 // Returns the object that watches for changes in the closeable state of tab. | 161 // Returns the object that watches for changes in the closeable state of tab. |
| 162 virtual TabCloseableStateWatcher* tab_closeable_state_watcher() = 0; | 162 virtual TabCloseableStateWatcher* tab_closeable_state_watcher() = 0; |
| 163 | 163 |
| 164 // Returns an object which handles communication with the SafeBrowsing | 164 // Returns an object which handles communication with the SafeBrowsing |
| 165 // client-side detection servers. | 165 // client-side detection servers. |
| 166 virtual safe_browsing::ClientSideDetectionService* | 166 virtual safe_browsing::ClientSideDetectionService* |
| 167 safe_browsing_detection_service() = 0; | 167 safe_browsing_detection_service() = 0; |
| 168 | 168 |
| 169 // Returns the state of the disable plugin finder policy. Callable only on |
| 170 // the IO thread. |
| 171 virtual bool disable_plugin_finder_pref() const = 0; |
| 172 |
| 169 // Trigger an asynchronous check to see if we have the inspector's files on | 173 // Trigger an asynchronous check to see if we have the inspector's files on |
| 170 // disk. | 174 // disk. |
| 171 virtual void CheckForInspectorFiles() = 0; | 175 virtual void CheckForInspectorFiles() = 0; |
| 172 | 176 |
| 173 #if (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) | 177 #if (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) |
| 174 // This will start a timer that, if Chrome is in persistent mode, will check | 178 // This will start a timer that, if Chrome is in persistent mode, will check |
| 175 // whether an update is available, and if that's the case, restart the | 179 // whether an update is available, and if that's the case, restart the |
| 176 // browser. Note that restart code will strip some of the command line keys | 180 // browser. Note that restart code will strip some of the command line keys |
| 177 // and all loose values from the cl this instance of Chrome was launched with, | 181 // and all loose values from the cl this instance of Chrome was launched with, |
| 178 // and add the command line key that will force Chrome to start in the | 182 // and add the command line key that will force Chrome to start in the |
| (...skipping 30 matching lines...) Expand all Loading... |
| 209 | 213 |
| 210 // Used for testing plugin data removal at shutdown. | 214 // Used for testing plugin data removal at shutdown. |
| 211 std::string plugin_data_remover_mime_type_; | 215 std::string plugin_data_remover_mime_type_; |
| 212 | 216 |
| 213 DISALLOW_COPY_AND_ASSIGN(BrowserProcess); | 217 DISALLOW_COPY_AND_ASSIGN(BrowserProcess); |
| 214 }; | 218 }; |
| 215 | 219 |
| 216 extern BrowserProcess* g_browser_process; | 220 extern BrowserProcess* g_browser_process; |
| 217 | 221 |
| 218 #endif // CHROME_BROWSER_BROWSER_PROCESS_H_ | 222 #endif // CHROME_BROWSER_BROWSER_PROCESS_H_ |
| OLD | NEW |