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/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
11 #include "base/memory/weak_ptr.h" | 11 #include "base/memory/weak_ptr.h" |
12 #include "chrome/browser/chromeos/boot_times_loader.h" | 12 #include "chrome/browser/chromeos/boot_times_loader.h" |
13 #include "chrome/browser/chromeos/settings/cros_settings.h" | 13 #include "chrome/browser/chromeos/settings/cros_settings.h" |
14 #include "chrome/browser/chromeos/version_loader.h" | 14 #include "chrome/browser/chromeos/version_loader.h" |
15 #include "chrome/browser/policy/cloud/cloud_policy_store.h" | 15 #include "components/policy/core/common/cloud/cloud_policy_store.h" |
16 | 16 |
17 namespace chromeos { | 17 namespace chromeos { |
18 | 18 |
19 class CrosSettings; | 19 class CrosSettings; |
20 | 20 |
21 // Fetches all info we want to show on OOBE/Login screens about system | 21 // Fetches all info we want to show on OOBE/Login screens about system |
22 // version, boot times and cloud policy. | 22 // version, boot times and cloud policy. |
23 class VersionInfoUpdater : public policy::CloudPolicyStore::Observer { | 23 class VersionInfoUpdater : public policy::CloudPolicyStore::Observer { |
24 public: | 24 public: |
25 class Delegate { | 25 class Delegate { |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 // at a later time without worrying that they will actually try to | 85 // at a later time without worrying that they will actually try to |
86 // happen after the lifetime of this object. | 86 // happen after the lifetime of this object. |
87 base::WeakPtrFactory<VersionInfoUpdater> weak_pointer_factory_; | 87 base::WeakPtrFactory<VersionInfoUpdater> weak_pointer_factory_; |
88 | 88 |
89 DISALLOW_COPY_AND_ASSIGN(VersionInfoUpdater); | 89 DISALLOW_COPY_AND_ASSIGN(VersionInfoUpdater); |
90 }; | 90 }; |
91 | 91 |
92 } // namespace chromeos | 92 } // namespace chromeos |
93 | 93 |
94 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_VERSION_INFO_UPDATER_H_ | 94 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_VERSION_INFO_UPDATER_H_ |
OLD | NEW |