summaryrefslogtreecommitdiffstats
path: root/src/core/file_system_access/file_system_access_permission_grant_qt.h
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2022-09-15 17:08:33 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2022-11-28 13:32:48 +0100
commit2d002e42a8b6e711e3c9ca5b6dd3611e9d8426ab (patch)
tree2da22e8e37770c245be1f72f1c454a9c798b8db4 /src/core/file_system_access/file_system_access_permission_grant_qt.h
parent4aa1690516fe76630a7cbb4816f56f0da081c596 (diff)
Adaptations for 104-based
Change-Id: Ieb44b5c98b3342adca38916d8b77c54e8ed8e1d7 Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu> Reviewed-by: Michal Klocek <michal.klocek@qt.io>
Diffstat (limited to 'src/core/file_system_access/file_system_access_permission_grant_qt.h')
-rw-r--r--src/core/file_system_access/file_system_access_permission_grant_qt.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/core/file_system_access/file_system_access_permission_grant_qt.h b/src/core/file_system_access/file_system_access_permission_grant_qt.h
index a54b2a3d3..1984b8f2c 100644
--- a/src/core/file_system_access/file_system_access_permission_grant_qt.h
+++ b/src/core/file_system_access/file_system_access_permission_grant_qt.h
@@ -14,8 +14,6 @@ namespace QtWebEngineCore {
using HandleType = content::FileSystemAccessPermissionContext::HandleType;
using GrantType = FileSystemAccessPermissionContextQt::GrantType;
-using blink::mojom::PermissionStatus;
-using permissions::PermissionAction;
class FileSystemAccessPermissionGrantQt : public content::FileSystemAccessPermissionGrant
{
@@ -25,7 +23,7 @@ public:
HandleType handle_type, GrantType type);
// content::FileSystemAccessPermissionGrant:
- PermissionStatus GetStatus() override { return m_status; }
+ blink::mojom::PermissionStatus GetStatus() override { return m_status; }
base::FilePath GetPath() override { return m_path; }
void RequestPermission(content::GlobalRenderFrameHostId frame_id,
UserActivationState user_activation_state,
@@ -36,11 +34,11 @@ public:
const base::FilePath &path() const { return m_path; }
GrantType type() const { return m_type; }
- void SetStatus(PermissionStatus status);
+ void SetStatus(blink::mojom::PermissionStatus status);
private:
void OnPermissionRequestResult(base::OnceCallback<void(PermissionRequestOutcome)> callback,
- PermissionAction result);
+ permissions::PermissionAction result);
base::WeakPtr<FileSystemAccessPermissionContextQt> const m_context;
const url::Origin m_origin;
@@ -50,7 +48,7 @@ private:
// This member should only be updated via SetStatus(), to make sure
// observers are properly notified about any change in status.
- PermissionStatus m_status = PermissionStatus::ASK;
+ blink::mojom::PermissionStatus m_status = blink::mojom::PermissionStatus::ASK;
};
} // namespace QtWebEngineCore