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

Unified Diff: third_party/WebKit/public/platform/modules/serviceworker/WebServiceWorkerRegistration.h

Issue 2451373003: service worker: Implement NavigationPreloadManager.setHeaderValue (Closed)
Patch Set: rebase Created 4 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/public/platform/modules/serviceworker/WebServiceWorkerRegistration.h
diff --git a/third_party/WebKit/public/platform/modules/serviceworker/WebServiceWorkerRegistration.h b/third_party/WebKit/public/platform/modules/serviceworker/WebServiceWorkerRegistration.h
index 980fa38bdd991732220755652a3079a7bbad168b..b8f755021d703f64c2c1d15935f23dc2ab851d60 100644
--- a/third_party/WebKit/public/platform/modules/serviceworker/WebServiceWorkerRegistration.h
+++ b/third_party/WebKit/public/platform/modules/serviceworker/WebServiceWorkerRegistration.h
@@ -32,6 +32,8 @@ class WebServiceWorkerRegistration {
using WebGetNavigationPreloadStateCallbacks =
WebCallbacks<const WebNavigationPreloadState&,
const WebServiceWorkerError&>;
+ using WebSetNavigationPreloadHeaderCallbacks =
+ WebCallbacks<void, const WebServiceWorkerError&>;
// The handle interface that retains a reference to the implementation of
// WebServiceWorkerRegistration in the embedder and is owned by
@@ -60,6 +62,10 @@ class WebServiceWorkerRegistration {
virtual void getNavigationPreloadState(
WebServiceWorkerProvider*,
std::unique_ptr<WebGetNavigationPreloadStateCallbacks>) {}
+ virtual void setNavigationPreloadHeader(
+ const WebString& value,
+ WebServiceWorkerProvider*,
+ std::unique_ptr<WebSetNavigationPreloadHeaderCallbacks>) {}
};
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/modules/serviceworkers/NavigationPreloadManager.cpp ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698