Jay Srinivasan | 480ddfa | 2012-06-01 19:15:26 -0700 | [diff] [blame] | 1 | // Copyright (c) 2012 The Chromium OS Authors. All rights reserved. |
rspangler@google.com | 49fdf18 | 2009-10-10 00:57:34 +0000 | [diff] [blame] | 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
Darin Petkov | 6a5b322 | 2010-07-13 14:55:28 -0700 | [diff] [blame] | 5 | #ifndef CHROMEOS_PLATFORM_UPDATE_ENGINE_OMAHA_REQUEST_ACTION_H__ |
| 6 | #define CHROMEOS_PLATFORM_UPDATE_ENGINE_OMAHA_REQUEST_ACTION_H__ |
rspangler@google.com | 49fdf18 | 2009-10-10 00:57:34 +0000 | [diff] [blame] | 7 | |
rspangler@google.com | 49fdf18 | 2009-10-10 00:57:34 +0000 | [diff] [blame] | 8 | #include <sys/stat.h> |
Andrew de los Reyes | 09e56d6 | 2010-04-23 13:45:53 -0700 | [diff] [blame] | 9 | #include <sys/types.h> |
rspangler@google.com | 49fdf18 | 2009-10-10 00:57:34 +0000 | [diff] [blame] | 10 | #include <fcntl.h> |
| 11 | |
| 12 | #include <string> |
Jay Srinivasan | 6f6ea00 | 2012-12-14 11:26:28 -0800 | [diff] [blame] | 13 | #include <vector> |
rspangler@google.com | 49fdf18 | 2009-10-10 00:57:34 +0000 | [diff] [blame] | 14 | |
Chris Masone | d903c3b | 2011-05-12 15:35:46 -0700 | [diff] [blame] | 15 | #include <base/memory/scoped_ptr.h> |
rspangler@google.com | 49fdf18 | 2009-10-10 00:57:34 +0000 | [diff] [blame] | 16 | #include <curl/curl.h> |
Jay Srinivasan | 480ddfa | 2012-06-01 19:15:26 -0700 | [diff] [blame] | 17 | #include <libxml/parser.h> |
rspangler@google.com | 49fdf18 | 2009-10-10 00:57:34 +0000 | [diff] [blame] | 18 | |
Andrew de los Reyes | 09e56d6 | 2010-04-23 13:45:53 -0700 | [diff] [blame] | 19 | #include "update_engine/action.h" |
| 20 | #include "update_engine/http_fetcher.h" |
rspangler@google.com | 49fdf18 | 2009-10-10 00:57:34 +0000 | [diff] [blame] | 21 | |
Darin Petkov | 6a5b322 | 2010-07-13 14:55:28 -0700 | [diff] [blame] | 22 | // The Omaha Request action makes a request to Omaha and can output |
| 23 | // the response on the output ActionPipe. |
rspangler@google.com | 49fdf18 | 2009-10-10 00:57:34 +0000 | [diff] [blame] | 24 | |
rspangler@google.com | 49fdf18 | 2009-10-10 00:57:34 +0000 | [diff] [blame] | 25 | namespace chromeos_update_engine { |
| 26 | |
| 27 | // Encodes XML entities in a given string with libxml2. input must be |
| 28 | // UTF-8 formatted. Output will be UTF-8 formatted. |
| 29 | std::string XmlEncode(const std::string& input); |
| 30 | |
Darin Petkov | 6a5b322 | 2010-07-13 14:55:28 -0700 | [diff] [blame] | 31 | // This struct encapsulates the data Omaha's response for the request. |
rspangler@google.com | 49fdf18 | 2009-10-10 00:57:34 +0000 | [diff] [blame] | 32 | // These strings in this struct are not XML escaped. |
Darin Petkov | 6a5b322 | 2010-07-13 14:55:28 -0700 | [diff] [blame] | 33 | struct OmahaResponse { |
| 34 | OmahaResponse() |
Darin Petkov | 85ced13 | 2010-09-01 10:20:56 -0700 | [diff] [blame] | 35 | : update_exists(false), |
| 36 | poll_interval(0), |
| 37 | size(0), |
Jay Srinivasan | f431870 | 2012-09-24 11:56:24 -0700 | [diff] [blame] | 38 | metadata_size(0), |
Jay Srinivasan | 23b92a5 | 2012-10-27 02:00:21 -0700 | [diff] [blame] | 39 | max_days_to_scatter(0), |
Jay Srinivasan | 2b5a0f0 | 2012-12-19 17:25:56 -0800 | [diff] [blame^] | 40 | max_failure_count_per_url(0), |
Darin Petkov | 85ced13 | 2010-09-01 10:20:56 -0700 | [diff] [blame] | 41 | needs_admin(false), |
| 42 | prompt(false) {} |
rspangler@google.com | 49fdf18 | 2009-10-10 00:57:34 +0000 | [diff] [blame] | 43 | // True iff there is an update to be downloaded. |
| 44 | bool update_exists; |
| 45 | |
Darin Petkov | 85ced13 | 2010-09-01 10:20:56 -0700 | [diff] [blame] | 46 | // If non-zero, server-dictated poll frequency in seconds. |
| 47 | int poll_interval; |
| 48 | |
rspangler@google.com | 49fdf18 | 2009-10-10 00:57:34 +0000 | [diff] [blame] | 49 | // These are only valid if update_exists is true: |
| 50 | std::string display_version; |
Jay Srinivasan | 6f6ea00 | 2012-12-14 11:26:28 -0800 | [diff] [blame] | 51 | |
| 52 | // The ordered list of URLs in the Omaha response. Each item is a complete |
| 53 | // URL (i.e. in terms of Omaha XML, each value is a urlBase + packageName) |
| 54 | std::vector<std::string> payload_urls; |
| 55 | |
rspangler@google.com | 49fdf18 | 2009-10-10 00:57:34 +0000 | [diff] [blame] | 56 | std::string more_info_url; |
| 57 | std::string hash; |
Jay Srinivasan | f431870 | 2012-09-24 11:56:24 -0700 | [diff] [blame] | 58 | std::string metadata_signature; |
Darin Petkov | 6c11864 | 2010-10-21 12:06:30 -0700 | [diff] [blame] | 59 | std::string deadline; |
rspangler@google.com | 49fdf18 | 2009-10-10 00:57:34 +0000 | [diff] [blame] | 60 | off_t size; |
Jay Srinivasan | f431870 | 2012-09-24 11:56:24 -0700 | [diff] [blame] | 61 | off_t metadata_size; |
Jay Srinivasan | 23b92a5 | 2012-10-27 02:00:21 -0700 | [diff] [blame] | 62 | int max_days_to_scatter; |
Jay Srinivasan | 2b5a0f0 | 2012-12-19 17:25:56 -0800 | [diff] [blame^] | 63 | // The number of URL-related failures to tolerate before moving on to the |
| 64 | // next URL in the current pass. This is a configurable value from the |
| 65 | // Omaha Response attribute, if ever we need to fine tune the behavior. |
| 66 | int max_failure_count_per_url; |
rspangler@google.com | 49fdf18 | 2009-10-10 00:57:34 +0000 | [diff] [blame] | 67 | bool needs_admin; |
| 68 | bool prompt; |
| 69 | }; |
| 70 | COMPILE_ASSERT(sizeof(off_t) == 8, off_t_not_64bit); |
| 71 | |
Darin Petkov | 0dc8e9a | 2010-07-14 14:51:57 -0700 | [diff] [blame] | 72 | // This struct encapsulates the Omaha event information. For a |
| 73 | // complete list of defined event types and results, see |
| 74 | // http://code.google.com/p/omaha/wiki/ServerProtocol#event |
| 75 | struct OmahaEvent { |
Jay Srinivasan | 56d5aa4 | 2012-03-26 14:27:59 -0700 | [diff] [blame] | 76 | // The Type values correspond to EVENT_TYPE values of Omaha. |
Darin Petkov | 0dc8e9a | 2010-07-14 14:51:57 -0700 | [diff] [blame] | 77 | enum Type { |
| 78 | kTypeUnknown = 0, |
| 79 | kTypeDownloadComplete = 1, |
| 80 | kTypeInstallComplete = 2, |
| 81 | kTypeUpdateComplete = 3, |
Darin Petkov | 8c2980e | 2010-07-16 15:16:49 -0700 | [diff] [blame] | 82 | kTypeUpdateDownloadStarted = 13, |
| 83 | kTypeUpdateDownloadFinished = 14, |
Darin Petkov | 0dc8e9a | 2010-07-14 14:51:57 -0700 | [diff] [blame] | 84 | }; |
| 85 | |
Jay Srinivasan | 56d5aa4 | 2012-03-26 14:27:59 -0700 | [diff] [blame] | 86 | // The Result values correspond to EVENT_RESULT values of Omaha. |
Darin Petkov | 0dc8e9a | 2010-07-14 14:51:57 -0700 | [diff] [blame] | 87 | enum Result { |
| 88 | kResultError = 0, |
| 89 | kResultSuccess = 1, |
Darin Petkov | 95508da | 2011-01-05 12:42:29 -0800 | [diff] [blame] | 90 | kResultSuccessReboot = 2, |
Jay Srinivasan | 56d5aa4 | 2012-03-26 14:27:59 -0700 | [diff] [blame] | 91 | kResultUpdateDeferred = 9, // When we ignore/defer updates due to policy. |
Darin Petkov | 0dc8e9a | 2010-07-14 14:51:57 -0700 | [diff] [blame] | 92 | }; |
| 93 | |
| 94 | OmahaEvent() |
| 95 | : type(kTypeUnknown), |
| 96 | result(kResultError), |
Darin Petkov | e17f86b | 2010-07-20 09:12:01 -0700 | [diff] [blame] | 97 | error_code(kActionCodeError) {} |
| 98 | explicit OmahaEvent(Type in_type) |
| 99 | : type(in_type), |
| 100 | result(kResultSuccess), |
| 101 | error_code(kActionCodeSuccess) {} |
| 102 | OmahaEvent(Type in_type, Result in_result, ActionExitCode in_error_code) |
Darin Petkov | 0dc8e9a | 2010-07-14 14:51:57 -0700 | [diff] [blame] | 103 | : type(in_type), |
| 104 | result(in_result), |
| 105 | error_code(in_error_code) {} |
| 106 | |
| 107 | Type type; |
| 108 | Result result; |
Darin Petkov | e17f86b | 2010-07-20 09:12:01 -0700 | [diff] [blame] | 109 | ActionExitCode error_code; |
Darin Petkov | 0dc8e9a | 2010-07-14 14:51:57 -0700 | [diff] [blame] | 110 | }; |
| 111 | |
rspangler@google.com | 49fdf18 | 2009-10-10 00:57:34 +0000 | [diff] [blame] | 112 | class NoneType; |
Darin Petkov | a4a8a8c | 2010-07-15 22:21:12 -0700 | [diff] [blame] | 113 | class OmahaRequestAction; |
| 114 | struct OmahaRequestParams; |
Darin Petkov | 1cbd78f | 2010-07-29 12:38:34 -0700 | [diff] [blame] | 115 | class PrefsInterface; |
rspangler@google.com | 49fdf18 | 2009-10-10 00:57:34 +0000 | [diff] [blame] | 116 | |
| 117 | template<> |
Darin Petkov | 6a5b322 | 2010-07-13 14:55:28 -0700 | [diff] [blame] | 118 | class ActionTraits<OmahaRequestAction> { |
rspangler@google.com | 49fdf18 | 2009-10-10 00:57:34 +0000 | [diff] [blame] | 119 | public: |
Darin Petkov | 0dc8e9a | 2010-07-14 14:51:57 -0700 | [diff] [blame] | 120 | // Takes parameters on the input pipe. |
Darin Petkov | a4a8a8c | 2010-07-15 22:21:12 -0700 | [diff] [blame] | 121 | typedef NoneType InputObjectType; |
Darin Petkov | 0dc8e9a | 2010-07-14 14:51:57 -0700 | [diff] [blame] | 122 | // On UpdateCheck success, puts the Omaha response on output. Event |
| 123 | // requests do not have an output pipe. |
Darin Petkov | 6a5b322 | 2010-07-13 14:55:28 -0700 | [diff] [blame] | 124 | typedef OmahaResponse OutputObjectType; |
rspangler@google.com | 49fdf18 | 2009-10-10 00:57:34 +0000 | [diff] [blame] | 125 | }; |
| 126 | |
Darin Petkov | 6a5b322 | 2010-07-13 14:55:28 -0700 | [diff] [blame] | 127 | class OmahaRequestAction : public Action<OmahaRequestAction>, |
| 128 | public HttpFetcherDelegate { |
rspangler@google.com | 49fdf18 | 2009-10-10 00:57:34 +0000 | [diff] [blame] | 129 | public: |
Darin Petkov | 1cbd78f | 2010-07-29 12:38:34 -0700 | [diff] [blame] | 130 | static const int kNeverPinged = -1; |
| 131 | static const int kPingTimeJump = -2; |
Jay Srinivasan | 2b5a0f0 | 2012-12-19 17:25:56 -0800 | [diff] [blame^] | 132 | // We choose this value of 10 as a heuristic for a work day in trying |
| 133 | // each URL, assuming we check roughly every 45 mins. This is a good time to |
| 134 | // wait - neither too long nor too little - so we don't give up the preferred |
| 135 | // URLs that appear earlier in list too quickly before moving on to the |
| 136 | // fallback ones. |
| 137 | static const int kDefaultMaxFailureCountPerUrl = 10; |
Darin Petkov | 1cbd78f | 2010-07-29 12:38:34 -0700 | [diff] [blame] | 138 | |
Jay Srinivasan | 480ddfa | 2012-06-01 19:15:26 -0700 | [diff] [blame] | 139 | // These are the possible outcome upon checking whether we satisfied |
| 140 | // the wall-clock-based-wait. |
| 141 | enum WallClockWaitResult { |
| 142 | kWallClockWaitNotSatisfied, |
| 143 | kWallClockWaitDoneButUpdateCheckWaitRequired, |
| 144 | kWallClockWaitDoneAndUpdateCheckWaitNotRequired, |
| 145 | }; |
| 146 | |
Darin Petkov | 0dc8e9a | 2010-07-14 14:51:57 -0700 | [diff] [blame] | 147 | // The ctor takes in all the parameters that will be used for making |
| 148 | // the request to Omaha. For some of them we have constants that |
| 149 | // should be used. |
| 150 | // |
rspangler@google.com | 49fdf18 | 2009-10-10 00:57:34 +0000 | [diff] [blame] | 151 | // Takes ownership of the passed in HttpFetcher. Useful for testing. |
Darin Petkov | 0dc8e9a | 2010-07-14 14:51:57 -0700 | [diff] [blame] | 152 | // |
| 153 | // Takes ownership of the passed in OmahaEvent. If |event| is NULL, |
| 154 | // this is an UpdateCheck request, otherwise it's an Event request. |
| 155 | // Event requests always succeed. |
| 156 | // |
rspangler@google.com | 49fdf18 | 2009-10-10 00:57:34 +0000 | [diff] [blame] | 157 | // A good calling pattern is: |
Darin Petkov | a4a8a8c | 2010-07-15 22:21:12 -0700 | [diff] [blame] | 158 | // OmahaRequestAction(..., new OmahaEvent(...), new WhateverHttpFetcher); |
Darin Petkov | 0dc8e9a | 2010-07-14 14:51:57 -0700 | [diff] [blame] | 159 | // or |
Darin Petkov | a4a8a8c | 2010-07-15 22:21:12 -0700 | [diff] [blame] | 160 | // OmahaRequestAction(..., NULL, new WhateverHttpFetcher); |
Jay Srinivasan | 6f6ea00 | 2012-12-14 11:26:28 -0800 | [diff] [blame] | 161 | OmahaRequestAction(SystemState* system_state, |
Jay Srinivasan | 480ddfa | 2012-06-01 19:15:26 -0700 | [diff] [blame] | 162 | OmahaRequestParams* params, |
Darin Petkov | a4a8a8c | 2010-07-15 22:21:12 -0700 | [diff] [blame] | 163 | OmahaEvent* event, |
Thieu Le | 116fda3 | 2011-04-19 11:01:54 -0700 | [diff] [blame] | 164 | HttpFetcher* http_fetcher, |
| 165 | bool ping_only); |
Darin Petkov | 6a5b322 | 2010-07-13 14:55:28 -0700 | [diff] [blame] | 166 | virtual ~OmahaRequestAction(); |
| 167 | typedef ActionTraits<OmahaRequestAction>::InputObjectType InputObjectType; |
| 168 | typedef ActionTraits<OmahaRequestAction>::OutputObjectType OutputObjectType; |
rspangler@google.com | 49fdf18 | 2009-10-10 00:57:34 +0000 | [diff] [blame] | 169 | void PerformAction(); |
| 170 | void TerminateProcessing(); |
| 171 | |
Darin Petkov | 1023a60 | 2010-08-30 13:47:51 -0700 | [diff] [blame] | 172 | int GetHTTPResponseCode() { return http_fetcher_->http_response_code(); } |
| 173 | |
rspangler@google.com | 49fdf18 | 2009-10-10 00:57:34 +0000 | [diff] [blame] | 174 | // Debugging/logging |
Darin Petkov | 6a5b322 | 2010-07-13 14:55:28 -0700 | [diff] [blame] | 175 | static std::string StaticType() { return "OmahaRequestAction"; } |
adlr@google.com | c98a7ed | 2009-12-04 18:54:03 +0000 | [diff] [blame] | 176 | std::string Type() const { return StaticType(); } |
rspangler@google.com | 49fdf18 | 2009-10-10 00:57:34 +0000 | [diff] [blame] | 177 | |
| 178 | // Delegate methods (see http_fetcher.h) |
| 179 | virtual void ReceivedBytes(HttpFetcher *fetcher, |
| 180 | const char* bytes, int length); |
rspangler@google.com | 49fdf18 | 2009-10-10 00:57:34 +0000 | [diff] [blame] | 181 | |
Jay Srinivasan | 23b92a5 | 2012-10-27 02:00:21 -0700 | [diff] [blame] | 182 | virtual void TransferComplete(HttpFetcher *fetcher, bool successful); |
Darin Petkov | 0dc8e9a | 2010-07-14 14:51:57 -0700 | [diff] [blame] | 183 | // Returns true if this is an Event request, false if it's an UpdateCheck. |
| 184 | bool IsEvent() const { return event_.get() != NULL; } |
| 185 | |
rspangler@google.com | 49fdf18 | 2009-10-10 00:57:34 +0000 | [diff] [blame] | 186 | private: |
Darin Petkov | 1cbd78f | 2010-07-29 12:38:34 -0700 | [diff] [blame] | 187 | // If this is an update check request, initializes |
| 188 | // |ping_active_days_| and |ping_roll_call_days_| to values that may |
| 189 | // be sent as pings to Omaha. |
| 190 | void InitPingDays(); |
| 191 | |
Darin Petkov | 84c763c | 2010-07-29 16:27:58 -0700 | [diff] [blame] | 192 | // Based on the persistent preference store values, calculates the |
Darin Petkov | 1cbd78f | 2010-07-29 12:38:34 -0700 | [diff] [blame] | 193 | // number of days since the last ping sent for |key|. |
| 194 | int CalculatePingDays(const std::string& key); |
| 195 | |
Jay Srinivasan | 480ddfa | 2012-06-01 19:15:26 -0700 | [diff] [blame] | 196 | // Returns true if the download of a new update should be deferred. |
| 197 | // False if the update can be downloaded. |
Jay Srinivasan | 23b92a5 | 2012-10-27 02:00:21 -0700 | [diff] [blame] | 198 | bool ShouldDeferDownload(OmahaResponse* output_object); |
Jay Srinivasan | 480ddfa | 2012-06-01 19:15:26 -0700 | [diff] [blame] | 199 | |
| 200 | // Returns true if the basic wall-clock-based waiting period has been |
| 201 | // satisfied based on the scattering policy setting. False otherwise. |
| 202 | // If true, it also indicates whether the additional update-check-count-based |
| 203 | // waiting period also needs to be satisfied before the download can begin. |
| 204 | WallClockWaitResult IsWallClockBasedWaitingSatisfied( |
Jay Srinivasan | 23b92a5 | 2012-10-27 02:00:21 -0700 | [diff] [blame] | 205 | OmahaResponse* output_object); |
Jay Srinivasan | 480ddfa | 2012-06-01 19:15:26 -0700 | [diff] [blame] | 206 | |
| 207 | // Returns true if the update-check-count-based waiting period has been |
| 208 | // satisfied. False otherwise. |
Jay Srinivasan | 23b92a5 | 2012-10-27 02:00:21 -0700 | [diff] [blame] | 209 | bool IsUpdateCheckCountBasedWaitingSatisfied(); |
| 210 | |
| 211 | // Parses the response from Omaha that's available in |doc| using the other |
| 212 | // helper methods below and populates the |output_object| with the relevant |
| 213 | // values. Returns true if we should continue the parsing. False otherwise, |
| 214 | // in which case it sets any error code using |completer|. |
| 215 | bool ParseResponse(xmlDoc* doc, |
| 216 | OmahaResponse* output_object, |
| 217 | ScopedActionCompleter* completer); |
| 218 | |
| 219 | // Parses the status property in the given update_check_node and populates |
| 220 | // |output_object| if valid. Returns true if we should continue the parsing. |
| 221 | // False otherwise, in which case it sets any error code using |completer|. |
| 222 | bool ParseStatus(xmlNode* update_check_node, |
| 223 | OmahaResponse* output_object, |
| 224 | ScopedActionCompleter* completer); |
| 225 | |
| 226 | // Parses the URL nodes in the given XML document and populates |
| 227 | // |output_object| if valid. Returns true if we should continue the parsing. |
| 228 | // False otherwise, in which case it sets any error code using |completer|. |
| 229 | bool ParseUrls(xmlDoc* doc, |
| 230 | OmahaResponse* output_object, |
| 231 | ScopedActionCompleter* completer); |
| 232 | |
| 233 | // Parses the package node in the given XML document and populates |
| 234 | // |output_object| if valid. Returns true if we should continue the parsing. |
| 235 | // False otherwise, in which case it sets any error code using |completer|. |
| 236 | bool ParsePackage(xmlDoc* doc, |
| 237 | OmahaResponse* output_object, |
| 238 | ScopedActionCompleter* completer); |
| 239 | |
| 240 | // Parses the other parameters in the given XML document and populates |
| 241 | // |output_object| if valid. Returns true if we should continue the parsing. |
| 242 | // False otherwise, in which case it sets any error code using |completer|. |
| 243 | bool ParseParams(xmlDoc* doc, |
| 244 | OmahaResponse* output_object, |
| 245 | ScopedActionCompleter* completer); |
Jay Srinivasan | 480ddfa | 2012-06-01 19:15:26 -0700 | [diff] [blame] | 246 | |
Jay Srinivasan | 6f6ea00 | 2012-12-14 11:26:28 -0800 | [diff] [blame] | 247 | // Global system context. |
| 248 | SystemState* system_state_; |
Darin Petkov | 1cbd78f | 2010-07-29 12:38:34 -0700 | [diff] [blame] | 249 | |
Jay Srinivasan | 480ddfa | 2012-06-01 19:15:26 -0700 | [diff] [blame] | 250 | // Contains state that is relevant in the processing of the Omaha request. |
| 251 | OmahaRequestParams* params_; |
rspangler@google.com | 49fdf18 | 2009-10-10 00:57:34 +0000 | [diff] [blame] | 252 | |
Darin Petkov | 0dc8e9a | 2010-07-14 14:51:57 -0700 | [diff] [blame] | 253 | // Pointer to the OmahaEvent info. This is an UpdateCheck request if NULL. |
| 254 | scoped_ptr<OmahaEvent> event_; |
| 255 | |
rspangler@google.com | 49fdf18 | 2009-10-10 00:57:34 +0000 | [diff] [blame] | 256 | // pointer to the HttpFetcher that does the http work |
| 257 | scoped_ptr<HttpFetcher> http_fetcher_; |
| 258 | |
Thieu Le | 116fda3 | 2011-04-19 11:01:54 -0700 | [diff] [blame] | 259 | // If true, only include the <ping> element in the request. |
| 260 | bool ping_only_; |
| 261 | |
rspangler@google.com | 49fdf18 | 2009-10-10 00:57:34 +0000 | [diff] [blame] | 262 | // Stores the response from the omaha server |
| 263 | std::vector<char> response_buffer_; |
| 264 | |
Darin Petkov | 1cbd78f | 2010-07-29 12:38:34 -0700 | [diff] [blame] | 265 | // Initialized by InitPingDays to values that may be sent to Omaha |
| 266 | // as part of a ping message. Note that only positive values and -1 |
| 267 | // are sent to Omaha. |
| 268 | int ping_active_days_; |
| 269 | int ping_roll_call_days_; |
| 270 | |
Darin Petkov | 6a5b322 | 2010-07-13 14:55:28 -0700 | [diff] [blame] | 271 | DISALLOW_COPY_AND_ASSIGN(OmahaRequestAction); |
rspangler@google.com | 49fdf18 | 2009-10-10 00:57:34 +0000 | [diff] [blame] | 272 | }; |
| 273 | |
| 274 | } // namespace chromeos_update_engine |
| 275 | |
Darin Petkov | 6a5b322 | 2010-07-13 14:55:28 -0700 | [diff] [blame] | 276 | #endif // CHROMEOS_PLATFORM_UPDATE_ENGINE_OMAHA_REQUEST_ACTION_H__ |