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

Unified Diff: public/web/WebServiceWorkerContextClient.h

Issue 185423005: Add more plumbing for FetchEvent including WebServiceWorkerResponse (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: BLINK_EXPORT -> BLINK_PLATFORM_EXPORT Created 6 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
« no previous file with comments | « public/platform/WebServiceWorkerResponse.h ('k') | public/web/WebServiceWorkerContextProxy.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/web/WebServiceWorkerContextClient.h
diff --git a/public/web/WebServiceWorkerContextClient.h b/public/web/WebServiceWorkerContextClient.h
index 5ab7a3881dbf3788449d840796f630f66d372564..d0c87b41664bb2668748feb73ccfd059e84e5c05 100644
--- a/public/web/WebServiceWorkerContextClient.h
+++ b/public/web/WebServiceWorkerContextClient.h
@@ -37,6 +37,7 @@ namespace blink {
class WebString;
class WebServiceWorkerContextProxy;
+class WebServiceWorkerResponse;
// 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,12 @@ public:
// via WebServiceWorkerContextProxy) is handled by the ServiceWorker's
// script context.
virtual void didHandleInstallEvent(int installEventID) { }
+
+ // ServiceWorker specific methods. Called after FetchEvent is handled by the
+ // ServiceWorker's script context. When no response is provided, the browser
+ // should fallback to native fetch.
+ virtual void didHandleFetchEvent(int fetchEventID) { }
+ virtual void didHandleFetchEvent(int fetchEventID, const WebServiceWorkerResponse& response) { }
};
} // namespace blink
« no previous file with comments | « public/platform/WebServiceWorkerResponse.h ('k') | public/web/WebServiceWorkerContextProxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698