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

Unified Diff: third_party/WebKit/Source/platform/network/ResourceResponse.h

Issue 2235543002: Keep track of how many documents had a resource intercepted by foreign fetch. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 4 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: third_party/WebKit/Source/platform/network/ResourceResponse.h
diff --git a/third_party/WebKit/Source/platform/network/ResourceResponse.h b/third_party/WebKit/Source/platform/network/ResourceResponse.h
index 8202fa3eae0ae4507f2a674c9e3ba47fa9f49307..f98a6e7e75b61ef311b3b061a2643ad1d057aaf6 100644
--- a/third_party/WebKit/Source/platform/network/ResourceResponse.h
+++ b/third_party/WebKit/Source/platform/network/ResourceResponse.h
@@ -241,6 +241,9 @@ public:
bool wasFetchedViaServiceWorker() const { return m_wasFetchedViaServiceWorker; }
void setWasFetchedViaServiceWorker(bool value) { m_wasFetchedViaServiceWorker = value; }
+ bool wasFetchedViaForeignFetch() const { return m_wasFetchedViaForeignFetch; }
+ void setWasFetchedViaForeignFetch(bool value) { m_wasFetchedViaForeignFetch = value; }
+
bool wasFallbackRequiredByServiceWorker() const { return m_wasFallbackRequiredByServiceWorker; }
void setWasFallbackRequiredByServiceWorker(bool value) { m_wasFallbackRequiredByServiceWorker = value; }
@@ -378,6 +381,9 @@ private:
// Was the resource fetched over a ServiceWorker.
bool m_wasFetchedViaServiceWorker;
+ // Was the resource fetched using a foreign fetch service worker.
+ bool m_wasFetchedViaForeignFetch;
+
// Was the fallback request with skip service worker flag required.
bool m_wasFallbackRequiredByServiceWorker;
@@ -454,6 +460,7 @@ public:
bool m_wasAlternateProtocolAvailable;
bool m_wasFetchedViaProxy;
bool m_wasFetchedViaServiceWorker;
+ bool m_wasFetchedViaForeignFetch;
bool m_wasFallbackRequiredByServiceWorker;
WebServiceWorkerResponseType m_serviceWorkerResponseType;
KURL m_originalURLViaServiceWorker;

Powered by Google App Engine
This is Rietveld 408576698