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

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

Issue 2443103002: service worker: Implement NavigationPreloadManager.getState (Closed)
Patch Set: rm file added in bad merge Created 4 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: 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 fe5ba1b332179e13ce47b84d58dfcf2780685a04..980fa38bdd991732220755652a3079a7bbad168b 100644
--- a/third_party/WebKit/public/platform/modules/serviceworker/WebServiceWorkerRegistration.h
+++ b/third_party/WebKit/public/platform/modules/serviceworker/WebServiceWorkerRegistration.h
@@ -13,6 +13,7 @@ namespace blink {
class WebServiceWorkerProvider;
class WebServiceWorkerRegistrationProxy;
+struct WebNavigationPreloadState;
// The interface of the registration representation in the embedder. The
// embedder implements this interface and passes its handle
@@ -28,6 +29,9 @@ class WebServiceWorkerRegistration {
WebCallbacks<bool, const WebServiceWorkerError&>;
using WebEnableNavigationPreloadCallbacks =
WebCallbacks<void, const WebServiceWorkerError&>;
+ using WebGetNavigationPreloadStateCallbacks =
+ WebCallbacks<const WebNavigationPreloadState&,
+ const WebServiceWorkerError&>;
// The handle interface that retains a reference to the implementation of
// WebServiceWorkerRegistration in the embedder and is owned by
@@ -53,6 +57,9 @@ class WebServiceWorkerRegistration {
bool enable,
WebServiceWorkerProvider*,
std::unique_ptr<WebEnableNavigationPreloadCallbacks>) {}
+ virtual void getNavigationPreloadState(
+ WebServiceWorkerProvider*,
+ std::unique_ptr<WebGetNavigationPreloadStateCallbacks>) {}
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698