| 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 6c23aaa37881965cc8eb6feb65bb30cb20c81062..50aec0e83bf61f4d268d12c0657b3dc5020f4a61 100644
|
| --- a/third_party/WebKit/public/web/modules/serviceworker/WebServiceWorkerContextProxy.h
|
| +++ b/third_party/WebKit/public/web/modules/serviceworker/WebServiceWorkerContextProxy.h
|
| @@ -39,10 +39,13 @@
|
|
|
| namespace blink {
|
|
|
| +class WebDataConsumerHandle;
|
| class WebServiceWorkerRequest;
|
| +class WebServiceWorkerResponse;
|
| class WebString;
|
| struct WebNotificationData;
|
| struct WebServiceWorkerClientInfo;
|
| +struct WebServiceWorkerError;
|
|
|
| // A proxy interface to talk to the worker's GlobalScope implementation.
|
| // All methods of this class must be called on the worker thread.
|
| @@ -67,9 +70,9 @@ class WebServiceWorkerContextProxy {
|
| const WebMessagePortChannelArray&,
|
| std::unique_ptr<WebServiceWorker::Handle>) = 0;
|
| virtual void dispatchInstallEvent(int eventID) = 0;
|
| - virtual void dispatchFetchEvent(
|
| - int fetchEventID,
|
| - const WebServiceWorkerRequest& webRequest) = 0;
|
| + virtual void dispatchFetchEvent(int fetchEventID,
|
| + const WebServiceWorkerRequest& webRequest,
|
| + bool navigationPreloadSent) = 0;
|
| virtual void dispatchForeignFetchEvent(
|
| int fetchEventID,
|
| const WebServiceWorkerRequest& webRequest) = 0;
|
| @@ -92,6 +95,14 @@ class WebServiceWorkerContextProxy {
|
| virtual void dispatchSyncEvent(int syncEventID,
|
| const WebString& tag,
|
| LastChanceOption) = 0;
|
| +
|
| + virtual void onNavigationPreloadResponse(
|
| + int fetchEventID,
|
| + std::unique_ptr<WebServiceWorkerResponse>,
|
| + std::unique_ptr<WebDataConsumerHandle>) = 0;
|
| + virtual void onNavigationPreloadError(
|
| + int fetchEventID,
|
| + std::unique_ptr<WebServiceWorkerError>) = 0;
|
| };
|
|
|
| } // namespace blink
|
|
|