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

Unified Diff: third_party/WebKit/public/platform/modules/serviceworker/WebServiceWorkerNetworkProvider.h

Issue 2733283004: Expose WebServiceWorkerNetworkProvider on DataSource (Closed)
Patch Set: consistency Created 3 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 | « third_party/WebKit/public/BUILD.gn ('k') | third_party/WebKit/public/web/WebDataSource.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « third_party/WebKit/public/BUILD.gn ('k') | third_party/WebKit/public/web/WebDataSource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698