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

Unified Diff: third_party/WebKit/Source/platform/loader/fetch/ResourceFetcher.h

Issue 2797423003: Remove ResourceFetcher::preloads (Closed)
Patch Set: fix Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/core/loader/resource/LinkPreloadResourceClients.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/loader/fetch/ResourceFetcher.h
diff --git a/third_party/WebKit/Source/platform/loader/fetch/ResourceFetcher.h b/third_party/WebKit/Source/platform/loader/fetch/ResourceFetcher.h
index a06b44a863689b26cb86bc50e0f81d909a245cca..46aef1ee140a52efcfd1350d487841c78d6eb72b 100644
--- a/third_party/WebKit/Source/platform/loader/fetch/ResourceFetcher.h
+++ b/third_party/WebKit/Source/platform/loader/fetch/ResourceFetcher.h
@@ -139,8 +139,9 @@ class PLATFORM_EXPORT ResourceFetcher
// Calling this method before main document resource is fetched is invalid.
ResourceTimingInfo* getNavigationTimingInfo();
- // This is only exposed for testing purposes.
- HeapListHashSet<Member<Resource>>* preloads() { return m_preloads.get(); }
+ bool containsAsPreloadForTesting(Resource* resource) const {
+ return m_preloads && m_preloads->contains(resource);
+ }
// Workaround for https://crbug.com/666214.
// TODO(hiroshige): Remove this hack.
« no previous file with comments | « third_party/WebKit/Source/core/loader/resource/LinkPreloadResourceClients.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698