[PEPC] PermissionPromptFactory creates EmbeddedPermissionPrompt
Create an EmbeddedPermissionPrompt (instead of a normal one) for prompts
triggered by the user clicking on the embedded permission element.
Partial implementation as part of the PEPC project (see bug), the cl
creating the prompt view will follow.
Bug: 1462930
Change-Id: Iae13acba455fbdfd429644ed7e57cc8e9300b113
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4826903
Commit-Queue: Kamila Hasanbega <[email protected]>
Reviewed-by: Elias Klim <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1191252}
diff --git a/components/permissions/permission_request.h b/components/permissions/permission_request.h
index fc564839..ccc2201 100644
--- a/components/permissions/permission_request.h
+++ b/components/permissions/permission_request.h
@@ -116,6 +116,10 @@
virtual std::u16string GetMessageTextFragment() const;
#endif
+ // Whether the request was initiated by the user clicking on the permission
+ // element.
+ bool IsEmbeddedPermissionElementInitiated() const;
+
// Returns true if the request has two origins and should use the two origin
// prompt. Returns false otherwise.
bool ShouldUseTwoOriginPrompt() const;