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

Unified Diff: third_party/WebKit/public/platform/WebURLResponse.h

Issue 2684933011: M57: Add UseCounter for ServiceWorkerNavigationPreload. (Closed)
Patch Set: Created 3 years, 10 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/public/platform/WebURLResponse.h
diff --git a/third_party/WebKit/public/platform/WebURLResponse.h b/third_party/WebKit/public/platform/WebURLResponse.h
index a9a490f686434e8c686deceb21bcf61ddb75bfde..79f275de6bbc60915f80adba841667572848894e 100644
--- a/third_party/WebKit/public/platform/WebURLResponse.h
+++ b/third_party/WebKit/public/platform/WebURLResponse.h
@@ -281,6 +281,12 @@ class WebURLResponse {
BLINK_PLATFORM_EXPORT void setCorsExposedHeaderNames(
const WebVector<WebString>&);
+ // Whether service worker navigation preload occurred.
+ // See ServiceWorkerResponseInfo::did_navigation_preload() for
+ // details.
+ BLINK_PLATFORM_EXPORT bool didServiceWorkerNavigationPreload() const;
+ BLINK_PLATFORM_EXPORT void setDidServiceWorkerNavigationPreload(bool);
+
// This indicates the location of a downloaded response if the
// WebURLRequest had the downloadToFile flag set to true. This file path
// remains valid for the lifetime of the WebURLLoader used to create it.
« no previous file with comments | « third_party/WebKit/Source/platform/network/ResourceResponse.cpp ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698