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/macros.h" |
8 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
9 #include "base/timer/timer.h" | 10 #include "base/timer/timer.h" |
10 #include "base/version.h" | 11 #include "base/version.h" |
11 #include "chrome/browser/upgrade_detector.h" | 12 #include "chrome/browser/upgrade_detector.h" |
12 #include "components/variations/service/variations_service.h" | 13 #include "components/variations/service/variations_service.h" |
13 | 14 |
14 namespace base { | 15 namespace base { |
15 template <typename T> struct DefaultSingletonTraits; | 16 template <typename T> struct DefaultSingletonTraits; |
16 } | 17 } |
17 | 18 |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 // We use this factory to create callback tasks for UpgradeDetected. We pass | 97 // We use this factory to create callback tasks for UpgradeDetected. We pass |
97 // the task to the actual upgrade detection code, which is in | 98 // the task to the actual upgrade detection code, which is in |
98 // DetectUpgradeTask. | 99 // DetectUpgradeTask. |
99 base::WeakPtrFactory<UpgradeDetectorImpl> weak_factory_; | 100 base::WeakPtrFactory<UpgradeDetectorImpl> weak_factory_; |
100 | 101 |
101 DISALLOW_COPY_AND_ASSIGN(UpgradeDetectorImpl); | 102 DISALLOW_COPY_AND_ASSIGN(UpgradeDetectorImpl); |
102 }; | 103 }; |
103 | 104 |
104 | 105 |
105 #endif // CHROME_BROWSER_UPGRADE_DETECTOR_IMPL_H_ | 106 #endif // CHROME_BROWSER_UPGRADE_DETECTOR_IMPL_H_ |
OLD | NEW |