| 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 // When each service is created, we set a flag indicating this. At this point, | 5 // When each service is created, we set a flag indicating this. At this point, |
| 6 // the service initialization could fail or succeed. This allows us to remember | 6 // the service initialization could fail or succeed. This allows us to remember |
| 7 // if we tried to create a service, and not try creating it over and over if | 7 // if we tried to create a service, and not try creating it over and over if |
| 8 // the creation failed. | 8 // the creation failed. |
| 9 | 9 |
| 10 #ifndef CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ | 10 #ifndef CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 return locale_; | 188 return locale_; |
| 189 } | 189 } |
| 190 virtual void SetApplicationLocale(const std::string& locale); | 190 virtual void SetApplicationLocale(const std::string& locale); |
| 191 | 191 |
| 192 virtual base::WaitableEvent* shutdown_event() { | 192 virtual base::WaitableEvent* shutdown_event() { |
| 193 return shutdown_event_.get(); | 193 return shutdown_event_.get(); |
| 194 } | 194 } |
| 195 | 195 |
| 196 virtual void CheckForInspectorFiles(); | 196 virtual void CheckForInspectorFiles(); |
| 197 | 197 |
| 198 #if defined(OS_WIN) | 198 #if (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) |
| 199 void StartAutoupdateTimer(); | 199 void StartAutoupdateTimer(); |
| 200 #endif // OS_WIN | 200 #endif |
| 201 | 201 |
| 202 virtual bool have_inspector_files() const { | 202 virtual bool have_inspector_files() const { |
| 203 return have_inspector_files_; | 203 return have_inspector_files_; |
| 204 } | 204 } |
| 205 | 205 |
| 206 #if defined(IPC_MESSAGE_LOG_ENABLED) | 206 #if defined(IPC_MESSAGE_LOG_ENABLED) |
| 207 virtual void SetIPCLoggingEnabled(bool enable); | 207 virtual void SetIPCLoggingEnabled(bool enable); |
| 208 #endif | 208 #endif |
| 209 | 209 |
| 210 private: | 210 private: |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 307 | 307 |
| 308 // An event that notifies when we are shutting-down. | 308 // An event that notifies when we are shutting-down. |
| 309 scoped_ptr<base::WaitableEvent> shutdown_event_; | 309 scoped_ptr<base::WaitableEvent> shutdown_event_; |
| 310 | 310 |
| 311 // Runs on the file thread and stats the inspector's directory, filling in | 311 // Runs on the file thread and stats the inspector's directory, filling in |
| 312 // have_inspector_files_ with the result. | 312 // have_inspector_files_ with the result. |
| 313 void DoInspectorFilesCheck(); | 313 void DoInspectorFilesCheck(); |
| 314 // Our best estimate about the existence of the inspector directory. | 314 // Our best estimate about the existence of the inspector directory. |
| 315 bool have_inspector_files_; | 315 bool have_inspector_files_; |
| 316 | 316 |
| 317 #if defined(OS_WIN) | 317 #if (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) |
| 318 base::RepeatingTimer<BrowserProcessImpl> autoupdate_timer_; | 318 base::RepeatingTimer<BrowserProcessImpl> autoupdate_timer_; |
| 319 | 319 |
| 320 // Gets called by autoupdate timer to see if browser needs restart and can be | 320 // Gets called by autoupdate timer to see if browser needs restart and can be |
| 321 // restarted, and if that's the case, restarts the browser. | 321 // restarted, and if that's the case, restarts the browser. |
| 322 void OnAutoupdateTimer(); | 322 void OnAutoupdateTimer(); |
| 323 bool CanAutorestartForUpdate() const; | 323 bool CanAutorestartForUpdate() const; |
| 324 void RestartPersistentInstance(); | 324 void RestartPersistentInstance(); |
| 325 #endif // OS_WIN | 325 #endif // defined(OS_WIN) || defined(OS_LINUX) |
| 326 | 326 |
| 327 DISALLOW_COPY_AND_ASSIGN(BrowserProcessImpl); | 327 DISALLOW_COPY_AND_ASSIGN(BrowserProcessImpl); |
| 328 }; | 328 }; |
| 329 | 329 |
| 330 #endif // CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ | 330 #endif // CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ |
| OLD | NEW |