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

Side by Side Diff: third_party/WebKit/Source/platform/exported/WebURLResponse.cpp

Issue 2615813003: Migrate WTF::Vector::append() to ::push_back() [part 14 of N] (Closed)
Patch Set: rebase, small fix in FontSettings.h Created 3 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 274
275 void WebURLResponse::setSecurityStyle(WebSecurityStyle securityStyle) { 275 void WebURLResponse::setSecurityStyle(WebSecurityStyle securityStyle) {
276 m_resourceResponse->setSecurityStyle( 276 m_resourceResponse->setSecurityStyle(
277 static_cast<ResourceResponse::SecurityStyle>(securityStyle)); 277 static_cast<ResourceResponse::SecurityStyle>(securityStyle));
278 } 278 }
279 279
280 void WebURLResponse::setSecurityDetails( 280 void WebURLResponse::setSecurityDetails(
281 const WebSecurityDetails& webSecurityDetails) { 281 const WebSecurityDetails& webSecurityDetails) {
282 ResourceResponse::SignedCertificateTimestampList sctList; 282 ResourceResponse::SignedCertificateTimestampList sctList;
283 for (const auto& iter : webSecurityDetails.sctList) { 283 for (const auto& iter : webSecurityDetails.sctList) {
284 sctList.append( 284 sctList.push_back(
285 static_cast<ResourceResponse::SignedCertificateTimestamp>(iter)); 285 static_cast<ResourceResponse::SignedCertificateTimestamp>(iter));
286 } 286 }
287 Vector<String> sanList; 287 Vector<String> sanList;
288 sanList.append(webSecurityDetails.sanList.data(), 288 sanList.append(webSecurityDetails.sanList.data(),
289 webSecurityDetails.sanList.size()); 289 webSecurityDetails.sanList.size());
290 Vector<AtomicString> certificate; 290 Vector<AtomicString> certificate;
291 for (const auto& iter : webSecurityDetails.certificate) { 291 for (const auto& iter : webSecurityDetails.certificate) {
292 AtomicString cert = iter; 292 AtomicString cert = iter;
293 certificate.append(cert); 293 certificate.push_back(cert);
294 } 294 }
295 m_resourceResponse->setSecurityDetails( 295 m_resourceResponse->setSecurityDetails(
296 webSecurityDetails.protocol, webSecurityDetails.keyExchange, 296 webSecurityDetails.protocol, webSecurityDetails.keyExchange,
297 webSecurityDetails.keyExchangeGroup, webSecurityDetails.cipher, 297 webSecurityDetails.keyExchangeGroup, webSecurityDetails.cipher,
298 webSecurityDetails.mac, webSecurityDetails.subjectName, sanList, 298 webSecurityDetails.mac, webSecurityDetails.subjectName, sanList,
299 webSecurityDetails.issuer, 299 webSecurityDetails.issuer,
300 static_cast<time_t>(webSecurityDetails.validFrom), 300 static_cast<time_t>(webSecurityDetails.validFrom),
301 static_cast<time_t>(webSecurityDetails.validTo), certificate, sctList); 301 static_cast<time_t>(webSecurityDetails.validTo), certificate, sctList);
302 } 302 }
303 303
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
465 m_resourceResponse->setExtraData(ExtraDataContainer::create(extraData)); 465 m_resourceResponse->setExtraData(ExtraDataContainer::create(extraData));
466 } 466 }
467 467
468 void WebURLResponse::appendRedirectResponse(const WebURLResponse& response) { 468 void WebURLResponse::appendRedirectResponse(const WebURLResponse& response) {
469 m_resourceResponse->appendRedirectResponse(response.toResourceResponse()); 469 m_resourceResponse->appendRedirectResponse(response.toResourceResponse());
470 } 470 }
471 471
472 WebURLResponse::WebURLResponse(ResourceResponse& r) : m_resourceResponse(&r) {} 472 WebURLResponse::WebURLResponse(ResourceResponse& r) : m_resourceResponse(&r) {}
473 473
474 } // namespace blink 474 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698