| 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" | |
| 11 #include "chrome/browser/upgrade_detector.h" | 10 #include "chrome/browser/upgrade_detector.h" |
| 12 | 11 |
| 13 template <typename T> struct DefaultSingletonTraits; | 12 template <typename T> struct DefaultSingletonTraits; |
| 14 | 13 |
| 15 class UpgradeDetectorImpl : public UpgradeDetector { | 14 class UpgradeDetectorImpl : public UpgradeDetector { |
| 16 public: | 15 public: |
| 17 virtual ~UpgradeDetectorImpl(); | 16 virtual ~UpgradeDetectorImpl(); |
| 18 | 17 |
| 19 // Returns the singleton instance. | 18 // Returns the singleton instance. |
| 20 static UpgradeDetectorImpl* GetInstance(); | 19 static UpgradeDetectorImpl* GetInstance(); |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 | 64 |
| 66 // True if this build is a dev or canary channel build. | 65 // True if this build is a dev or canary channel build. |
| 67 bool is_unstable_channel_; | 66 bool is_unstable_channel_; |
| 68 | 67 |
| 69 // True if auto update is turned on. | 68 // True if auto update is turned on. |
| 70 bool is_auto_update_enabled_; | 69 bool is_auto_update_enabled_; |
| 71 | 70 |
| 72 // The date the binaries were built. | 71 // The date the binaries were built. |
| 73 base::Time build_date_; | 72 base::Time build_date_; |
| 74 | 73 |
| 75 // Tracker for getting network time. | |
| 76 NetworkTimeTracker network_time_tracker_; | |
| 77 | |
| 78 DISALLOW_COPY_AND_ASSIGN(UpgradeDetectorImpl); | 74 DISALLOW_COPY_AND_ASSIGN(UpgradeDetectorImpl); |
| 79 }; | 75 }; |
| 80 | 76 |
| 81 | 77 |
| 82 #endif // CHROME_BROWSER_UPGRADE_DETECTOR_IMPL_H_ | 78 #endif // CHROME_BROWSER_UPGRADE_DETECTOR_IMPL_H_ |
| OLD | NEW |