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

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

Issue 2108003002: Merge //content/child/permissions into Blink's permissions module. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased. Created 4 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
Index: third_party/WebKit/Source/modules/permissions/PermissionCallback.h
diff --git a/third_party/WebKit/Source/modules/permissions/PermissionCallback.h b/third_party/WebKit/Source/modules/permissions/PermissionCallback.h
deleted file mode 100644
index f9833e8643bd82d9968a91bb3d55ec545cda1337..0000000000000000000000000000000000000000
--- a/third_party/WebKit/Source/modules/permissions/PermissionCallback.h
+++ /dev/null
@@ -1,40 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef PermissionCallback_h
-#define PermissionCallback_h
-
-#include "platform/heap/Handle.h"
-#include "public/platform/modules/permissions/WebPermissionClient.h"
-#include "public/platform/modules/permissions/WebPermissionStatus.h"
-#include "public/platform/modules/permissions/WebPermissionType.h"
-#include "wtf/Allocator.h"
-#include "wtf/Noncopyable.h"
-
-namespace blink {
-
-class ScriptPromiseResolver;
-
-// 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 PermissionCallback final : public WebPermissionCallback {
- USING_FAST_MALLOC(PermissionCallback);
- WTF_MAKE_NONCOPYABLE(PermissionCallback);
-public:
- PermissionCallback(ScriptPromiseResolver*, WebPermissionType);
- ~PermissionCallback() override;
-
- void onSuccess(WebPermissionStatus) override;
- void onError() override;
-
-private:
- Persistent<ScriptPromiseResolver> m_resolver;
- WebPermissionType m_permissionType;
-};
-
-} // namespace blink
-
-#endif // PermissionCallback_h
« no previous file with comments | « third_party/WebKit/Source/modules/modules.gypi ('k') | third_party/WebKit/Source/modules/permissions/PermissionCallback.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698