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

Side by Side Diff: third_party/WebKit/Source/core/fetch/Resource.cpp

Issue 2502413004: WTF/std normalization: replace WTF::Vector::last with ::back (Closed)
Patch Set: rebase Created 4 years, 1 month 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) 1998 Lars Knoll (knoll@mpi-hd.mpg.de) 2 Copyright (C) 1998 Lars Knoll (knoll@mpi-hd.mpg.de)
3 Copyright (C) 2001 Dirk Mueller (mueller@kde.org) 3 Copyright (C) 2001 Dirk Mueller (mueller@kde.org)
4 Copyright (C) 2002 Waldo Bastian (bastian@kde.org) 4 Copyright (C) 2002 Waldo Bastian (bastian@kde.org)
5 Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com) 5 Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com)
6 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All 6 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All
7 rights reserved. 7 rights reserved.
8 8
9 This library is free software; you can redistribute it and/or 9 This library is free software; you can redistribute it and/or
10 modify it under the terms of the GNU Library General Public 10 modify it under the terms of the GNU Library General Public
(...skipping 548 matching lines...) Expand 10 before | Expand all | Expand 10 after
559 return false; 559 return false;
560 } 560 }
561 561
562 return currentAge(response, responseTimestamp) <= 562 return currentAge(response, responseTimestamp) <=
563 freshnessLifetime(response, responseTimestamp); 563 freshnessLifetime(response, responseTimestamp);
564 } 564 }
565 565
566 const ResourceRequest& Resource::lastResourceRequest() const { 566 const ResourceRequest& Resource::lastResourceRequest() const {
567 if (!m_redirectChain.size()) 567 if (!m_redirectChain.size())
568 return m_resourceRequest; 568 return m_resourceRequest;
569 return m_redirectChain.last().m_request; 569 return m_redirectChain.back().m_request;
570 } 570 }
571 571
572 void Resource::setRevalidatingRequest(const ResourceRequest& request) { 572 void Resource::setRevalidatingRequest(const ResourceRequest& request) {
573 SECURITY_CHECK(m_redirectChain.isEmpty()); 573 SECURITY_CHECK(m_redirectChain.isEmpty());
574 DCHECK(!request.isNull()); 574 DCHECK(!request.isNull());
575 m_isRevalidating = true; 575 m_isRevalidating = true;
576 m_resourceRequest = request; 576 m_resourceRequest = request;
577 m_status = NotStarted; 577 m_status = NotStarted;
578 } 578 }
579 579
(...skipping 524 matching lines...) Expand 10 before | Expand all | Expand 10 after
1104 case Resource::TextTrack: 1104 case Resource::TextTrack:
1105 case Resource::Media: 1105 case Resource::Media:
1106 case Resource::Manifest: 1106 case Resource::Manifest:
1107 return false; 1107 return false;
1108 } 1108 }
1109 NOTREACHED(); 1109 NOTREACHED();
1110 return false; 1110 return false;
1111 } 1111 }
1112 1112
1113 } // namespace blink 1113 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698