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

Unified Diff: components/update_client/action_update.h

Issue 2480203002: ui: Cleanup class/struct forward declarations (Closed)
Patch Set: Sync CL to position 430550 Created 4 years, 1 month 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/sync/tools/sync_client.cc ('k') | components/update_client/action_update.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/update_client/action_update.h
diff --git a/components/update_client/action_update.h b/components/update_client/action_update.h
index c6fa4e7bb1202d3c53396244958ac313cacb757f..7b6297153f633b6338eb0203fa6031504e683ee6 100644
--- a/components/update_client/action_update.h
+++ b/components/update_client/action_update.h
@@ -58,7 +58,8 @@ class ActionUpdate : public Action, protected ActionImpl {
virtual void OnInstallStart(CrxUpdateItem* item) = 0;
virtual void OnInstallSuccess(CrxUpdateItem* item) = 0;
virtual void OnInstallError(CrxUpdateItem* item,
- UnpackerError error,
+ ErrorCategory error_category,
+ int error,
int extended_error) = 0;
void StartDownload(CrxUpdateItem* item);
@@ -73,7 +74,8 @@ class ActionUpdate : public Action, protected ActionImpl {
void StartInstall(CrxUpdateItem* item, const base::FilePath& crx_path);
void InstallComplete(const std::string& id,
- UnpackerError error,
+ ErrorCategory error_category,
+ int error,
int extended_error);
void StartUnpackOnBlockingTaskRunner(CrxUpdateItem* item,
@@ -88,14 +90,13 @@ class ActionUpdate : public Action, protected ActionImpl {
const base::FilePath& unpack_path);
void InstallCompleteOnBlockingTaskRunner(CrxUpdateItem* item,
const base::FilePath& crx_path,
- UnpackerError error,
+ ErrorCategory error_category,
+ int error,
int extended_error);
- // TODO(sorin): make this function return a result data type to convey
- // extended error information.
- UnpackerError DoInstall(CrxUpdateItem* item,
- const base::FilePath& crx_path,
- const base::FilePath& unpack_path);
+ CrxInstaller::Result DoInstall(CrxUpdateItem* item,
+ const base::FilePath& crx_path,
+ const base::FilePath& unpack_path);
// Downloads updates for one CRX id only.
std::unique_ptr<CrxDownloader> crx_downloader_;
@@ -128,7 +129,8 @@ class ActionUpdateDiff : public ActionUpdate {
void OnInstallStart(CrxUpdateItem* item) override;
void OnInstallSuccess(CrxUpdateItem* item) override;
void OnInstallError(CrxUpdateItem* item,
- UnpackerError error,
+ ErrorCategory error_category,
+ int error,
int extended_error) override;
DISALLOW_COPY_AND_ASSIGN(ActionUpdateDiff);
@@ -154,7 +156,8 @@ class ActionUpdateFull : public ActionUpdate {
void OnInstallStart(CrxUpdateItem* item) override;
void OnInstallSuccess(CrxUpdateItem* item) override;
void OnInstallError(CrxUpdateItem* item,
- UnpackerError error,
+ ErrorCategory error_category,
+ int error,
int extended_error) override;
DISALLOW_COPY_AND_ASSIGN(ActionUpdateFull);
« no previous file with comments | « components/sync/tools/sync_client.cc ('k') | components/update_client/action_update.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698