• Home
  • Raw
  • Download

Lines Matching refs:headers

147   std::map<string, string> headers;  in ApplyPayload()  local
156 if (!headers.emplace(key, value).second) in ApplyPayload()
162 string payload_id = (headers[kPayloadPropertyFileHash] + in ApplyPayload()
163 headers[kPayloadPropertyMetadataHash]); in ApplyPayload()
174 if (!base::StringToUint64(headers[kPayloadPropertyFileSize], in ApplyPayload()
179 if (!brillo::data_encoding::Base64Decode(headers[kPayloadPropertyFileHash], in ApplyPayload()
182 << headers[kPayloadPropertyFileHash]; in ApplyPayload()
184 if (!base::StringToUint64(headers[kPayloadPropertyMetadataSize], in ApplyPayload()
210 GetHeaderAsBool(headers[kPayloadPropertyPowerwash], false); in ApplyPayload()
213 GetHeaderAsBool(headers[kPayloadPropertySwitchSlotOnReboot], true); in ApplyPayload()
226 GetHeaderAsBool(headers[kPayloadPropertyRunPostInstall], true); in ApplyPayload()
241 if (!headers[kPayloadPropertyNetworkId].empty()) { in ApplyPayload()
242 if (!base::StringToUint64(headers[kPayloadPropertyNetworkId], in ApplyPayload()
247 "Invalid network_id: " + headers[kPayloadPropertyNetworkId]); in ApplyPayload()
253 "Unable to set network_id: " + headers[kPayloadPropertyNetworkId]); in ApplyPayload()
275 if (!headers[kPayloadPropertyAuthorization].empty()) in ApplyPayload()
276 fetcher->SetHeader("Authorization", headers[kPayloadPropertyAuthorization]); in ApplyPayload()
277 if (!headers[kPayloadPropertyUserAgent].empty()) in ApplyPayload()
278 fetcher->SetHeader("User-Agent", headers[kPayloadPropertyUserAgent]); in ApplyPayload()