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

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

Issue 11440020: Add an outdated upgrade bubble view. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_DETECTOR_IMPL_H_ 5 #ifndef CHROME_BROWSER_UPGRADE_DETECTOR_IMPL_H_
6 #define CHROME_BROWSER_UPGRADE_DETECTOR_IMPL_H_ 6 #define CHROME_BROWSER_UPGRADE_DETECTOR_IMPL_H_
7 7
8 #include "base/memory/weak_ptr.h" 8 #include "base/memory/weak_ptr.h"
9 #include "base/timer.h" 9 #include "base/timer.h"
10 #include "chrome/browser/upgrade_detector.h" 10 #include "chrome/browser/upgrade_detector.h"
(...skipping 17 matching lines...) Expand all
28 28
29 // Sends out a notification and starts a one shot timer to wait until 29 // Sends out a notification and starts a one shot timer to wait until
30 // notifying the user. 30 // notifying the user.
31 void UpgradeDetected(); 31 void UpgradeDetected();
32 32
33 // The function that sends out a notification (after a certain time has 33 // The function that sends out a notification (after a certain time has
34 // elapsed) that lets the rest of the UI know we should start notifying the 34 // elapsed) that lets the rest of the UI know we should start notifying the
35 // user that a new version is available. 35 // user that a new version is available.
36 void NotifyOnUpgrade(); 36 void NotifyOnUpgrade();
37 37
38 // Called when the current version is outdated.
39 void NotifyOutdated();
Finnur 2012/12/06 19:53:16 Suggest NotifyOutdatedVersion or NotifyOutdatedChr
MAD 2013/01/22 15:18:29 Done.
40
38 // We periodically check to see if Chrome has been upgraded. 41 // We periodically check to see if Chrome has been upgraded.
39 base::RepeatingTimer<UpgradeDetectorImpl> detect_upgrade_timer_; 42 base::RepeatingTimer<UpgradeDetectorImpl> detect_upgrade_timer_;
40 43
41 // After we detect an upgrade we start a recurring timer to see if enough time 44 // After we detect an upgrade we start a recurring timer to see if enough time
42 // has passed and we should start notifying the user. 45 // has passed and we should start notifying the user.
43 base::RepeatingTimer<UpgradeDetectorImpl> upgrade_notification_timer_; 46 base::RepeatingTimer<UpgradeDetectorImpl> upgrade_notification_timer_;
44 47
45 // We use this factory to create callback tasks for UpgradeDetected. We pass 48 // We use this factory to create callback tasks for UpgradeDetected. We pass
46 // the task to the actual upgrade detection code, which is in 49 // the task to the actual upgrade detection code, which is in
47 // DetectUpgradeTask. 50 // DetectUpgradeTask.
48 base::WeakPtrFactory<UpgradeDetectorImpl> weak_factory_; 51 base::WeakPtrFactory<UpgradeDetectorImpl> weak_factory_;
49 52
50 // True if this build is a dev or canary channel build. 53 // True if this build is a dev or canary channel build.
51 bool is_unstable_channel_; 54 bool is_unstable_channel_;
52 55
53 DISALLOW_COPY_AND_ASSIGN(UpgradeDetectorImpl); 56 DISALLOW_COPY_AND_ASSIGN(UpgradeDetectorImpl);
54 }; 57 };
55 58
56 59
57 #endif // CHROME_BROWSER_UPGRADE_DETECTOR_IMPL_H_ 60 #endif // CHROME_BROWSER_UPGRADE_DETECTOR_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698