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

Unified Diff: third_party/WebKit/public/web/modules/serviceworker/WebServiceWorkerContextProxy.h

Issue 2748213003: Service Worker event dispatcher for Background Fetch (Closed)
Patch Set: Service Worker event dispatcher for Background Fetch Created 3 years, 9 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/web/modules/serviceworker/WebServiceWorkerContextProxy.h
diff --git a/third_party/WebKit/public/web/modules/serviceworker/WebServiceWorkerContextProxy.h b/third_party/WebKit/public/web/modules/serviceworker/WebServiceWorkerContextProxy.h
index 8fbd8d071fff13e0ceb9bfb8fa38ae08f938c263..d4d5a08ca46e64ace62122f2d4b01df051a12f40 100644
--- a/third_party/WebKit/public/web/modules/serviceworker/WebServiceWorkerContextProxy.h
+++ b/third_party/WebKit/public/web/modules/serviceworker/WebServiceWorkerContextProxy.h
@@ -58,6 +58,16 @@ class WebServiceWorkerContextProxy {
std::unique_ptr<WebServiceWorkerRegistration::Handle>) = 0;
virtual void dispatchActivateEvent(int eventID) = 0;
+
+ enum class BackgroundFetchState { Pending, Succeeded, Failed };
+
+ virtual void dispatchBackgroundFetchAbortEvent(int eventID,
+ const WebString& tag) = 0;
+ virtual void dispatchBackgroundFetchClickEvent(
+ int eventID,
+ const WebString& tag,
+ BackgroundFetchState status) = 0;
+
virtual void dispatchExtendableMessageEvent(
int eventID,
const WebString& message,

Powered by Google App Engine
This is Rietveld 408576698