blob: 59c470c60d477d80e335f8e25871bb2aed29cc09 [file] [log] [blame]
// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_VR_CHROME_XR_INTEGRATION_CLIENT_H_
#define CHROME_BROWSER_VR_CHROME_XR_INTEGRATION_CLIENT_H_
#include <memory>
#include "base/util/type_safety/pass_key.h"
#include "build/build_config.h"
#include "content/public/browser/xr_integration_client.h"
class ChromeContentBrowserClient;
namespace vr {
class ChromeXrIntegrationClient : public content::XrIntegrationClient {
public:
explicit ChromeXrIntegrationClient(
util::PassKey<ChromeContentBrowserClient>) {}
~ChromeXrIntegrationClient() override = default;
ChromeXrIntegrationClient(const ChromeXrIntegrationClient&) = delete;
ChromeXrIntegrationClient& operator=(const ChromeXrIntegrationClient&) =
delete;
// XrIntegrationClient
std::unique_ptr<content::XrInstallHelper> GetInstallHelper(
device::mojom::XRDeviceId device_id) override;
std::unique_ptr<content::XrConsentHelper> GetConsentHelper(
device::mojom::XRDeviceId device_id) override;
content::XRProviderList GetAdditionalProviders() override;
// The only class that we have which implements VrUiHost is Win-only.
#if defined(OS_WIN)
std::unique_ptr<content::VrUiHost> CreateVrUiHost(
device::mojom::XRDeviceId device_id,
mojo::PendingRemote<device::mojom::XRCompositorHost> compositor) override;
#endif
private:
ChromeXrIntegrationClient() = default;
};
} // namespace vr
#endif // CHROME_BROWSER_VR_CHROME_XR_INTEGRATION_CLIENT_H_