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

Unified Diff: public/web/WebServiceWorkerContextClient.h

Issue 868463004: ServiceWorker: add ServiceWorkerClients.claim() support (1/3). (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 5 years, 11 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 | « public/platform/WebServiceWorkerError.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/web/WebServiceWorkerContextClient.h
diff --git a/public/web/WebServiceWorkerContextClient.h b/public/web/WebServiceWorkerContextClient.h
index 4d63b8389a3e08ce6126c4a024de8e134b12f7db..3118298353c941e36cefc1a0c056dbef52a4bd25 100644
--- a/public/web/WebServiceWorkerContextClient.h
+++ b/public/web/WebServiceWorkerContextClient.h
@@ -34,6 +34,7 @@
#include "WebWorkerPermissionClientProxy.h"
#include "public/platform/WebMessagePortChannel.h"
#include "public/platform/WebServiceWorkerClientFocusCallback.h"
+#include "public/platform/WebServiceWorkerClientsClaimCallbacks.h"
#include "public/platform/WebServiceWorkerClientsInfo.h"
#include "public/platform/WebServiceWorkerEventResult.h"
#include "public/platform/WebServiceWorkerSkipWaitingCallbacks.h"
@@ -166,6 +167,10 @@ public:
virtual void skipWaiting(WebServiceWorkerSkipWaitingCallbacks*) { BLINK_ASSERT_NOT_REACHED(); }
// Ownership of the passed callbacks is transferred to the callee, callee
+ // should delete the callbacks after run.
+ virtual void claim(WebServiceWorkerClientsClaimCallbacks*) { BLINK_ASSERT_NOT_REACHED(); }
+
+ // Ownership of the passed callbacks is transferred to the callee, callee
// should delete the callback after calling either onSuccess or onError.
virtual void focus(int clientID, WebServiceWorkerClientFocusCallback* callback)
{
« no previous file with comments | « public/platform/WebServiceWorkerError.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698