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

Unified Diff: Source/modules/permissions/PermissionCallback.h

Issue 1317243002: [VR, Permission] Use appopriate type parameters for WebCallbacks (1/3) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 4 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 | « no previous file | Source/modules/permissions/PermissionCallback.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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:
« no previous file with comments | « no previous file | Source/modules/permissions/PermissionCallback.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698