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

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

Issue 1234023002: blink: permissions: add plumbing to revoke permissions (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 5 years, 5 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 | « Source/modules/modules.gypi ('k') | 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/PermissionQueryCallback.h b/Source/modules/permissions/PermissionCallback.h
similarity index 75%
rename from Source/modules/permissions/PermissionQueryCallback.h
rename to Source/modules/permissions/PermissionCallback.h
index c5631582b2830013d8a202ab6087091da244a758..8878cd467e2915bcc4f78d729433dbe7b7dca318 100644
--- a/Source/modules/permissions/PermissionQueryCallback.h
+++ b/Source/modules/permissions/PermissionCallback.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef PermissionQueryCallback_h
-#define PermissionQueryCallback_h
+#ifndef PermissionCallback_h
+#define PermissionCallback_h
#include "platform/heap/Handle.h"
#include "public/platform/WebCallbacks.h"
@@ -17,15 +17,15 @@ namespace blink {
class ScriptPromiseResolver;
-// PermissionQueryCallback is an implementation of WebPermissionQueryCallbacks
+// PermissionQueryCallback is an implementation of WebPermissionCallbacks
// 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 PermissionQueryCallback final
+class PermissionCallback final
: public WebCallbacks<WebPermissionStatus, void> {
public:
- explicit PermissionQueryCallback(PassRefPtr<ScriptPromiseResolver>, WebPermissionType);
- ~PermissionQueryCallback() override;
+ PermissionCallback(PassRefPtr<ScriptPromiseResolver>, WebPermissionType);
+ ~PermissionCallback() override;
void onSuccess(WebPermissionStatus*) override;
void onError() override;
@@ -34,9 +34,9 @@ private:
RefPtr<ScriptPromiseResolver> m_resolver;
WebPermissionType m_permissionType;
- WTF_MAKE_NONCOPYABLE(PermissionQueryCallback);
+ WTF_MAKE_NONCOPYABLE(PermissionCallback);
};
} // namespace blink
-#endif // PermissionQueryCallback_h
+#endif // PermissionCallback_h
« no previous file with comments | « Source/modules/modules.gypi ('k') | Source/modules/permissions/PermissionCallback.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698