| Index: third_party/WebKit/public/platform/modules/serviceworker/WebServiceWorkerNetworkProvider.h
|
| diff --git a/third_party/WebKit/public/web/modules/serviceworker/WebServiceWorkerNetworkProvider.h b/third_party/WebKit/public/platform/modules/serviceworker/WebServiceWorkerNetworkProvider.h
|
| similarity index 90%
|
| rename from third_party/WebKit/public/web/modules/serviceworker/WebServiceWorkerNetworkProvider.h
|
| rename to third_party/WebKit/public/platform/modules/serviceworker/WebServiceWorkerNetworkProvider.h
|
| index 7e5c111bc2c6568738139fbecb81212f8993b6ed..b17563e9c0fb46a3e433e0c1c35003b430ba14bf 100644
|
| --- a/third_party/WebKit/public/web/modules/serviceworker/WebServiceWorkerNetworkProvider.h
|
| +++ b/third_party/WebKit/public/platform/modules/serviceworker/WebServiceWorkerNetworkProvider.h
|
| @@ -33,13 +33,15 @@
|
|
|
| namespace blink {
|
|
|
| -class WebDataSource;
|
| class WebURLRequest;
|
|
|
| // This interface is implemented by the client and is only called on the main
|
| // thread. Used by ServiceWorker and SharedWorker. isControlledByServiceWorker()
|
| // and serviceWorkerID() are to be implemented only by SharedWorker's provider,
|
| // as they are needed only for controllee workers.
|
| +//
|
| +// An instance of this class is owned by the associated loading context, e.g.
|
| +// DocumentLoader.
|
| class WebServiceWorkerNetworkProvider {
|
| public:
|
| virtual ~WebServiceWorkerNetworkProvider() {}
|
| @@ -47,15 +49,15 @@ class WebServiceWorkerNetworkProvider {
|
| // A request is about to be sent out, and the client may modify it. Request
|
| // is writable, and changes to the URL, for example, will change the request
|
| // made.
|
| - virtual void willSendRequest(WebDataSource*, WebURLRequest&) {}
|
| + virtual void willSendRequest(WebURLRequest&) {}
|
|
|
| // Whether the document associated with WebDataSource is controlled by the
|
| // ServiceWorker.
|
| - virtual bool isControlledByServiceWorker(WebDataSource&) { return false; }
|
| + virtual bool isControlledByServiceWorker() { return false; }
|
|
|
| // Returns an identifier of the service worker controlling the document
|
| // associated with the WebDataSource.
|
| - virtual int64_t serviceWorkerID(WebDataSource&) { return -1; }
|
| + virtual int64_t serviceWorkerID() { return -1; }
|
| };
|
|
|
| } // namespace blink
|
|
|