diff options
Diffstat (limited to 'chromium/third_party/blink/renderer/core/html/portal/html_portal_element.h')
-rw-r--r-- | chromium/third_party/blink/renderer/core/html/portal/html_portal_element.h | 27 |
1 files changed, 17 insertions, 10 deletions
diff --git a/chromium/third_party/blink/renderer/core/html/portal/html_portal_element.h b/chromium/third_party/blink/renderer/core/html/portal/html_portal_element.h index 296f102267d..32fb107579b 100644 --- a/chromium/third_party/blink/renderer/core/html/portal/html_portal_element.h +++ b/chromium/third_party/blink/renderer/core/html/portal/html_portal_element.h @@ -6,7 +6,9 @@ #define THIRD_PARTY_BLINK_RENDERER_CORE_HTML_PORTAL_HTML_PORTAL_ELEMENT_H_ #include "base/unguessable_token.h" -#include "mojo/public/cpp/bindings/associated_binding.h" +#include "mojo/public/cpp/bindings/associated_receiver.h" +#include "mojo/public/cpp/bindings/associated_remote.h" +#include "mojo/public/cpp/bindings/pending_associated_receiver.h" #include "third_party/blink/public/mojom/portal/portal.mojom-blink.h" #include "third_party/blink/renderer/bindings/core/v8/script_promise.h" #include "third_party/blink/renderer/core/core_export.h" @@ -33,9 +35,9 @@ class CORE_EXPORT HTMLPortalElement : public HTMLFrameOwnerElement, explicit HTMLPortalElement( Document& document, const base::UnguessableToken& portal_token = base::UnguessableToken(), - mojom::blink::PortalAssociatedPtr portal_ptr = nullptr, - mojom::blink::PortalClientAssociatedRequest portal_client_request = - nullptr); + mojo::AssociatedRemote<mojom::blink::Portal> remote_portal = {}, + mojo::PendingAssociatedReceiver<mojom::blink::PortalClient> + portal_client_receiver = {}); ~HTMLPortalElement() override; // ScriptWrappable overrides. @@ -72,15 +74,15 @@ class CORE_EXPORT HTMLPortalElement : public HTMLFrameOwnerElement, bool IsActivating() { return is_activating_; } - private: - // Navigates the portal to |url_|. - void Navigate(); - // Consumes the portal interface. When a Portal is activated, or if the // renderer receives a connection error, this function will gracefully // terminate the portal interface. void ConsumePortal(); + private: + // Navigates the portal to |url_|. + void Navigate(); + // Node overrides InsertionNotificationRequest InsertedInto(ContainerNode&) override; void RemovedFrom(ContainerNode&) override; @@ -91,10 +93,12 @@ class CORE_EXPORT HTMLPortalElement : public HTMLFrameOwnerElement, LayoutObject* CreateLayoutObject(const ComputedStyle&, LegacyLayout) override; // HTMLFrameOwnerElement overrides + void DisconnectContentFrame() override; ParsedFeaturePolicy ConstructContainerPolicy(Vector<String>*) const override { return ParsedFeaturePolicy(); } void AttachLayoutTree(AttachContext& context) override; + network::mojom::ReferrerPolicy ReferrerPolicyAttribute() override; // Uniquely identifies the portal, this token is used by the browser process // to reference this portal when communicating with the renderer. @@ -106,8 +110,11 @@ class CORE_EXPORT HTMLPortalElement : public HTMLFrameOwnerElement, // right before the promise returned by activate() is resolved or rejected. bool is_activating_ = false; - mojom::blink::PortalAssociatedPtr portal_ptr_; - mojo::AssociatedBinding<mojom::blink::PortalClient> portal_client_binding_; + network::mojom::ReferrerPolicy referrer_policy_ = + network::mojom::ReferrerPolicy::kDefault; + + mojo::AssociatedRemote<mojom::blink::Portal> remote_portal_; + mojo::AssociatedReceiver<mojom::blink::PortalClient> portal_client_receiver_; }; } // namespace blink |