| 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_LOGIN_VERSION_INFO_UPDATER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_VERSION_INFO_UPDATER_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_VERSION_INFO_UPDATER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_VERSION_INFO_UPDATER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
| 11 #include "chrome/browser/chromeos/boot_times_loader.h" | 11 #include "chrome/browser/chromeos/boot_times_loader.h" |
| 12 #include "chrome/browser/chromeos/version_loader.h" | 12 #include "chrome/browser/chromeos/version_loader.h" |
| 13 #include "chrome/browser/policy/cloud_policy_store.h" | 13 #include "chrome/browser/policy/cloud/cloud_policy_store.h" |
| 14 #include "content/public/browser/notification_observer.h" | 14 #include "content/public/browser/notification_observer.h" |
| 15 | 15 |
| 16 namespace chromeos { | 16 namespace chromeos { |
| 17 | 17 |
| 18 class CrosSettings; | 18 class CrosSettings; |
| 19 | 19 |
| 20 // Fetches all info we want to show on OOBE/Login screens about system | 20 // Fetches all info we want to show on OOBE/Login screens about system |
| 21 // version, boot times and cloud policy. | 21 // version, boot times and cloud policy. |
| 22 class VersionInfoUpdater : public policy::CloudPolicyStore::Observer, | 22 class VersionInfoUpdater : public policy::CloudPolicyStore::Observer, |
| 23 public content::NotificationObserver { | 23 public content::NotificationObserver { |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 // at a later time without worrying that they will actually try to | 97 // at a later time without worrying that they will actually try to |
| 98 // happen after the lifetime of this object. | 98 // happen after the lifetime of this object. |
| 99 base::WeakPtrFactory<VersionInfoUpdater> weak_pointer_factory_; | 99 base::WeakPtrFactory<VersionInfoUpdater> weak_pointer_factory_; |
| 100 | 100 |
| 101 DISALLOW_COPY_AND_ASSIGN(VersionInfoUpdater); | 101 DISALLOW_COPY_AND_ASSIGN(VersionInfoUpdater); |
| 102 }; | 102 }; |
| 103 | 103 |
| 104 } // namespace chromeos | 104 } // namespace chromeos |
| 105 | 105 |
| 106 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_VERSION_INFO_UPDATER_H_ | 106 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_VERSION_INFO_UPDATER_H_ |
| OLD | NEW |