OLD | NEW |
---|---|
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/timer.h" | 9 #include "base/timer/timer.h" |
10 #include "chrome/browser/network_time/network_time_tracker.h" | 10 #include "chrome/browser/network_time/network_time_tracker.h" |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
59 base::RepeatingTimer<UpgradeDetectorImpl> upgrade_notification_timer_; | 59 base::RepeatingTimer<UpgradeDetectorImpl> upgrade_notification_timer_; |
60 | 60 |
61 // We use this factory to create callback tasks for UpgradeDetected. We pass | 61 // We use this factory to create callback tasks for UpgradeDetected. We pass |
62 // the task to the actual upgrade detection code, which is in | 62 // the task to the actual upgrade detection code, which is in |
63 // DetectUpgradeTask. | 63 // DetectUpgradeTask. |
64 base::WeakPtrFactory<UpgradeDetectorImpl> weak_factory_; | 64 base::WeakPtrFactory<UpgradeDetectorImpl> weak_factory_; |
65 | 65 |
66 // True if this build is a dev or canary channel build. | 66 // True if this build is a dev or canary channel build. |
67 bool is_unstable_channel_; | 67 bool is_unstable_channel_; |
68 | 68 |
69 // True if auto update is turned on. | |
70 bool is_autoupdate_on_; | |
robertshield
2014/03/26 03:20:11
suggest on -> enabled
MAD
2014/03/26 19:30:16
Done.
| |
71 | |
69 // The date the binaries were built. | 72 // The date the binaries were built. |
70 base::Time build_date_; | 73 base::Time build_date_; |
71 | 74 |
72 // Tracker for getting network time. | 75 // Tracker for getting network time. |
73 NetworkTimeTracker network_time_tracker_; | 76 NetworkTimeTracker network_time_tracker_; |
74 | 77 |
75 DISALLOW_COPY_AND_ASSIGN(UpgradeDetectorImpl); | 78 DISALLOW_COPY_AND_ASSIGN(UpgradeDetectorImpl); |
76 }; | 79 }; |
77 | 80 |
78 | 81 |
79 #endif // CHROME_BROWSER_UPGRADE_DETECTOR_IMPL_H_ | 82 #endif // CHROME_BROWSER_UPGRADE_DETECTOR_IMPL_H_ |
OLD | NEW |