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 19 matching lines...) Expand all Loading... |
30 kActionCodeFilesystemCopierError = 4, | 30 kActionCodeFilesystemCopierError = 4, |
31 kActionCodePostinstallRunnerError = 5, | 31 kActionCodePostinstallRunnerError = 5, |
32 kActionCodeSetBootableFlagError = 6, | 32 kActionCodeSetBootableFlagError = 6, |
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 kActionCodeDownloadAppliedUpdateVerificationError = 13, |
| 40 kActionCodeDownloadWriteError = 14, |
40 }; | 41 }; |
41 | 42 |
42 class AbstractAction; | 43 class AbstractAction; |
43 class ActionProcessorDelegate; | 44 class ActionProcessorDelegate; |
44 | 45 |
45 class ActionProcessor { | 46 class ActionProcessor { |
46 public: | 47 public: |
47 ActionProcessor(); | 48 ActionProcessor(); |
48 | 49 |
49 virtual ~ActionProcessor(); | 50 virtual ~ActionProcessor(); |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 // Called whenever an action has finished processing, either successfully | 110 // Called whenever an action has finished processing, either successfully |
110 // or otherwise. | 111 // or otherwise. |
111 virtual void ActionCompleted(ActionProcessor* processor, | 112 virtual void ActionCompleted(ActionProcessor* processor, |
112 AbstractAction* action, | 113 AbstractAction* action, |
113 ActionExitCode code) {} | 114 ActionExitCode code) {} |
114 }; | 115 }; |
115 | 116 |
116 } // namespace chromeos_update_engine | 117 } // namespace chromeos_update_engine |
117 | 118 |
118 #endif // CHROMEOS_PLATFORM_UPDATE_ENGINE_ACTION_PROCESSOR_H__ | 119 #endif // CHROMEOS_PLATFORM_UPDATE_ENGINE_ACTION_PROCESSOR_H__ |
OLD | NEW |