--- remoting/host/chromoting_host.h.orig 2026-06-23 23:37:18 UTC +++ remoting/host/chromoting_host.h @@ -37,7 +37,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 @@ -82,7 +82,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 @@ -130,7 +130,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 @@ -142,7 +142,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 @@ -177,7 +177,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) @@ -252,7 +252,7 @@ class ChromotingHost : // List of host extensions. std::vector> extensions_; -#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 @@ -260,7 +260,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