Index: Source/modules/permissions/PermissionCallback.h |
diff --git a/Source/modules/permissions/PermissionCallback.h b/Source/modules/permissions/PermissionCallback.h |
index a5d1daaf06e1f1cf655676843bac52111759b65e..5057fed3f5987ee6c72a3aeaba30ace068cf6676 100644 |
--- a/Source/modules/permissions/PermissionCallback.h |
+++ b/Source/modules/permissions/PermissionCallback.h |
@@ -6,7 +6,7 @@ |
#define PermissionCallback_h |
#include "platform/heap/Handle.h" |
-#include "public/platform/WebCallbacks.h" |
+#include "public/platform/modules/permissions/WebPermissionClient.h" |
#include "public/platform/modules/permissions/WebPermissionStatus.h" |
#include "public/platform/modules/permissions/WebPermissionType.h" |
#include "wtf/Noncopyable.h" |
@@ -19,13 +19,12 @@ class ScriptPromiseResolver; |
// that will resolve the underlying promise depending on the result passed to |
// the callback. It takes a WebPermissionType in its constructor and will pass |
// it to the PermissionStatus. |
-class PermissionCallback final |
- : public WebCallbacks<WebPermissionStatus*, void> { |
+class PermissionCallback final : public WebPermissionCallback { |
public: |
PermissionCallback(ScriptPromiseResolver*, WebPermissionType); |
~PermissionCallback() override; |
- void onSuccess(WebPermissionStatus*) override; |
+ void onSuccess(WebPermissionStatus) override; |
void onError() override; |
private: |