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

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

Issue 1846733004: Rename IgnoringCacheData to ValidatingCacheData (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: git cl format Created 4 years, 8 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) 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) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved. 5 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved.
6 Copyright (C) 2009 Torch Mobile Inc. http://www.torchmobile.com/ 6 Copyright (C) 2009 Torch Mobile Inc. http://www.torchmobile.com/
7 7
8 This library is free software; you can redistribute it and/or 8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Library General Public 9 modify it under the terms of the GNU Library General Public
10 License as published by the Free Software Foundation; either 10 License as published by the Free Software Foundation; either
(...skipping 678 matching lines...) Expand 10 before | Expand all | Expand 10 after
689 return Reload; 689 return Reload;
690 690
691 // Don't try to reuse an in-progress async request for a new sync request. 691 // Don't try to reuse an in-progress async request for a new sync request.
692 if (fetchRequest.options().synchronousPolicy == RequestSynchronously && exis tingResource->isLoading()) 692 if (fetchRequest.options().synchronousPolicy == RequestSynchronously && exis tingResource->isLoading())
693 return Reload; 693 return Reload;
694 694
695 // Don't reload resources while pasting. 695 // Don't reload resources while pasting.
696 if (m_allowStaleResources) 696 if (m_allowStaleResources)
697 return Use; 697 return Use;
698 698
699 if (request.getCachePolicy() == ResourceRequestCachePolicy::ReloadBypassingC ache) 699 if (request.getCachePolicy() == ResourceRequestCachePolicy::BypassingCache)
700 return Reload; 700 return Reload;
701 701
702 if (!fetchRequest.options().canReuseRequest(existingResource->options())) 702 if (!fetchRequest.options().canReuseRequest(existingResource->options()))
703 return Reload; 703 return Reload;
704 704
705 // Always use preloads. 705 // Always use preloads.
706 if (existingResource->isPreloaded()) 706 if (existingResource->isPreloaded())
707 return Use; 707 return Use;
708 708
709 // CachePolicyHistoryBuffer uses the cache no matter what. 709 // CachePolicyHistoryBuffer uses the cache no matter what.
(...skipping 483 matching lines...) Expand 10 before | Expand all | Expand 10 after
1193 visitor->trace(m_loaders); 1193 visitor->trace(m_loaders);
1194 visitor->trace(m_nonBlockingLoaders); 1194 visitor->trace(m_nonBlockingLoaders);
1195 #if ENABLE(OILPAN) 1195 #if ENABLE(OILPAN)
1196 visitor->trace(m_documentResources); 1196 visitor->trace(m_documentResources);
1197 visitor->trace(m_preloads); 1197 visitor->trace(m_preloads);
1198 visitor->trace(m_resourceTimingInfoMap); 1198 visitor->trace(m_resourceTimingInfoMap);
1199 #endif 1199 #endif
1200 } 1200 }
1201 1201
1202 } // namespace blink 1202 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698