| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "base/memory/ref_counted.h" | 5 #include "base/memory/ref_counted.h" |
| 6 #include "base/memory/scoped_ptr.h" | 6 #include "base/memory/scoped_ptr.h" |
| 7 #include "base/memory/weak_ptr.h" | 7 #include "base/memory/weak_ptr.h" |
| 8 #include "base/strings/string16.h" | 8 #include "base/strings/string16.h" |
| 9 #include "base/version.h" | 9 #include "base/version.h" |
| 10 #include "base/win/win_util.h" | 10 #include "base/win/win_util.h" |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 public GoogleUpdateStatusListener { | 34 public GoogleUpdateStatusListener { |
| 35 private: | 35 private: |
| 36 friend class VersionReader; | 36 friend class VersionReader; |
| 37 friend class VersionUpdater; | 37 friend class VersionUpdater; |
| 38 | 38 |
| 39 // Clients must use VersionUpdater::Create(). | 39 // Clients must use VersionUpdater::Create(). |
| 40 VersionUpdaterWin(); | 40 VersionUpdaterWin(); |
| 41 virtual ~VersionUpdaterWin(); | 41 virtual ~VersionUpdaterWin(); |
| 42 | 42 |
| 43 // VersionUpdater implementation. | 43 // VersionUpdater implementation. |
| 44 virtual void CheckForUpdate(const StatusCallback& callback) OVERRIDE; | 44 virtual void CheckForUpdate(const StatusCallback& callback) override; |
| 45 virtual void RelaunchBrowser() const OVERRIDE; | 45 virtual void RelaunchBrowser() const override; |
| 46 | 46 |
| 47 // GoogleUpdateStatusListener implementation. | 47 // GoogleUpdateStatusListener implementation. |
| 48 virtual void OnReportResults(GoogleUpdateUpgradeResult result, | 48 virtual void OnReportResults(GoogleUpdateUpgradeResult result, |
| 49 GoogleUpdateErrorCode error_code, | 49 GoogleUpdateErrorCode error_code, |
| 50 const base::string16& error_message, | 50 const base::string16& error_message, |
| 51 const base::string16& version) OVERRIDE; | 51 const base::string16& version) override; |
| 52 | 52 |
| 53 // Update the UI to show the status of the upgrade. | 53 // Update the UI to show the status of the upgrade. |
| 54 void UpdateStatus(GoogleUpdateUpgradeResult result, | 54 void UpdateStatus(GoogleUpdateUpgradeResult result, |
| 55 GoogleUpdateErrorCode error_code, | 55 GoogleUpdateErrorCode error_code, |
| 56 const base::string16& error_message); | 56 const base::string16& error_message); |
| 57 | 57 |
| 58 // Got the intalled version so the handling of the UPGRADE_ALREADY_UP_TO_DATE | 58 // Got the intalled version so the handling of the UPGRADE_ALREADY_UP_TO_DATE |
| 59 // result case can now be completeb on the UI thread. | 59 // result case can now be completeb on the UI thread. |
| 60 void GotInstalledVersion(const Version& version); | 60 void GotInstalledVersion(const Version& version); |
| 61 | 61 |
| (...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 299 << GetCurrentThreadId(); | 299 << GetCurrentThreadId(); |
| 300 #endif | 300 #endif |
| 301 return window; | 301 return window; |
| 302 } | 302 } |
| 303 | 303 |
| 304 } // namespace | 304 } // namespace |
| 305 | 305 |
| 306 VersionUpdater* VersionUpdater::Create() { | 306 VersionUpdater* VersionUpdater::Create() { |
| 307 return new VersionUpdaterWin; | 307 return new VersionUpdaterWin; |
| 308 } | 308 } |
| OLD | NEW |