| Index: content/renderer/render_frame_impl.h
|
| diff --git a/content/renderer/render_frame_impl.h b/content/renderer/render_frame_impl.h
|
| index 9ef5208a349d94a75192fbafd43183aec352d68a..356ac452ed7664062ac311e1303f4cd499a0bb0e 100644
|
| --- a/content/renderer/render_frame_impl.h
|
| +++ b/content/renderer/render_frame_impl.h
|
| @@ -54,6 +54,7 @@
|
| #include "third_party/WebKit/public/platform/WebLoadingBehaviorFlag.h"
|
| #include "third_party/WebKit/public/platform/WebMediaPlayer.h"
|
| #include "third_party/WebKit/public/platform/WebPageVisibilityState.h"
|
| +#include "third_party/WebKit/public/platform/site_engagement.mojom.h"
|
| #include "third_party/WebKit/public/web/WebAXObject.h"
|
| #include "third_party/WebKit/public/web/WebDataSource.h"
|
| #include "third_party/WebKit/public/web/WebFrameClient.h"
|
| @@ -167,6 +168,7 @@ class CreateFrameWidgetParams;
|
|
|
| class CONTENT_EXPORT RenderFrameImpl
|
| : public RenderFrame,
|
| + NON_EXPORTED_BASE(blink::mojom::EngagementClient),
|
| NON_EXPORTED_BASE(mojom::Frame),
|
| NON_EXPORTED_BASE(mojom::HostZoom),
|
| NON_EXPORTED_BASE(public blink::WebFrameClient),
|
| @@ -442,6 +444,9 @@ class CONTENT_EXPORT RenderFrameImpl
|
| blink::WebPageVisibilityState GetVisibilityState() const override;
|
| bool IsBrowserSideNavigationPending() override;
|
|
|
| + // blink::mojom::EngagementClient implementation:
|
| + void SetEngagementLevel(blink::mojom::EngagementLevel level) override;
|
| +
|
| // mojom::Frame implementation:
|
| void GetInterfaceProvider(
|
| service_manager::mojom::InterfaceProviderRequest request) override;
|
| @@ -649,8 +654,11 @@ class CONTENT_EXPORT RenderFrameImpl
|
| blink::WebFrameSerializerClient::FrameSerializationStatus status)
|
| override;
|
|
|
| + // Binds to the site engagement service in the browser.
|
| + void BindEngagement(blink::mojom::EngagementClientAssociatedRequest request);
|
| +
|
| // Binds to the FrameHost in the browser.
|
| - void Bind(mojom::FrameRequest frame, mojom::FrameHostPtr frame_host);
|
| + void BindFrame(mojom::FrameRequest request, mojom::FrameHostPtr frame_host);
|
|
|
| ManifestManager* manifest_manager();
|
|
|
| @@ -1325,10 +1333,14 @@ class CONTENT_EXPORT RenderFrameImpl
|
|
|
| HostZoomLevels host_zoom_levels_;
|
|
|
| + mojo::AssociatedBinding<blink::mojom::EngagementClient> engagement_binding_;
|
| mojo::Binding<mojom::Frame> frame_binding_;
|
| mojo::AssociatedBinding<mojom::HostZoom> host_zoom_binding_;
|
| mojom::FrameHostPtr frame_host_;
|
|
|
| + // The engagement level to send to the frame once a navigation has committed.
|
| + blink::mojom::EngagementLevel engagement_level_;
|
| +
|
| // Indicates whether |didAccessInitialDocument| was called.
|
| bool has_accessed_initial_document_;
|
|
|
|
|