--- remoting/host/chromoting_host.h.orig 2026-09-25 15:26:43 UTC +++ remoting/host/chromoting_host.h @@ -36,7 +36,7 @@ #include "remoting/protocol/session_manager.h" #include "remoting/protocol/transport_context.h" -#if BUILDFLAG(IS_LINUX) +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) #include "remoting/host/chromoting_host_services_server.h" #endif @@ -72,7 +72,7 @@ class ChromotingHost : // multi-process host, ChromotingHostServices is implemented by the daemon // process and the ChromotingSessionServices receiver is passed through // DesktopSessionConnectionEvents. -#if BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) +#if BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) public mojom::ChromotingHostServices, #endif @@ -117,7 +117,7 @@ class ChromotingHost : // This method can only be called once during the lifetime of this object. void Start(const std::string& host_owner); -#if BUILDFLAG(IS_LINUX) +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) // Starts running the ChromotingHostServices server and listening for incoming // IPC binding requests. // Currently only the single-process Linux host runs the @@ -129,7 +129,7 @@ class ChromotingHost : std::unique_ptr connection_info); #endif -#if BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) +#if BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) void BindChromotingHostServices( mojo::PendingReceiver receiver); #endif @@ -164,7 +164,7 @@ class ChromotingHost : std::optional OnSessionPoliciesReceived( const SessionPolicies& policies) override; -#if BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) +#if BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) // mojom::ChromotingHostServices implementation. void BindSessionServices( mojo::PendingReceiver receiver) @@ -219,7 +219,7 @@ class ChromotingHost : SessionPoliciesValidator per_session_policies_validator_; -#if BUILDFLAG(IS_LINUX) +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) // IPC server that runs the CRD host service API. Non-null if the server name // is set and the host is started. // Currently only Linux runs the ChromotingHostServices server on the host @@ -227,7 +227,7 @@ class ChromotingHost : std::unique_ptr ipc_server_; #endif -#if BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) +#if BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) mojo::ReceiverSet receivers_; #endif