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

Unified Diff: Source/core/loader/DocumentThreadableLoader.h

Issue 600393004: [ServiceWorker] Set FetchRequestMode and handle wasFetchedViaServiceWorker. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: add setFetchCredentialsMode in PingLoader::PingLoader() Created 6 years, 2 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
Index: Source/core/loader/DocumentThreadableLoader.h
diff --git a/Source/core/loader/DocumentThreadableLoader.h b/Source/core/loader/DocumentThreadableLoader.h
index 101b280c37f00e46860e2d3b9100c7f982a22167..f923d97ba4f9d9dd5648a9cf9c4b93352d2e38e9 100644
--- a/Source/core/loader/DocumentThreadableLoader.h
+++ b/Source/core/loader/DocumentThreadableLoader.h
@@ -92,6 +92,8 @@ class DocumentThreadableLoader FINAL : public ThreadableLoader, private Resource
void didTimeout(Timer<DocumentThreadableLoader>*);
void makeCrossOriginAccessRequest(const ResourceRequest&);
+ // Loads m_fallbackRequest.
+ void loadFallbackRequest();
// Loads m_actualRequest.
void loadActualRequest();
// Clears m_actualRequest and reports access control check failure to
@@ -127,6 +129,8 @@ class DocumentThreadableLoader FINAL : public ThreadableLoader, private Resource
bool m_simpleRequest;
bool m_async;
+ // Holds the original request for fallback of fetching via the ServiceWorker.
yhirano 2014/10/07 08:03:15 Please wrap this comment in 80 columns.
horo 2014/10/08 02:34:56 Done.
+ OwnPtr<ResourceRequest> m_fallbackRequest;
// Holds the original request and options for it during preflight
// request handling phase.
OwnPtr<ResourceRequest> m_actualRequest;

Powered by Google App Engine
This is Rietveld 408576698