OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_CHROMEOS_UPGRADE_DETECTOR_CHROMEOS_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_UPGRADE_DETECTOR_CHROMEOS_H_ |
6 #define CHROME_BROWSER_CHROMEOS_UPGRADE_DETECTOR_CHROMEOS_H_ | 6 #define CHROME_BROWSER_CHROMEOS_UPGRADE_DETECTOR_CHROMEOS_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 | 49 |
50 void OnChannelsReceived(const std::string& current_channel, | 50 void OnChannelsReceived(const std::string& current_channel, |
51 const std::string& target_channel); | 51 const std::string& target_channel); |
52 | 52 |
53 // After we detect an upgrade we start a recurring timer to see if enough time | 53 // After we detect an upgrade we start a recurring timer to see if enough time |
54 // has passed and we should start notifying the user. | 54 // has passed and we should start notifying the user. |
55 base::RepeatingTimer upgrade_notification_timer_; | 55 base::RepeatingTimer upgrade_notification_timer_; |
56 bool initialized_; | 56 bool initialized_; |
57 base::Time upgrade_detected_time_; | 57 base::Time upgrade_detected_time_; |
58 | 58 |
59 scoped_ptr<ChannelsRequester> channels_requester_; | 59 std::unique_ptr<ChannelsRequester> channels_requester_; |
60 | 60 |
61 base::WeakPtrFactory<UpgradeDetectorChromeos> weak_factory_; | 61 base::WeakPtrFactory<UpgradeDetectorChromeos> weak_factory_; |
62 | 62 |
63 DISALLOW_COPY_AND_ASSIGN(UpgradeDetectorChromeos); | 63 DISALLOW_COPY_AND_ASSIGN(UpgradeDetectorChromeos); |
64 }; | 64 }; |
65 | 65 |
66 #endif // CHROME_BROWSER_CHROMEOS_UPGRADE_DETECTOR_CHROMEOS_H_ | 66 #endif // CHROME_BROWSER_CHROMEOS_UPGRADE_DETECTOR_CHROMEOS_H_ |
OLD | NEW |