Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(60)

Side by Side Diff: chrome/browser/upgrade_observer.h

Issue 2925973002: Migrate upgrade notifications to observer (Closed)
Patch Set: Add DISALLOW_COPY_AND_ASSIGN Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/browser/upgrade_detector_impl_unittest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_
OLDNEW
« no previous file with comments | « chrome/browser/upgrade_detector_impl_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698