Jay Srinivasan | 480ddfa | 2012-06-01 19:15:26 -0700 | [diff] [blame] | 1 | // Copyright (c) 2012 The Chromium OS Authors. All rights reserved. |
Darin Petkov | a4a8a8c | 2010-07-15 22:21:12 -0700 | [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 | |
| 5 | #ifndef CHROMEOS_PLATFORM_UPDATE_ENGINE_OMAHA_REQUEST_PARAMS_H__ |
| 6 | #define CHROMEOS_PLATFORM_UPDATE_ENGINE_OMAHA_REQUEST_PARAMS_H__ |
| 7 | |
| 8 | #include <string> |
| 9 | |
Darin Petkov | 49d9132 | 2010-10-25 16:34:58 -0700 | [diff] [blame] | 10 | #include <base/basictypes.h> |
Jay Srinivasan | 480ddfa | 2012-06-01 19:15:26 -0700 | [diff] [blame] | 11 | #include <base/time.h> |
Darin Petkov | 49d9132 | 2010-10-25 16:34:58 -0700 | [diff] [blame] | 12 | #include <gtest/gtest_prod.h> // for FRIEND_TEST |
Darin Petkov | a4a8a8c | 2010-07-15 22:21:12 -0700 | [diff] [blame] | 13 | |
| 14 | // This gathers local system information and prepares info used by the |
| 15 | // Omaha request action. |
| 16 | |
| 17 | namespace chromeos_update_engine { |
| 18 | |
Jay Srinivasan | 55f50c2 | 2013-01-10 19:24:35 -0800 | [diff] [blame] | 19 | // The default "official" Omaha update URL. |
| 20 | extern const char* const kProductionOmahaUrl; |
| 21 | |
Jay Srinivasan | ae4697c | 2013-03-18 17:08:08 -0700 | [diff] [blame] | 22 | class SystemState; |
Jay Srinivasan | 0a70874 | 2012-03-20 11:26:12 -0700 | [diff] [blame] | 23 | |
Jay Srinivasan | ae4697c | 2013-03-18 17:08:08 -0700 | [diff] [blame] | 24 | // This class encapsulates the data Omaha gets for the request, along with |
| 25 | // essential state needed for the processing of the request/response. The |
| 26 | // strings in this struct should not be XML escaped. |
| 27 | // |
| 28 | // TODO (jaysri): chromium-os:39752 tracks the need to rename this class to |
| 29 | // reflect its lifetime more appropriately. |
| 30 | class OmahaRequestParams { |
| 31 | public: |
| 32 | OmahaRequestParams(SystemState* system_state) |
| 33 | : system_state_(system_state), |
| 34 | os_platform_(kOsPlatform), |
| 35 | os_version_(kOsVersion), |
| 36 | app_id_(kAppId), |
| 37 | board_app_id_(kAppId), |
| 38 | delta_okay_(true), |
| 39 | interactive_(false), |
| 40 | update_disabled_(false), |
| 41 | wall_clock_based_wait_enabled_(false), |
| 42 | update_check_count_wait_enabled_(false), |
| 43 | min_update_checks_needed_(kDefaultMinUpdateChecks), |
| 44 | max_update_checks_allowed_(kDefaultMaxUpdateChecks), |
| 45 | is_powerwash_allowed_(false), |
| 46 | force_lock_down_(false), |
| 47 | forced_lock_down_(false) { |
| 48 | InitFromLsbValue(); |
| 49 | } |
Jay Srinivasan | 0a70874 | 2012-03-20 11:26:12 -0700 | [diff] [blame] | 50 | |
Jay Srinivasan | ae4697c | 2013-03-18 17:08:08 -0700 | [diff] [blame] | 51 | OmahaRequestParams(SystemState* system_state, |
| 52 | const std::string& in_os_platform, |
Darin Petkov | a4a8a8c | 2010-07-15 22:21:12 -0700 | [diff] [blame] | 53 | const std::string& in_os_version, |
| 54 | const std::string& in_os_sp, |
| 55 | const std::string& in_os_board, |
| 56 | const std::string& in_app_id, |
| 57 | const std::string& in_app_version, |
| 58 | const std::string& in_app_lang, |
Jay Srinivasan | ae4697c | 2013-03-18 17:08:08 -0700 | [diff] [blame] | 59 | const std::string& in_target_channel, |
| 60 | const std::string& in_hwid, |
Jay Srinivasan | 0a70874 | 2012-03-20 11:26:12 -0700 | [diff] [blame] | 61 | bool in_delta_okay, |
Gilad Arnold | bbdd490 | 2013-01-10 16:06:30 -0800 | [diff] [blame] | 62 | bool in_interactive, |
Jay Srinivasan | 0a70874 | 2012-03-20 11:26:12 -0700 | [diff] [blame] | 63 | const std::string& in_update_url, |
| 64 | bool in_update_disabled, |
| 65 | const std::string& in_target_version_prefix) |
Jay Srinivasan | ae4697c | 2013-03-18 17:08:08 -0700 | [diff] [blame] | 66 | : system_state_(system_state), |
| 67 | os_platform_(in_os_platform), |
| 68 | os_version_(in_os_version), |
| 69 | os_sp_(in_os_sp), |
| 70 | os_board_(in_os_board), |
| 71 | app_id_(in_app_id), |
| 72 | board_app_id_(in_app_id), |
| 73 | app_version_(in_app_version), |
| 74 | app_lang_(in_app_lang), |
| 75 | current_channel_(in_target_channel), |
| 76 | target_channel_(in_target_channel), |
| 77 | hwid_(in_hwid), |
| 78 | delta_okay_(in_delta_okay), |
| 79 | interactive_(in_interactive), |
| 80 | update_url_(in_update_url), |
| 81 | update_disabled_(in_update_disabled), |
| 82 | target_version_prefix_(in_target_version_prefix), |
| 83 | wall_clock_based_wait_enabled_(false), |
| 84 | update_check_count_wait_enabled_(false), |
| 85 | min_update_checks_needed_(kDefaultMinUpdateChecks), |
| 86 | max_update_checks_allowed_(kDefaultMaxUpdateChecks), |
| 87 | is_powerwash_allowed_(false), |
| 88 | force_lock_down_(false), |
| 89 | forced_lock_down_(false) {} |
Darin Petkov | a4a8a8c | 2010-07-15 22:21:12 -0700 | [diff] [blame] | 90 | |
Jay Srinivasan | ae4697c | 2013-03-18 17:08:08 -0700 | [diff] [blame] | 91 | // Setters and getters for the various properties. |
| 92 | inline std::string os_platform() const { return os_platform_; } |
| 93 | inline std::string os_version() const { return os_version_; } |
| 94 | inline std::string os_sp() const { return os_sp_; } |
| 95 | inline std::string os_board() const { return os_board_; } |
| 96 | inline std::string app_id() const { return app_id_; } |
| 97 | inline std::string board_app_id() const { return board_app_id_; } |
| 98 | inline std::string app_lang() const { return app_lang_; } |
| 99 | inline std::string hwid() const { return hwid_; } |
Darin Petkov | a4a8a8c | 2010-07-15 22:21:12 -0700 | [diff] [blame] | 100 | |
Jay Srinivasan | ae4697c | 2013-03-18 17:08:08 -0700 | [diff] [blame] | 101 | inline void set_app_version(const std::string& version) { |
| 102 | app_version_ = version; |
| 103 | } |
| 104 | inline std::string app_version() const { return app_version_; } |
Darin Petkov | a4a8a8c | 2010-07-15 22:21:12 -0700 | [diff] [blame] | 105 | |
Jay Srinivasan | ae4697c | 2013-03-18 17:08:08 -0700 | [diff] [blame] | 106 | inline std::string current_channel() const { return current_channel_; } |
| 107 | inline std::string target_channel() const { return target_channel_; } |
Jay Srinivasan | 1c0fe79 | 2013-03-28 16:45:25 -0700 | [diff] [blame] | 108 | inline std::string download_channel() const { return download_channel_; } |
Darin Petkov | 49d9132 | 2010-10-25 16:34:58 -0700 | [diff] [blame] | 109 | |
Jay Srinivasan | ae4697c | 2013-03-18 17:08:08 -0700 | [diff] [blame] | 110 | // Can client accept a delta ? |
| 111 | inline void set_delta_okay(bool ok) { delta_okay_ = ok; } |
| 112 | inline bool delta_okay() const { return delta_okay_; } |
Jay Srinivasan | 0a70874 | 2012-03-20 11:26:12 -0700 | [diff] [blame] | 113 | |
Jay Srinivasan | ae4697c | 2013-03-18 17:08:08 -0700 | [diff] [blame] | 114 | // True if this is a user-initiated update check. |
| 115 | inline bool interactive() const { return interactive_; } |
Jay Srinivasan | 480ddfa | 2012-06-01 19:15:26 -0700 | [diff] [blame] | 116 | |
Jay Srinivasan | ae4697c | 2013-03-18 17:08:08 -0700 | [diff] [blame] | 117 | inline void set_update_url(const std::string& url) { update_url_ = url; } |
| 118 | inline std::string update_url() const { return update_url_; } |
| 119 | |
| 120 | inline void set_update_disabled(bool disabled) { |
| 121 | update_disabled_ = disabled; |
| 122 | } |
| 123 | inline bool update_disabled() const { return update_disabled_; } |
| 124 | |
| 125 | inline void set_target_version_prefix(const std::string& prefix) { |
| 126 | target_version_prefix_ = prefix; |
| 127 | } |
| 128 | |
| 129 | inline std::string target_version_prefix() const { |
| 130 | return target_version_prefix_; |
| 131 | } |
| 132 | |
| 133 | inline void set_wall_clock_based_wait_enabled(bool enabled) { |
| 134 | wall_clock_based_wait_enabled_ = enabled; |
| 135 | } |
| 136 | inline bool wall_clock_based_wait_enabled() const { |
| 137 | return wall_clock_based_wait_enabled_; |
| 138 | } |
| 139 | |
| 140 | inline void set_waiting_period(base::TimeDelta period) { |
| 141 | waiting_period_ = period; |
| 142 | } |
| 143 | base::TimeDelta waiting_period() const { return waiting_period_; } |
| 144 | |
| 145 | inline void set_update_check_count_wait_enabled(bool enabled) { |
| 146 | update_check_count_wait_enabled_ = enabled; |
| 147 | } |
| 148 | |
| 149 | inline bool update_check_count_wait_enabled() const { |
| 150 | return update_check_count_wait_enabled_; |
| 151 | } |
| 152 | |
| 153 | inline void set_min_update_checks_needed(int64 min) { |
| 154 | min_update_checks_needed_ = min; |
| 155 | } |
| 156 | inline int64 min_update_checks_needed() const { |
| 157 | return min_update_checks_needed_; |
| 158 | } |
| 159 | |
| 160 | inline void set_max_update_checks_allowed(int64 max) { |
| 161 | max_update_checks_allowed_ = max; |
| 162 | } |
| 163 | inline int64 max_update_checks_allowed() const { |
| 164 | return max_update_checks_allowed_; |
| 165 | } |
| 166 | |
| 167 | // True if we're trying to update to a more stable channel. |
| 168 | // i.e. index(target_channel) > index(current_channel). |
| 169 | bool to_more_stable_channel() const; |
Jay Srinivasan | 480ddfa | 2012-06-01 19:15:26 -0700 | [diff] [blame] | 170 | |
Darin Petkov | a4a8a8c | 2010-07-15 22:21:12 -0700 | [diff] [blame] | 171 | // Suggested defaults |
| 172 | static const char* const kAppId; |
| 173 | static const char* const kOsPlatform; |
| 174 | static const char* const kOsVersion; |
| 175 | static const char* const kUpdateUrl; |
Jay Srinivasan | ae4697c | 2013-03-18 17:08:08 -0700 | [diff] [blame] | 176 | static const char* const kUpdateChannelKey; |
| 177 | static const char* const kIsPowerwashAllowedKey; |
Jay Srinivasan | 480ddfa | 2012-06-01 19:15:26 -0700 | [diff] [blame] | 178 | static const int64 kDefaultMinUpdateChecks = 0; |
| 179 | static const int64 kDefaultMaxUpdateChecks = 8; |
Darin Petkov | a4a8a8c | 2010-07-15 22:21:12 -0700 | [diff] [blame] | 180 | |
Darin Petkov | 5a7f565 | 2010-07-22 21:40:09 -0700 | [diff] [blame] | 181 | // Initializes all the data in the object. Non-empty |
| 182 | // |in_app_version| or |in_update_url| prevents automatic detection |
| 183 | // of the parameter. Returns true on success, false otherwise. |
| 184 | bool Init(const std::string& in_app_version, |
Patrick Dubroy | 7fbbe8a | 2011-08-01 17:28:22 +0200 | [diff] [blame] | 185 | const std::string& in_update_url, |
Gilad Arnold | bbdd490 | 2013-01-10 16:06:30 -0800 | [diff] [blame] | 186 | bool in_interactive); |
Darin Petkov | a4a8a8c | 2010-07-15 22:21:12 -0700 | [diff] [blame] | 187 | |
Jay Srinivasan | ae4697c | 2013-03-18 17:08:08 -0700 | [diff] [blame] | 188 | // Permanently changes the release channel to |channel|. Performs a |
| 189 | // powerwash, if required and allowed. |
| 190 | // Returns true on success, false otherwise. Note: This call will fail if |
| 191 | // there's a channel change pending already. This is to serialize all the |
| 192 | // channel changes done by the user in order to avoid having to solve |
| 193 | // numerous edge cases around ensuring the powerwash happens as intended in |
| 194 | // all such cases. |
| 195 | bool SetTargetChannel(const std::string& channel, bool is_powerwash_allowed); |
Darin Petkov | 49d9132 | 2010-10-25 16:34:58 -0700 | [diff] [blame] | 196 | |
Jay Srinivasan | 1c0fe79 | 2013-03-28 16:45:25 -0700 | [diff] [blame] | 197 | // Updates the download channel for this particular attempt from the current |
| 198 | // value of target channel. This method takes a "snapshot" of the current |
| 199 | // value of target channel and uses it for all subsequent Omaha requests for |
| 200 | // this attempt (i.e. initial request as well as download progress/error |
| 201 | // event requests). The snapshot will be updated only when either this method |
| 202 | // or Init is called again. |
| 203 | void UpdateDownloadChannel(); |
| 204 | |
Jay Srinivasan | ae4697c | 2013-03-18 17:08:08 -0700 | [diff] [blame] | 205 | bool is_powerwash_allowed() const { return is_powerwash_allowed_; } |
Satoru Takabayashi | 583667b | 2010-10-27 13:09:57 +0900 | [diff] [blame] | 206 | |
Darin Petkov | a4a8a8c | 2010-07-15 22:21:12 -0700 | [diff] [blame] | 207 | // For unit-tests. |
Jay Srinivasan | ae4697c | 2013-03-18 17:08:08 -0700 | [diff] [blame] | 208 | void set_root(const std::string& root); |
Darin Petkov | a4a8a8c | 2010-07-15 22:21:12 -0700 | [diff] [blame] | 209 | |
Darin Petkov | 10d02dd | 2011-01-10 14:57:39 -0800 | [diff] [blame] | 210 | // Enforce security mode for testing purposes. |
| 211 | void SetLockDown(bool lock); |
Darin Petkov | 49d9132 | 2010-10-25 16:34:58 -0700 | [diff] [blame] | 212 | |
Darin Petkov | a4a8a8c | 2010-07-15 22:21:12 -0700 | [diff] [blame] | 213 | private: |
Jay Srinivasan | ae4697c | 2013-03-18 17:08:08 -0700 | [diff] [blame] | 214 | FRIEND_TEST(OmahaRequestParamsTest, IsValidChannelTest); |
| 215 | FRIEND_TEST(OmahaRequestParamsTest, ShouldLockDownTest); |
| 216 | FRIEND_TEST(OmahaRequestParamsTest, ChannelIndexTest); |
| 217 | FRIEND_TEST(OmahaRequestParamsTest, LsbPreserveTest); |
Darin Petkov | 49d9132 | 2010-10-25 16:34:58 -0700 | [diff] [blame] | 218 | |
| 219 | // Use a validator that is a non-static member of this class so that its |
Jay Srinivasan | ae4697c | 2013-03-18 17:08:08 -0700 | [diff] [blame] | 220 | // inputs can be mocked in unit tests (e.g., build type for IsValidChannel). |
| 221 | typedef bool(OmahaRequestParams::*ValueValidator)( |
Darin Petkov | 49d9132 | 2010-10-25 16:34:58 -0700 | [diff] [blame] | 222 | const std::string&) const; |
| 223 | |
Darin Petkov | 10d02dd | 2011-01-10 14:57:39 -0800 | [diff] [blame] | 224 | // Returns true if parameter values should be locked down for security |
| 225 | // reasons. If this is an official build running in normal boot mode, all |
Jay Srinivasan | ae4697c | 2013-03-18 17:08:08 -0700 | [diff] [blame] | 226 | // values except the release channel are parsed only from the read-only rootfs |
| 227 | // partition and the channel values are restricted to a pre-approved set. |
Darin Petkov | 10d02dd | 2011-01-10 14:57:39 -0800 | [diff] [blame] | 228 | bool ShouldLockDown() const; |
Darin Petkov | 49d9132 | 2010-10-25 16:34:58 -0700 | [diff] [blame] | 229 | |
Jay Srinivasan | ae4697c | 2013-03-18 17:08:08 -0700 | [diff] [blame] | 230 | // Returns true if |channel| is a valid channel, false otherwise. This method |
| 231 | // restricts the channel value only if the image is official (see |
Darin Petkov | 49d9132 | 2010-10-25 16:34:58 -0700 | [diff] [blame] | 232 | // IsOfficialBuild). |
Jay Srinivasan | ae4697c | 2013-03-18 17:08:08 -0700 | [diff] [blame] | 233 | bool IsValidChannel(const std::string& channel) const; |
| 234 | |
| 235 | // Returns the index of the given channel. |
| 236 | int GetChannelIndex(const std::string& channel) const; |
| 237 | |
| 238 | // These are individual helper methods to initialize the said properties from |
| 239 | // the LSB value. |
| 240 | void SetTargetChannelFromLsbValue(); |
| 241 | void SetCurrentChannelFromLsbValue(); |
| 242 | void SetIsPowerwashAllowedFromLsbValue(); |
| 243 | |
| 244 | // Initializes the required properties from the LSB value. |
| 245 | void InitFromLsbValue(); |
Darin Petkov | 49d9132 | 2010-10-25 16:34:58 -0700 | [diff] [blame] | 246 | |
Darin Petkov | a4a8a8c | 2010-07-15 22:21:12 -0700 | [diff] [blame] | 247 | // Fetches the value for a given key from |
Darin Petkov | a3df55b | 2010-11-15 13:33:55 -0800 | [diff] [blame] | 248 | // /mnt/stateful_partition/etc/lsb-release if possible and |stateful_override| |
| 249 | // is true. Failing that, it looks for the key in /etc/lsb-release. If |
| 250 | // |validator| is non-NULL, uses it to validate and ignore invalid valies. |
Darin Petkov | a4a8a8c | 2010-07-15 22:21:12 -0700 | [diff] [blame] | 251 | std::string GetLsbValue(const std::string& key, |
Darin Petkov | 49d9132 | 2010-10-25 16:34:58 -0700 | [diff] [blame] | 252 | const std::string& default_value, |
Darin Petkov | a3df55b | 2010-11-15 13:33:55 -0800 | [diff] [blame] | 253 | ValueValidator validator, |
| 254 | bool stateful_override) const; |
Darin Petkov | a4a8a8c | 2010-07-15 22:21:12 -0700 | [diff] [blame] | 255 | |
| 256 | // Gets the machine type (e.g. "i686"). |
| 257 | std::string GetMachineType() const; |
| 258 | |
Jay Srinivasan | ae4697c | 2013-03-18 17:08:08 -0700 | [diff] [blame] | 259 | // Global system context. |
| 260 | SystemState* system_state_; |
| 261 | |
| 262 | // Basic properties of the OS and Application that go into the Omaha request. |
| 263 | std::string os_platform_; |
| 264 | std::string os_version_; |
| 265 | std::string os_sp_; |
| 266 | std::string os_board_; |
| 267 | |
| 268 | // The app_id identifies the board except when we're on canary-channel. |
| 269 | // Whereas the board_app_id always identifies the board irrespective of the |
| 270 | // channel we are on. They are required the facilitate the switching from |
| 271 | // canary to a non-canary channel. |
| 272 | std::string app_id_; |
| 273 | std::string board_app_id_; |
| 274 | |
| 275 | std::string app_version_; |
| 276 | std::string app_lang_; |
| 277 | |
Jay Srinivasan | 1c0fe79 | 2013-03-28 16:45:25 -0700 | [diff] [blame] | 278 | // The three channel values we deal with. |
| 279 | // Current channel: is always the channel from /etc/lsb-release. It never |
| 280 | // changes. It's just read in during initialization. |
Jay Srinivasan | ae4697c | 2013-03-18 17:08:08 -0700 | [diff] [blame] | 281 | std::string current_channel_; |
Jay Srinivasan | 1c0fe79 | 2013-03-28 16:45:25 -0700 | [diff] [blame] | 282 | |
| 283 | // Target channel: It starts off with the value of current channel. But if |
| 284 | // the user changes the channel, then it'll have a different value. If the |
| 285 | // user changes multiple times, target channel will always contain the most |
| 286 | // recent change and is updated immediately to the user-selected value even |
| 287 | // if we're in the middle of a download (as opposed to download channel |
| 288 | // which gets updated only at the start of next download) |
Jay Srinivasan | ae4697c | 2013-03-18 17:08:08 -0700 | [diff] [blame] | 289 | std::string target_channel_; |
Jay Srinivasan | 1c0fe79 | 2013-03-28 16:45:25 -0700 | [diff] [blame] | 290 | |
| 291 | // The channel from which we're downloading the payload. This should normally |
| 292 | // be the same as target channel. But if the user made another channel change |
| 293 | // we started the download, then they'd be different, in which case, we'd |
| 294 | // detect elsewhere that the target channel has been changed and cancel the |
| 295 | // current download attempt. |
| 296 | std::string download_channel_; |
| 297 | |
Jay Srinivasan | ae4697c | 2013-03-18 17:08:08 -0700 | [diff] [blame] | 298 | std::string hwid_; // Hardware Qualification ID of the client |
| 299 | bool delta_okay_; // If this client can accept a delta |
| 300 | bool interactive_; // Whether this is a user-initiated update check |
| 301 | |
| 302 | // The URL to send the Omaha request to. |
| 303 | std::string update_url_; |
| 304 | |
| 305 | // True if we've been told to block updates per enterprise policy. |
| 306 | bool update_disabled_; |
| 307 | |
| 308 | // Prefix of the target OS version that the enterprise wants this device |
| 309 | // to be pinned to. It's empty otherwise. |
| 310 | std::string target_version_prefix_; |
| 311 | |
| 312 | // True if scattering is enabled, in which case waiting_period_ specifies the |
| 313 | // amount of absolute time that we've to wait for before sending a request to |
| 314 | // Omaha. |
| 315 | bool wall_clock_based_wait_enabled_; |
| 316 | base::TimeDelta waiting_period_; |
| 317 | |
| 318 | // True if scattering is enabled to denote the number of update checks |
| 319 | // we've to skip before we can send a request to Omaha. The min and max |
| 320 | // values establish the bounds for a random number to be chosen within that |
| 321 | // range to enable such a wait. |
| 322 | bool update_check_count_wait_enabled_; |
| 323 | int64 min_update_checks_needed_; |
| 324 | int64 max_update_checks_allowed_; |
| 325 | |
| 326 | // True if we are allowed to do powerwash, if required, on a channel change. |
| 327 | bool is_powerwash_allowed_; |
| 328 | |
Darin Petkov | a4a8a8c | 2010-07-15 22:21:12 -0700 | [diff] [blame] | 329 | // When reading files, prepend root_ to the paths. Useful for testing. |
| 330 | std::string root_; |
| 331 | |
Darin Petkov | 10d02dd | 2011-01-10 14:57:39 -0800 | [diff] [blame] | 332 | // Force security lock down for testing purposes. |
| 333 | bool force_lock_down_; |
| 334 | bool forced_lock_down_; |
Darin Petkov | 49d9132 | 2010-10-25 16:34:58 -0700 | [diff] [blame] | 335 | |
Jay Srinivasan | ae4697c | 2013-03-18 17:08:08 -0700 | [diff] [blame] | 336 | // TODO(jaysri): Uncomment this after fixing unit tests, as part of |
| 337 | // chromium-os:39752 |
| 338 | // DISALLOW_COPY_AND_ASSIGN(OmahaRequestParams); |
Darin Petkov | a4a8a8c | 2010-07-15 22:21:12 -0700 | [diff] [blame] | 339 | }; |
| 340 | |
| 341 | } // namespace chromeos_update_engine |
| 342 | |
| 343 | #endif // CHROMEOS_PLATFORM_UPDATE_ENGINE_OMAHA_REQUEST_PARAMS_H__ |