| 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" |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 | 40 |
| 41 // Sets delegate. | 41 // Sets delegate. |
| 42 void set_delegate(Delegate* delegate) { delegate_ = delegate; } | 42 void set_delegate(Delegate* delegate) { delegate_ = delegate; } |
| 43 | 43 |
| 44 // Starts fetching version info. The delegate will be notified when update | 44 // Starts fetching version info. The delegate will be notified when update |
| 45 // is received. | 45 // is received. |
| 46 void StartUpdate(bool is_official_build); | 46 void StartUpdate(bool is_official_build); |
| 47 | 47 |
| 48 private: | 48 private: |
| 49 // policy::CloudPolicyStore::Observer interface: | 49 // policy::CloudPolicyStore::Observer interface: |
| 50 virtual void OnStoreLoaded(policy::CloudPolicyStore* store) OVERRIDE; | 50 virtual void OnStoreLoaded(policy::CloudPolicyStore* store) override; |
| 51 virtual void OnStoreError(policy::CloudPolicyStore* store) OVERRIDE; | 51 virtual void OnStoreError(policy::CloudPolicyStore* store) override; |
| 52 | 52 |
| 53 // Update the version label. | 53 // Update the version label. |
| 54 void UpdateVersionLabel(); | 54 void UpdateVersionLabel(); |
| 55 | 55 |
| 56 // Check and update enterprise domain. | 56 // Check and update enterprise domain. |
| 57 void UpdateEnterpriseInfo(); | 57 void UpdateEnterpriseInfo(); |
| 58 | 58 |
| 59 // Set enterprise domain name. | 59 // Set enterprise domain name. |
| 60 void SetEnterpriseInfo(const std::string& domain_name); | 60 void SetEnterpriseInfo(const std::string& domain_name); |
| 61 | 61 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 89 // at a later time without worrying that they will actually try to | 89 // at a later time without worrying that they will actually try to |
| 90 // happen after the lifetime of this object. | 90 // happen after the lifetime of this object. |
| 91 base::WeakPtrFactory<VersionInfoUpdater> weak_pointer_factory_; | 91 base::WeakPtrFactory<VersionInfoUpdater> weak_pointer_factory_; |
| 92 | 92 |
| 93 DISALLOW_COPY_AND_ASSIGN(VersionInfoUpdater); | 93 DISALLOW_COPY_AND_ASSIGN(VersionInfoUpdater); |
| 94 }; | 94 }; |
| 95 | 95 |
| 96 } // namespace chromeos | 96 } // namespace chromeos |
| 97 | 97 |
| 98 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_VERSION_INFO_UPDATER_H_ | 98 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_VERSION_INFO_UPDATER_H_ |
| OLD | NEW |