| Index: third_party/WebKit/public/web/modules/serviceworker/WebServiceWorkerContextClient.h
|
| diff --git a/third_party/WebKit/public/web/modules/serviceworker/WebServiceWorkerContextClient.h b/third_party/WebKit/public/web/modules/serviceworker/WebServiceWorkerContextClient.h
|
| index 013e26288bcb9e382e84d34bf36ea89ec066d4c2..67b1cc9c2edd1aac8c2aa1989da88d370aa65c06 100644
|
| --- a/third_party/WebKit/public/web/modules/serviceworker/WebServiceWorkerContextClient.h
|
| +++ b/third_party/WebKit/public/web/modules/serviceworker/WebServiceWorkerContextClient.h
|
| @@ -114,11 +114,15 @@ public:
|
| // script context.
|
| virtual void didHandleExtendableMessageEvent(int eventID, WebServiceWorkerEventResult result) { }
|
|
|
| - // 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) { }
|
| + // ServiceWorker specific methods. respondFetchEvent will be called after
|
| + // FetchEvent returns a response by the ServiceWorker's script context, and
|
| + // didHandleFetchEvent will be called after the end of FetchEvent's
|
| + // lifecycle. When no response is provided, the browser should fallback to
|
| + // native fetch. EventIDs are the same with the ids passed from
|
| + // dispatchFetchEvent respectively.
|
| + virtual void respondFetchEvent(int responseEventID) { };
|
| + virtual void respondFetchEvent(int responseEventID, const WebServiceWorkerResponse& response) { };
|
| + virtual void didHandleFetchEvent(int finishEventID, WebServiceWorkerEventResult result) { };
|
|
|
| // ServiceWorker specific method. Called after InstallEvent (dispatched
|
| // via WebServiceWorkerContextProxy) is handled by the ServiceWorker's
|
|
|