| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 | 132 |
| 133 // Returns a reference to the user-data-dir based profiles vector. | 133 // Returns a reference to the user-data-dir based profiles vector. |
| 134 std::vector<std::wstring>& user_data_dir_profiles() { | 134 std::vector<std::wstring>& user_data_dir_profiles() { |
| 135 return user_data_dir_profiles_; | 135 return user_data_dir_profiles_; |
| 136 } | 136 } |
| 137 | 137 |
| 138 // Trigger an asynchronous check to see if we have the inspector's files on | 138 // Trigger an asynchronous check to see if we have the inspector's files on |
| 139 // disk. | 139 // disk. |
| 140 virtual void CheckForInspectorFiles() = 0; | 140 virtual void CheckForInspectorFiles() = 0; |
| 141 | 141 |
| 142 #if (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) | 142 #if defined(OS_WIN) |
| 143 |
| 143 // This will start a timer that, if Chrome is in persistent mode, will check | 144 // This will start a timer that, if Chrome is in persistent mode, will check |
| 144 // whether an update is available, and if that's the case, restart the | 145 // whether an update is available, and if that's the case, restart the |
| 145 // browser. Note that restart code will strip some of the command line keys | 146 // browser. Note that restart code will strip some of the command line keys |
| 146 // and all loose values from the cl this instance of Chrome was launched with, | 147 // and all loose values from the cl this instance of Chrome was launched with, |
| 147 // and add the command line key that will force Chrome to start in the | 148 // and add the command line key that will force Chrome to start in the |
| 148 // background mode. For the full list of "blacklisted" keys, refer to | 149 // background mode. For the full list of "blacklisted" keys, refer to |
| 149 // |kSwitchesToRemoveOnAutorestart| array in browser_process_impl.cc. | 150 // |kSwitchesToRemoveOnAutorestart| array in browser_process_impl.cc. |
| 150 virtual void StartAutoupdateTimer() = 0; | 151 virtual void StartAutoupdateTimer() = 0; |
| 151 #endif | 152 |
| 153 #endif // OS_WIN |
| 152 | 154 |
| 153 // Return true iff we found the inspector files on disk. It's possible to | 155 // Return true iff we found the inspector files on disk. It's possible to |
| 154 // call this function before we have a definite answer from the disk. In that | 156 // call this function before we have a definite answer from the disk. In that |
| 155 // case, we default to returning true. | 157 // case, we default to returning true. |
| 156 virtual bool have_inspector_files() const = 0; | 158 virtual bool have_inspector_files() const = 0; |
| 157 | 159 |
| 158 #if defined(IPC_MESSAGE_LOG_ENABLED) | 160 #if defined(IPC_MESSAGE_LOG_ENABLED) |
| 159 // Enable or disable IPC logging for the browser, all processes | 161 // Enable or disable IPC logging for the browser, all processes |
| 160 // derived from ChildProcess (plugin etc), and all | 162 // derived from ChildProcess (plugin etc), and all |
| 161 // renderers. | 163 // renderers. |
| 162 virtual void SetIPCLoggingEnabled(bool enable) = 0; | 164 virtual void SetIPCLoggingEnabled(bool enable) = 0; |
| 163 #endif | 165 #endif |
| 164 | 166 |
| 165 private: | 167 private: |
| 166 // User-data-dir based profiles. | 168 // User-data-dir based profiles. |
| 167 std::vector<std::wstring> user_data_dir_profiles_; | 169 std::vector<std::wstring> user_data_dir_profiles_; |
| 168 | 170 |
| 169 DISALLOW_COPY_AND_ASSIGN(BrowserProcess); | 171 DISALLOW_COPY_AND_ASSIGN(BrowserProcess); |
| 170 }; | 172 }; |
| 171 | 173 |
| 172 extern BrowserProcess* g_browser_process; | 174 extern BrowserProcess* g_browser_process; |
| 173 | 175 |
| 174 #endif // CHROME_BROWSER_BROWSER_PROCESS_H_ | 176 #endif // CHROME_BROWSER_BROWSER_PROCESS_H_ |
| OLD | NEW |