Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(106)

Side by Side Diff: action_processor.h

Issue 4432002: AU: Separate error codes for different OmahaRequestAction failures. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/update_engine.git@master
Patch Set: Created 10 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | mock_http_fetcher.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 20 matching lines...) Expand all
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 kActionCodeDownloadWriteError = 14,
41 kActionCodeOmahaRequestEmptyResponseError = 200,
42 kActionCodeOmahaRequestXMLParseError = 201,
43 kActionCodeOmahaRequestNoUpdateCheckNode = 202,
44 kActionCodeOmahaRequestNoUpdateCheckStatus = 203,
45 kActionCodeOmahaRequestBadUpdateCheckStatus = 204,
46 kActionCodeOmahaRequestHTTPResponseBase = 2000, // + HTTP response code
41 }; 47 };
42 48
43 class AbstractAction; 49 class AbstractAction;
44 class ActionProcessorDelegate; 50 class ActionProcessorDelegate;
45 51
46 class ActionProcessor { 52 class ActionProcessor {
47 public: 53 public:
48 ActionProcessor(); 54 ActionProcessor();
49 55
50 virtual ~ActionProcessor(); 56 virtual ~ActionProcessor();
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 // Called whenever an action has finished processing, either successfully 116 // Called whenever an action has finished processing, either successfully
111 // or otherwise. 117 // or otherwise.
112 virtual void ActionCompleted(ActionProcessor* processor, 118 virtual void ActionCompleted(ActionProcessor* processor,
113 AbstractAction* action, 119 AbstractAction* action,
114 ActionExitCode code) {} 120 ActionExitCode code) {}
115 }; 121 };
116 122
117 } // namespace chromeos_update_engine 123 } // namespace chromeos_update_engine
118 124
119 #endif // CHROMEOS_PLATFORM_UPDATE_ENGINE_ACTION_PROCESSOR_H__ 125 #endif // CHROMEOS_PLATFORM_UPDATE_ENGINE_ACTION_PROCESSOR_H__
OLDNEW
« no previous file with comments | « no previous file | mock_http_fetcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698