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 24 matching lines...) Expand all Loading... |
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 kActionCodeDownloadNewPartitionInfoError = 13, | 39 kActionCodeDownloadNewPartitionInfoError = 13, |
40 kActionCodeDownloadWriteError = 14, | 40 kActionCodeDownloadWriteError = 14, |
41 kActionCodeNewRootfsVerificationError = 15, | 41 kActionCodeNewRootfsVerificationError = 15, |
42 kActionCodeNewKernelVerificationError = 16, | 42 kActionCodeNewKernelVerificationError = 16, |
43 kActionCodeSignedDeltaPayloadExpectedError = 17, | 43 kActionCodeSignedDeltaPayloadExpectedError = 17, |
44 kActionCodeDownloadPayloadPubKeyVerificationError = 18, | 44 kActionCodeDownloadPayloadPubKeyVerificationError = 18, |
| 45 kActionCodePostinstallBootedFromFirmwareB = 19, |
45 kActionCodeOmahaRequestEmptyResponseError = 200, | 46 kActionCodeOmahaRequestEmptyResponseError = 200, |
46 kActionCodeOmahaRequestXMLParseError = 201, | 47 kActionCodeOmahaRequestXMLParseError = 201, |
47 kActionCodeOmahaRequestNoUpdateCheckNode = 202, | 48 kActionCodeOmahaRequestNoUpdateCheckNode = 202, |
48 kActionCodeOmahaRequestNoUpdateCheckStatus = 203, | 49 kActionCodeOmahaRequestNoUpdateCheckStatus = 203, |
49 kActionCodeOmahaRequestBadUpdateCheckStatus = 204, | 50 kActionCodeOmahaRequestBadUpdateCheckStatus = 204, |
50 kActionCodeOmahaRequestHTTPResponseBase = 2000, // + HTTP response code | 51 kActionCodeOmahaRequestHTTPResponseBase = 2000, // + HTTP response code |
51 | 52 |
52 // Bit flags. | 53 // Bit flags. |
53 kActionCodeBootModeFlag = 1 << 31, // Set if boot mode not normal. | 54 kActionCodeBootModeFlag = 1 << 31, // Set if boot mode not normal. |
54 }; | 55 }; |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 // Called whenever an action has finished processing, either successfully | 124 // Called whenever an action has finished processing, either successfully |
124 // or otherwise. | 125 // or otherwise. |
125 virtual void ActionCompleted(ActionProcessor* processor, | 126 virtual void ActionCompleted(ActionProcessor* processor, |
126 AbstractAction* action, | 127 AbstractAction* action, |
127 ActionExitCode code) {} | 128 ActionExitCode code) {} |
128 }; | 129 }; |
129 | 130 |
130 } // namespace chromeos_update_engine | 131 } // namespace chromeos_update_engine |
131 | 132 |
132 #endif // CHROMEOS_PLATFORM_UPDATE_ENGINE_ACTION_PROCESSOR_H__ | 133 #endif // CHROMEOS_PLATFORM_UPDATE_ENGINE_ACTION_PROCESSOR_H__ |
OLD | NEW |