Index: public/web/WebServiceWorkerContextClient.h |
diff --git a/public/web/WebServiceWorkerContextClient.h b/public/web/WebServiceWorkerContextClient.h |
index 70e71d11a4690efccb9fe6975ea3cea6cb24d724..6ec85acd7368828c9299cec539fa82b8275b4f34 100644 |
--- a/public/web/WebServiceWorkerContextClient.h |
+++ b/public/web/WebServiceWorkerContextClient.h |
@@ -42,6 +42,7 @@ |
namespace blink { |
struct WebCrossOriginServiceWorkerClient; |
+struct WebServiceWorkerClientQueryOptions; |
class WebDataSource; |
class WebServiceWorkerCacheStorage; |
class WebServiceWorkerContextProxy; |
@@ -153,11 +154,17 @@ public: |
// This is called on the main thread. |
virtual WebServiceWorkerProvider* createServiceWorkerProvider() { return nullptr; } |
+ // FIXME: Deprecate this version once the other getClients is implemented |
+ // in the embedder. |
+ virtual void getClients(WebServiceWorkerClientsCallbacks*) { BLINK_ASSERT_NOT_REACHED(); } |
+ |
// Ownership of the passed callbacks is transferred to the callee, callee |
// should delete the callbacks after calling either onSuccess or onError. |
// WebServiceWorkerClientsInfo and WebServiceWorkerError ownerships are |
// passed to the WebServiceWorkerClientsCallbacks implementation. |
- virtual void getClients(WebServiceWorkerClientsCallbacks*) { BLINK_ASSERT_NOT_REACHED(); } |
+ // FIXME: Remove the default implementation once this is implemented |
+ // in the embedder. |
+ virtual void getClients(const WebServiceWorkerClientQueryOptions&, WebServiceWorkerClientsCallbacks* callbacks) { getClients(callbacks); } |
// Ownership of the passed callbacks is transferred to the callee, callee |
// should delete the callbacks after calling either onSuccess or onError. |