| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CONTENT_BROWSER_VR_VR_DEVICE_MANAGER_H | 5 #ifndef CONTENT_BROWSER_VR_VR_DEVICE_MANAGER_H |
| 6 #define CONTENT_BROWSER_VR_VR_DEVICE_MANAGER_H | 6 #define CONTENT_BROWSER_VR_VR_DEVICE_MANAGER_H |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| 11 #include <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 #include "base/macros.h" | 13 #include "base/macros.h" |
| 14 #include "base/memory/linked_ptr.h" | 14 #include "base/memory/linked_ptr.h" |
| 15 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
| 16 #include "base/threading/thread_checker.h" | 16 #include "base/threading/thread_checker.h" |
| 17 #include "content/browser/vr/vr_device.h" | 17 #include "content/browser/vr/vr_device.h" |
| 18 #include "content/browser/vr/vr_device_provider.h" | 18 #include "content/browser/vr/vr_device_provider.h" |
| 19 #include "content/common/content_export.h" | 19 #include "content/common/content_export.h" |
| 20 #include "content/common/vr_service.mojom.h" | |
| 21 #include "mojo/public/cpp/bindings/binding_set.h" | 20 #include "mojo/public/cpp/bindings/binding_set.h" |
| 21 #include "third_party/WebKit/public/platform/modules/vr/vr_service.mojom.h" |
| 22 |
| 23 using namespace mojom; |
| 22 | 24 |
| 23 namespace content { | 25 namespace content { |
| 24 | 26 |
| 25 class VRDeviceManager : public VRService { | 27 class VRDeviceManager : public VRService { |
| 26 public: | 28 public: |
| 27 ~VRDeviceManager() override; | 29 ~VRDeviceManager() override; |
| 28 | 30 |
| 29 static void BindRequest(mojo::InterfaceRequest<VRService> request); | 31 static void BindRequest(mojo::InterfaceRequest<VRService> request); |
| 30 | 32 |
| 31 // Returns the VRDeviceManager singleton. | 33 // Returns the VRDeviceManager singleton. |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 bool keep_alive_; | 73 bool keep_alive_; |
| 72 | 74 |
| 73 base::ThreadChecker thread_checker_; | 75 base::ThreadChecker thread_checker_; |
| 74 | 76 |
| 75 DISALLOW_COPY_AND_ASSIGN(VRDeviceManager); | 77 DISALLOW_COPY_AND_ASSIGN(VRDeviceManager); |
| 76 }; | 78 }; |
| 77 | 79 |
| 78 } // namespace content | 80 } // namespace content |
| 79 | 81 |
| 80 #endif // CONTENT_BROWSER_VR_VR_DEVICE_MANAGER_H | 82 #endif // CONTENT_BROWSER_VR_VR_DEVICE_MANAGER_H |
| OLD | NEW |