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

Unified Diff: public/web/WebServiceWorkerContextClient.h

Issue 180843003: Start to implement FetchEvent for ServiceWorker (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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: public/web/WebServiceWorkerContextClient.h
diff --git a/public/web/WebServiceWorkerContextClient.h b/public/web/WebServiceWorkerContextClient.h
index 5ab7a3881dbf3788449d840796f630f66d372564..6c1bcd3fa5442915bc16f8a400ce31f58d1afa0c 100644
--- a/public/web/WebServiceWorkerContextClient.h
+++ b/public/web/WebServiceWorkerContextClient.h
@@ -37,6 +37,7 @@ namespace blink {
class WebString;
class WebServiceWorkerContextProxy;
+struct WebServiceWorkerFetchResponse;
// This interface is implemented by the client. It is suppoed to be created
// on the main thread and then passed on to the worker thread to be owned
@@ -77,6 +78,10 @@ public:
// via WebServiceWorkerContextProxy) is handled by the ServiceWorker's
// script context.
virtual void didHandleInstallEvent(int installEventID) { }
+
+ // ServiceWorker specific method. Called after FetchEvent is handled by the
+ // ServiceWorker's script context.
+ virtual void didHandleFetchEvent(int fetchEventID, const WebServiceWorkerFetchResponse& response) { }
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698