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