OLD | NEW |
1 // Copyright (c) 2010 The Chromium OS Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium OS 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 CHROMEOS_PLATFORM_UPDATE_ENGINE_ACTION_PROCESSOR_H__ | 5 #ifndef CHROMEOS_PLATFORM_UPDATE_ENGINE_ACTION_PROCESSOR_H__ |
6 #define CHROMEOS_PLATFORM_UPDATE_ENGINE_ACTION_PROCESSOR_H__ | 6 #define CHROMEOS_PLATFORM_UPDATE_ENGINE_ACTION_PROCESSOR_H__ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 18 matching lines...) Expand all Loading... |
29 kActionCodeOmahaResponseHandlerError = 3, | 29 kActionCodeOmahaResponseHandlerError = 3, |
30 kActionCodeFilesystemCopierError = 4, | 30 kActionCodeFilesystemCopierError = 4, |
31 kActionCodePostinstallRunnerError = 5, | 31 kActionCodePostinstallRunnerError = 5, |
32 kActionCodeSetBootableFlagError = 6, // TODO(petkov): Unused. Recycle? | 32 kActionCodeSetBootableFlagError = 6, // TODO(petkov): Unused. Recycle? |
33 kActionCodeInstallDeviceOpenError = 7, | 33 kActionCodeInstallDeviceOpenError = 7, |
34 kActionCodeKernelDeviceOpenError = 8, | 34 kActionCodeKernelDeviceOpenError = 8, |
35 kActionCodeDownloadTransferError = 9, | 35 kActionCodeDownloadTransferError = 9, |
36 kActionCodeDownloadHashMismatchError = 10, | 36 kActionCodeDownloadHashMismatchError = 10, |
37 kActionCodeDownloadSizeMismatchError = 11, | 37 kActionCodeDownloadSizeMismatchError = 11, |
38 kActionCodeDownloadPayloadVerificationError = 12, | 38 kActionCodeDownloadPayloadVerificationError = 12, |
39 kActionCodeDownloadAppliedUpdateVerificationError = 13, | 39 kActionCodeDownloadNewPartitionInfoError = 13, |
40 kActionCodeDownloadWriteError = 14, | 40 kActionCodeDownloadWriteError = 14, |
| 41 kActionCodeNewRootfsVerificationError = 15, |
| 42 kActionCodeNewKernelVerificationError = 16, |
41 kActionCodeOmahaRequestEmptyResponseError = 200, | 43 kActionCodeOmahaRequestEmptyResponseError = 200, |
42 kActionCodeOmahaRequestXMLParseError = 201, | 44 kActionCodeOmahaRequestXMLParseError = 201, |
43 kActionCodeOmahaRequestNoUpdateCheckNode = 202, | 45 kActionCodeOmahaRequestNoUpdateCheckNode = 202, |
44 kActionCodeOmahaRequestNoUpdateCheckStatus = 203, | 46 kActionCodeOmahaRequestNoUpdateCheckStatus = 203, |
45 kActionCodeOmahaRequestBadUpdateCheckStatus = 204, | 47 kActionCodeOmahaRequestBadUpdateCheckStatus = 204, |
46 kActionCodeOmahaRequestHTTPResponseBase = 2000, // + HTTP response code | 48 kActionCodeOmahaRequestHTTPResponseBase = 2000, // + HTTP response code |
47 }; | 49 }; |
48 | 50 |
49 class AbstractAction; | 51 class AbstractAction; |
50 class ActionProcessorDelegate; | 52 class ActionProcessorDelegate; |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 // Called whenever an action has finished processing, either successfully | 118 // Called whenever an action has finished processing, either successfully |
117 // or otherwise. | 119 // or otherwise. |
118 virtual void ActionCompleted(ActionProcessor* processor, | 120 virtual void ActionCompleted(ActionProcessor* processor, |
119 AbstractAction* action, | 121 AbstractAction* action, |
120 ActionExitCode code) {} | 122 ActionExitCode code) {} |
121 }; | 123 }; |
122 | 124 |
123 } // namespace chromeos_update_engine | 125 } // namespace chromeos_update_engine |
124 | 126 |
125 #endif // CHROMEOS_PLATFORM_UPDATE_ENGINE_ACTION_PROCESSOR_H__ | 127 #endif // CHROMEOS_PLATFORM_UPDATE_ENGINE_ACTION_PROCESSOR_H__ |
OLD | NEW |