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

Unified Diff: third_party/WebKit/Source/core/loader/FrameFetchContext.cpp

Issue 1418003006: Simplify starting a navigation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: enum-ify Created 5 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/loader/FrameFetchContext.cpp
diff --git a/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp b/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp
index ff2440b743be8cb317de7c30c52d08a254af3a09..6630e9b8d804d65e8cf48e8f5442a477a32632c0 100644
--- a/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp
+++ b/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp
@@ -309,10 +309,13 @@ bool FrameFetchContext::shouldLoadNewResource(Resource::Type type) const
return m_documentLoader == frame()->loader().documentLoader();
}
-void FrameFetchContext::willStartLoadingResource(ResourceRequest& request)
+void FrameFetchContext::willStartLoadingResource(ResourceRequest& request, FetchResourceType type)
{
- if (m_documentLoader)
- m_documentLoader->applicationCacheHost()->willStartLoadingResource(request);
+ if (!m_documentLoader)
+ return;
+ if (type == FetchMainResource)
+ m_documentLoader->applicationCacheHost()->willStartLoadingMainResource(request);
+ m_documentLoader->applicationCacheHost()->willStartLoadingResource(request);
}
void FrameFetchContext::didLoadResource()

Powered by Google App Engine
This is Rietveld 408576698