| 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_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_HELP_VERSION_UPDATER_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_HELP_VERSION_UPDATER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_HELP_VERSION_UPDATER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| 11 #include "base/string16.h" | 11 #include "base/strings/string16.h" |
| 12 | 12 |
| 13 // Interface implemented to expose per-platform updating functionality. | 13 // Interface implemented to expose per-platform updating functionality. |
| 14 class VersionUpdater { | 14 class VersionUpdater { |
| 15 public: | 15 public: |
| 16 // Update process state machine. | 16 // Update process state machine. |
| 17 enum Status { | 17 enum Status { |
| 18 CHECKING, | 18 CHECKING, |
| 19 UPDATING, | 19 UPDATING, |
| 20 NEARLY_UPDATED, | 20 NEARLY_UPDATED, |
| 21 UPDATED, | 21 UPDATED, |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 // Relaunches the browser, generally after being updated. | 74 // Relaunches the browser, generally after being updated. |
| 75 virtual void RelaunchBrowser() const = 0; | 75 virtual void RelaunchBrowser() const = 0; |
| 76 | 76 |
| 77 #if defined(OS_CHROMEOS) | 77 #if defined(OS_CHROMEOS) |
| 78 virtual void SetReleaseChannel(const std::string& channel) = 0; | 78 virtual void SetReleaseChannel(const std::string& channel) = 0; |
| 79 virtual void GetReleaseChannel(const ChannelCallback& callback) = 0; | 79 virtual void GetReleaseChannel(const ChannelCallback& callback) = 0; |
| 80 #endif | 80 #endif |
| 81 }; | 81 }; |
| 82 | 82 |
| 83 #endif // CHROME_BROWSER_UI_WEBUI_HELP_VERSION_UPDATER_H_ | 83 #endif // CHROME_BROWSER_UI_WEBUI_HELP_VERSION_UPDATER_H_ |
| OLD | NEW |