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