chromium/content/browser/xr/service/xr_frame_sink_client_impl.h

// Copyright 2021 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef CONTENT_BROWSER_XR_SERVICE_XR_FRAME_SINK_CLIENT_IMPL_H_
#define CONTENT_BROWSER_XR_SERVICE_XR_FRAME_SINK_CLIENT_IMPL_H_

#include <optional>

#include "base/callback_list.h"
#include "base/functional/callback_forward.h"
#include "base/memory/scoped_refptr.h"
#include "base/memory/weak_ptr.h"
#include "base/synchronization/lock.h"
#include "build/build_config.h"
#include "components/viz/common/surfaces/frame_sink_id.h"
#include "components/viz/common/surfaces/surface_id.h"
#include "components/viz/host/host_frame_sink_client.h"
#include "device/vr/public/cpp/xr_frame_sink_client.h"
#include "services/viz/privileged/mojom/compositing/frame_sink_manager.mojom-forward.h"

namespace base {
class SingleThreadTaskRunner;
}

namespace content {
// Concrete implementation of XrFrameSinkClient to manage interactions with the
// HostFrameSinkManager. Callbacks from HostFrameSinkClient will be received on
// the UI thread. Must be created and Destroyed on the UI thread.
class XrFrameSinkClientImpl : public device::XrFrameSinkClient,
                              viz::HostFrameSinkClient {};

}  // namespace content

#endif  // CONTENT_BROWSER_XR_SERVICE_XR_FRAME_SINK_CLIENT_IMPL_H_