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

Side by Side Diff: action_processor.h

Issue 6098008: AU: Include a bit flag (bit 31) in error codes to indicate non-normal boot mode. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/update_engine.git@master
Patch Set: review Created 9 years, 11 months 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 | « SConstruct ('k') | omaha_request_action.cc » ('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 28 matching lines...) Expand all
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
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__
OLDNEW
« no previous file with comments | « SConstruct ('k') | omaha_request_action.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698