| 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_UI_WEBUI_HELP_VERSION_UPDATER_CHROMEOS_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_HELP_VERSION_UPDATER_CHROMEOS_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_HELP_VERSION_UPDATER_CHROMEOS_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_HELP_VERSION_UPDATER_CHROMEOS_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
| 10 #include "chrome/browser/ui/webui/help/version_updater.h" | 10 #include "chrome/browser/ui/webui/help/version_updater.h" |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 | 38 |
| 39 // Callback from UpdateEngineClient::RequestUpdateCheck(). | 39 // Callback from UpdateEngineClient::RequestUpdateCheck(). |
| 40 void OnUpdateCheck(chromeos::UpdateEngineClient::UpdateCheckResult result); | 40 void OnUpdateCheck(chromeos::UpdateEngineClient::UpdateCheckResult result); |
| 41 | 41 |
| 42 // Callback used to communicate update status to the client. | 42 // Callback used to communicate update status to the client. |
| 43 StatusCallback callback_; | 43 StatusCallback callback_; |
| 44 | 44 |
| 45 // Last state received via UpdateStatusChanged(). | 45 // Last state received via UpdateStatusChanged(). |
| 46 chromeos::UpdateEngineClient::UpdateStatusOperation last_operation_; | 46 chromeos::UpdateEngineClient::UpdateStatusOperation last_operation_; |
| 47 | 47 |
| 48 // True if an update check should be scheduled when the update engine is idle. |
| 49 bool check_for_update_when_idle_; |
| 50 |
| 48 base::WeakPtrFactory<VersionUpdaterCros> weak_ptr_factory_; | 51 base::WeakPtrFactory<VersionUpdaterCros> weak_ptr_factory_; |
| 49 | 52 |
| 50 DISALLOW_COPY_AND_ASSIGN(VersionUpdaterCros); | 53 DISALLOW_COPY_AND_ASSIGN(VersionUpdaterCros); |
| 51 }; | 54 }; |
| 52 | 55 |
| 53 #endif // CHROME_BROWSER_UI_WEBUI_HELP_VERSION_UPDATER_CHROMEOS_H_ | 56 #endif // CHROME_BROWSER_UI_WEBUI_HELP_VERSION_UPDATER_CHROMEOS_H_ |
| OLD | NEW |