| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 #ifndef CHROME_BROWSER_UPGRADE_OBSERVER_H_ | 5 #ifndef CHROME_BROWSER_UPGRADE_OBSERVER_H_ |
| 6 #define CHROME_BROWSER_UPGRADE_OBSERVER_H_ | 6 #define CHROME_BROWSER_UPGRADE_OBSERVER_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 | 9 |
| 10 class UpgradeObserver { | 10 class UpgradeObserver { |
| 11 public: | 11 public: |
| 12 // Triggered when a software update is available, but downloading requires | 12 // Triggered when a software update is available, but downloading requires |
| 13 // user's agreement as current connection is cellular. | 13 // user's agreement as current connection is cellular. |
| 14 virtual void OnUpdateOverCellularAvailable() = 0; | 14 virtual void OnUpdateOverCellularAvailable() {} |
| 15 |
| 16 // Triggered when Chrome believes an update has been installed and available |
| 17 // for long enough with the user shutting down to let it take effect. See |
| 18 // upgrade_detector.cc for details on how long it waits. No details are |
| 19 // expected. |
| 20 virtual void OnUpgradeRecommended() {} |
| 21 |
| 22 // Triggered when a critical update has been installed. No details are |
| 23 // expected. |
| 24 virtual void OnCriticalUpgradeInstalled() {} |
| 25 |
| 26 // Triggered when the current install is outdated. No details are expected. |
| 27 virtual void OnOutdatedInstall() {} |
| 28 |
| 29 // Triggered when the current install is outdated and auto-update (AU) is |
| 30 // disabled. No details are expected. |
| 31 virtual void OnOutdatedInstallNoAutoUpdate() {} |
| 15 | 32 |
| 16 protected: | 33 protected: |
| 17 virtual ~UpgradeObserver() {} | 34 virtual ~UpgradeObserver() {} |
| 18 }; | 35 }; |
| 19 | 36 |
| 20 #endif // CHROME_BROWSER_UPGRADE_OBSERVER_H_ | 37 #endif // CHROME_BROWSER_UPGRADE_OBSERVER_H_ |
| OLD | NEW |