| OLD | NEW | 
|   1 // Copyright 2016 The Chromium Authors. All rights reserved. |   1 // Copyright 2016 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 COMPONENTS_UPDATE_CLIENT_UPDATE_CLIENT_ERRORS_H_ |   5 #ifndef COMPONENTS_UPDATE_CLIENT_UPDATE_CLIENT_ERRORS_H_ | 
|   6 #define COMPONENTS_UPDATE_CLIENT_UPDATE_CLIENT_ERRORS_H_ |   6 #define COMPONENTS_UPDATE_CLIENT_UPDATE_CLIENT_ERRORS_H_ | 
|   7  |   7  | 
|   8 namespace update_client { |   8 namespace update_client { | 
|   9  |   9  | 
|  10 // Errors generated as a result of calling UpdateClient member functions. |  10 // Errors generated as a result of calling UpdateClient member functions. | 
| (...skipping 23 matching lines...) Expand all  Loading... | 
|  34 // the Chrome net stack. |  34 // the Chrome net stack. | 
|  35 enum class CrxDownloaderError { |  35 enum class CrxDownloaderError { | 
|  36   NONE = 0, |  36   NONE = 0, | 
|  37   NO_URL = 10, |  37   NO_URL = 10, | 
|  38   NO_HASH = 11, |  38   NO_HASH = 11, | 
|  39   BAD_HASH = 12,  // The downloaded file fails the hash verification. |  39   BAD_HASH = 12,  // The downloaded file fails the hash verification. | 
|  40   GENERIC_ERROR = -1 |  40   GENERIC_ERROR = -1 | 
|  41 }; |  41 }; | 
|  42  |  42  | 
|  43 // These errors are returned with the |kUnpackError| error category and |  43 // These errors are returned with the |kUnpackError| error category and | 
|  44 // indicate unpacker or patcher error. |  44 // indicate unpacker, patcher, or install errors. | 
|  45 enum class UnpackerError { |  45 enum class UnpackerError { | 
|  46   kNone = 0, |  46   kNone = 0, | 
|  47   kInvalidParams = 1, |  47   kInvalidParams, | 
|  48   kInvalidFile = 2, |  48   kInvalidFile, | 
|  49   kUnzipPathError = 3, |  49   kUnzipPathError, | 
|  50   kUnzipFailed = 4, |  50   kUnzipFailed, | 
|  51   // kNoManifest = 5,         // Deprecated. Never used. |  51   kNoManifest, | 
|  52   kBadManifest = 6, |  52   kBadManifest, | 
|  53   kBadExtension = 7, |  53   kBadExtension, | 
|  54   kInvalidId = 8, |  54   kInvalidId, | 
|  55   // kInstallerError = 9,     // Deprecated. Don't use. |  55   kInstallerError, | 
|  56   kIoError = 10, |  56   kIoError, | 
|  57   kDeltaVerificationFailure = 11, |  57   kDeltaVerificationFailure, | 
|  58   kDeltaBadCommands = 12, |  58   kDeltaBadCommands, | 
|  59   kDeltaUnsupportedCommand = 13, |  59   kDeltaUnsupportedCommand, | 
|  60   kDeltaOperationFailure = 14, |  60   kDeltaOperationFailure, | 
|  61   kDeltaPatchProcessFailure = 15, |  61   kDeltaPatchProcessFailure, | 
|  62   kDeltaMissingExistingFile = 16, |  62   kDeltaMissingExistingFile, | 
|  63   // kFingerprintWriteFailed = 17,    // Deprecated. Don't use. |  63   kFingerprintWriteFailed, | 
|  64 }; |  64 }; | 
|  65  |  65  | 
|  66 // These errors are returned with the |kServiceError| error category and |  66 // These errors are returned with the |kServiceError| error category and | 
|  67 // are returned by the component installers. |  | 
|  68 enum class InstallError { |  | 
|  69   NONE = 0, |  | 
|  70   FINGERPRINT_WRITE_FAILED = 2, |  | 
|  71   BAD_MANIFEST = 3, |  | 
|  72   GENERIC_ERROR = 9,        // Matches kInstallerError for compatibility. |  | 
|  73   CUSTOM_ERROR_BASE = 100,  // Specific installer errors go above this value. |  | 
|  74 }; |  | 
|  75  |  | 
|  76 // These errors are returned with the |kInstallError| error category and |  | 
|  77 // indicate critical or configuration errors in the update service. |  67 // indicate critical or configuration errors in the update service. | 
|  78 enum class ServiceError { |  68 enum class ServiceError { | 
|  79   NONE = 0, |  69   NONE = 0, | 
|  80   SERVICE_WAIT_FAILED = 1, |  70   SERVICE_WAIT_FAILED = 1, | 
|  81   UPDATE_DISABLED = 2, |  71   UPDATE_DISABLED = 2, | 
|  82 }; |  72 }; | 
|  83  |  73  | 
|  84 }  // namespace update_client |  74 }  // namespace update_client | 
|  85  |  75  | 
|  86 #endif  // COMPONENTS_UPDATE_CLIENT_UPDATE_CLIENT_ERRORS_H_ |  76 #endif  // COMPONENTS_UPDATE_CLIENT_UPDATE_CLIENT_ERRORS_H_ | 
| OLD | NEW |