#include <string>
#include "base/strings/stringprintf.h"
#include "base/system/sys_info.h"
#include "content/browser/xr/service/xr_runtime_manager_impl.h"
#include "content/browser/xr/webxr_internals/webxr_internals_handler_impl.h"
#include "content/public/browser/gpu_data_manager.h"
#include "gpu/config/gpu_info.h"
namespace content {
namespace {
gpu::GPUInfo GetGPUInfo() { … }
std::string GetOSVersion() { … }
}
WebXrInternalsHandlerImpl::WebXrInternalsHandlerImpl(
mojo::PendingReceiver<webxr::mojom::WebXrInternalsHandler> receiver,
WebContents* web_contents)
: … { … }
WebXrInternalsHandlerImpl::~WebXrInternalsHandlerImpl() = default;
void WebXrInternalsHandlerImpl::GetDeviceInfo(GetDeviceInfoCallback callback) { … }
void WebXrInternalsHandlerImpl::GetActiveRuntimes(
GetActiveRuntimesCallback callback) { … }
void WebXrInternalsHandlerImpl::SubscribeToEvents(
mojo::PendingRemote<webxr::mojom::XRInternalsSessionListener>
pending_remote) { … }
}