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

Unified Diff: third_party/WebKit/public/web/modules/serviceworker/WebServiceWorkerContextClient.h

Issue 2517223002: Move content/renderer/background_sync to Blink (Closed)
Patch Set: Fix broken WebEmbeddedWorker test Created 4 years, 1 month 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
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 cdf5b2b5b74ba580b2f5e83b18f9ba7b9bcb1df5..c1431c2c5d2ee57233eb7218629e3bfe4b5da403 100644
--- a/third_party/WebKit/public/web/modules/serviceworker/WebServiceWorkerContextClient.h
+++ b/third_party/WebKit/public/web/modules/serviceworker/WebServiceWorkerContextClient.h
@@ -50,6 +50,7 @@ class WebServiceWorkerNetworkProvider;
class WebServiceWorkerProvider;
class WebServiceWorkerResponse;
class WebString;
+class InterfaceRegistry;
// This interface is implemented by the client. It is supposed to be created
// on the main thread and then passed on to the worker thread by a newly
@@ -182,13 +183,6 @@ class WebServiceWorkerContextClient {
WebServiceWorkerEventResult result,
double eventDispatchTime) {}
- // ServiceWorker specific method. Called after SyncEvent (dispatched via
- // WebServiceWorkerContextProxy) is handled by the ServiceWorker's script
- // context.
- virtual void didHandleSyncEvent(int syncEventID,
- WebServiceWorkerEventResult result,
- double eventDispatchTime) {}
-
// Ownership of the returned object is transferred to the caller.
// This is called on the main thread.
virtual WebServiceWorkerNetworkProvider* createServiceWorkerNetworkProvider(
@@ -269,6 +263,8 @@ class WebServiceWorkerContextClient {
virtual void registerForeignFetchScopes(
const WebVector<WebURL>& subScopes,
const WebVector<WebSecurityOrigin>& origins) = 0;
+
+ virtual InterfaceRegistry* interfaceRegistry() { return nullptr; }
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698