diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-10-12 14:27:29 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-10-13 09:35:20 +0000 |
commit | c30a6232df03e1efbd9f3b226777b07e087a1122 (patch) | |
tree | e992f45784689f373bcc38d1b79a239ebe17ee23 /chromium/fuchsia/runners/cast/cast_component.h | |
parent | 7b5b123ac58f58ffde0f4f6e488bcd09aa4decd3 (diff) | |
download | qtwebengine-chromium-85-based.tar.gz |
BASELINE: Update Chromium to 85.0.4183.14085-based
Change-Id: Iaa42f4680837c57725b1344f108c0196741f6057
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'chromium/fuchsia/runners/cast/cast_component.h')
-rw-r--r-- | chromium/fuchsia/runners/cast/cast_component.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/chromium/fuchsia/runners/cast/cast_component.h b/chromium/fuchsia/runners/cast/cast_component.h index 2d0516deeca..b1589330797 100644 --- a/chromium/fuchsia/runners/cast/cast_component.h +++ b/chromium/fuchsia/runners/cast/cast_component.h @@ -14,6 +14,7 @@ #include "base/message_loop/message_pump_for_io.h" #include "base/message_loop/message_pump_fuchsia.h" #include "base/optional.h" +#include "fuchsia/fidl/chromium/cast/cpp/fidl.h" #include "fuchsia/runners/cast/api_bindings_client.h" #include "fuchsia/runners/cast/application_controller_impl.h" #include "fuchsia/runners/cast/named_message_port_connector.h" @@ -27,7 +28,6 @@ FORWARD_DECLARE_TEST(HeadlessCastRunnerIntegrationTest, Headless); // A specialization of WebComponent which adds Cast-specific services. class CastComponent : public WebComponent, - public fuchsia::web::NavigationEventListener, public base::MessagePumpFuchsia::ZxHandleWatcher { public: struct Params { @@ -52,6 +52,8 @@ class CastComponent : public WebComponent, // Parameters asynchronously initialized by PendingCastComponent. std::unique_ptr<ApiBindingsClient> api_bindings_client; chromium::cast::ApplicationConfig application_config; + fidl::InterfaceHandle<chromium::cast::ApplicationContext> + application_context; base::Optional<std::vector<fuchsia::web::UrlRequestRewriteRule>> initial_url_rewrite_rules; base::Optional<uint64_t> media_session_id; @@ -64,7 +66,7 @@ class CastComponent : public WebComponent, // WebComponent overrides. void StartComponent() final; - void DestroyComponent(int termination_exit_code, + void DestroyComponent(int64_t termination_exit_code, fuchsia::sys::TerminationReason reason) final; const chromium::cast::ApplicationConfig& application_config() { @@ -89,6 +91,9 @@ class CastComponent : public WebComponent, fidl::InterfaceRequest<fuchsia::sys::ServiceProvider> incoming_services, fidl::InterfaceHandle<fuchsia::sys::ServiceProvider> outgoing_services) final; + void CreateViewWithViewRef(zx::eventpair view_token, + fuchsia::ui::views::ViewRefControl control_ref, + fuchsia::ui::views::ViewRef view_ref) final; // base::MessagePumpFuchsia::ZxHandleWatcher implementation. // Called when the headless "view" token is disconnected. @@ -106,13 +111,11 @@ class CastComponent : public WebComponent, std::unique_ptr<NamedMessagePortConnector> connector_; std::unique_ptr<ApiBindingsClient> api_bindings_client_; std::unique_ptr<ApplicationControllerImpl> application_controller_; + chromium::cast::ApplicationContextPtr application_context_; uint64_t media_session_id_ = 0; zx::eventpair headless_view_token_; base::MessagePumpForIO::ZxHandleWatchController headless_disconnect_watch_; - fidl::Binding<fuchsia::web::NavigationEventListener> - navigation_listener_binding_; - DISALLOW_COPY_AND_ASSIGN(CastComponent); }; |