blob: 8d72a88b3cae248fa67764de92ba11b119f24fa6 [file] [log] [blame]
// Copyright 2015 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 DEVICE_VR_VR_DEVICE_PROVIDER_H
#define DEVICE_VR_VR_DEVICE_PROVIDER_H
#include <vector>
#include "base/callback.h"
namespace device {
class VRDevice;
class VRDeviceProvider {
public:
VRDeviceProvider() {}
virtual ~VRDeviceProvider() {}
// If the VR API requires initialization that should happen here.
virtual void Initialize(
base::RepeatingCallback<void(unsigned int, VRDevice*)>
add_device_callback,
base::RepeatingCallback<void(unsigned int)> remove_device_callback,
base::OnceClosure initialization_complete) = 0;
// Returns true if initialization is complete.
virtual bool Initialized() = 0;
};
} // namespace device
#endif // DEVICE_VR_VR_DEVICE_PROVIDER_H