diff options
Diffstat (limited to 'chrome/browser/browser_process_impl.h')
-rw-r--r-- | chrome/browser/browser_process_impl.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/chrome/browser/browser_process_impl.h b/chrome/browser/browser_process_impl.h index d6d870b..93e6ab3 100644 --- a/chrome/browser/browser_process_impl.h +++ b/chrome/browser/browser_process_impl.h @@ -15,6 +15,7 @@ #include "base/basictypes.h" #include "base/message_loop.h" #include "base/non_thread_safe.h" +#include "base/timer.h" #include "base/scoped_ptr.h" #include "chrome/browser/automation/automation_provider_list.h" #include "chrome/browser/browser_process.h" @@ -194,6 +195,10 @@ class BrowserProcessImpl : public BrowserProcess, public NonThreadSafe { virtual void CheckForInspectorFiles(); +#if defined(OS_WIN) + void StartAutoupdateTimer(); +#endif // OS_WIN + virtual bool have_inspector_files() const { return have_inspector_files_; } @@ -309,6 +314,16 @@ class BrowserProcessImpl : public BrowserProcess, public NonThreadSafe { // Our best estimate about the existence of the inspector directory. bool have_inspector_files_; +#if defined(OS_WIN) + base::RepeatingTimer<BrowserProcessImpl> autoupdate_timer_; + + // Gets called by autoupdate timer to see if browser needs restart and can be + // restarted, and if that's the case, restarts the browser. + void OnAutoupdateTimer(); + bool CanAutorestartForUpdate() const; + void RestartPersistentInstance(); +#endif // OS_WIN + DISALLOW_COPY_AND_ASSIGN(BrowserProcessImpl); }; |