Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(418)

Unified Diff: components/update_client/update_client.h

Issue 2835803002: Refactor the UpdateEngine and its actions in the component updater. (Closed)
Patch Set: feedback up to #6 Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/update_client/update_checker_unittest.cc ('k') | components/update_client/update_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/update_client/update_client.h
diff --git a/components/update_client/update_client.h b/components/update_client/update_client.h
index 412a4d9b264488cb3959b22bfaebbc009cbeed60..d068a5654bf29104df086c5f9c4f5ae9b98f3fc1 100644
--- a/components/update_client/update_client.h
+++ b/components/update_client/update_client.h
@@ -143,6 +143,22 @@ class Configurator;
enum class Error;
struct CrxUpdateItem;
+enum class ComponentState {
+ kNew,
+ kChecking,
+ kCanUpdate,
+ kDownloadingDiff,
+ kDownloading,
+ kDownloaded,
+ kUpdatingDiff,
+ kUpdating,
+ kUpdated,
+ kUpToDate,
+ kUpdateError,
+ kUninstalled,
+ kLastStatus
+};
+
// Called when a non-blocking call in this module completes.
using Callback = base::Callback<void(Error error)>;
@@ -252,7 +268,7 @@ class UpdateClient : public base::RefCounted<UpdateClient> {
public:
enum class Events {
// Sent before the update client does an update check.
- COMPONENT_CHECKING_FOR_UPDATES,
+ COMPONENT_CHECKING_FOR_UPDATES = 1,
// Sent when there is a new version of a registered CRX. After
// the notification is sent the CRX will be downloaded unless the
« no previous file with comments | « components/update_client/update_checker_unittest.cc ('k') | components/update_client/update_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698