| Index: content/browser/vr/vr_device_manager.h
|
| diff --git a/content/browser/vr/vr_device_manager.h b/content/browser/vr/vr_device_manager.h
|
| deleted file mode 100644
|
| index bdf2de6100ae2882e73c48bb4d0b95929af33431..0000000000000000000000000000000000000000
|
| --- a/content/browser/vr/vr_device_manager.h
|
| +++ /dev/null
|
| @@ -1,81 +0,0 @@
|
| -// 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 CONTENT_BROWSER_VR_VR_DEVICE_MANAGER_H
|
| -#define CONTENT_BROWSER_VR_VR_DEVICE_MANAGER_H
|
| -
|
| -#include <stdint.h>
|
| -
|
| -#include <map>
|
| -#include <memory>
|
| -#include <vector>
|
| -
|
| -#include "base/macros.h"
|
| -#include "base/memory/linked_ptr.h"
|
| -#include "base/threading/thread_checker.h"
|
| -#include "content/browser/vr/vr_device.h"
|
| -#include "content/browser/vr/vr_device_provider.h"
|
| -#include "content/common/content_export.h"
|
| -#include "mojo/public/cpp/bindings/binding_set.h"
|
| -#include "third_party/WebKit/public/platform/modules/vr/vr_service.mojom.h"
|
| -
|
| -namespace content {
|
| -
|
| -class VRDeviceManager : public blink::mojom::VRService {
|
| - public:
|
| - ~VRDeviceManager() override;
|
| -
|
| - static void BindRequest(
|
| - mojo::InterfaceRequest<blink::mojom::VRService> request);
|
| -
|
| - // Returns the VRDeviceManager singleton.
|
| - static VRDeviceManager* GetInstance();
|
| -
|
| - mojo::Array<blink::mojom::VRDisplayPtr> GetVRDevices();
|
| - VRDevice* GetDevice(unsigned int index);
|
| -
|
| - private:
|
| - friend class VRDeviceManagerTest;
|
| -
|
| - VRDeviceManager();
|
| - // Constructor for testing.
|
| - explicit VRDeviceManager(std::unique_ptr<VRDeviceProvider> provider);
|
| -
|
| - static void SetInstance(VRDeviceManager* service);
|
| - static bool HasInstance();
|
| -
|
| - void InitializeProviders();
|
| - void RegisterProvider(std::unique_ptr<VRDeviceProvider> provider);
|
| -
|
| - // mojom::VRService implementation
|
| - void GetDisplays(const GetDisplaysCallback& callback) override;
|
| - void GetPose(uint32_t index,
|
| - const GetPoseCallback& callback) override;
|
| - void ResetPose(uint32_t index) override;
|
| -
|
| - // Mojo connection error handler.
|
| - void OnConnectionError();
|
| -
|
| - using ProviderList = std::vector<linked_ptr<VRDeviceProvider>>;
|
| - ProviderList providers_;
|
| -
|
| - // Devices are owned by their providers.
|
| - using DeviceMap = std::map<unsigned int, VRDevice*>;
|
| - DeviceMap devices_;
|
| -
|
| - bool vr_initialized_;
|
| -
|
| - mojo::BindingSet<blink::mojom::VRService> bindings_;
|
| -
|
| - // For testing. If true will not delete self when consumer count reaches 0.
|
| - bool keep_alive_;
|
| -
|
| - base::ThreadChecker thread_checker_;
|
| -
|
| - DISALLOW_COPY_AND_ASSIGN(VRDeviceManager);
|
| -};
|
| -
|
| -} // namespace content
|
| -
|
| -#endif // CONTENT_BROWSER_VR_VR_DEVICE_MANAGER_H
|
|
|