Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(559)

Unified Diff: device/vr/vr_device_provider.h

Issue 2471433002: Implement WebVR presentation pausing for VR Shell Menu Mode (Closed)
Patch Set: Address comments Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: device/vr/vr_device_provider.h
diff --git a/device/vr/vr_device_provider.h b/device/vr/vr_device_provider.h
index f388278cf956002cf65aca1fdb116e508c02af5a..05421117ff14521e5cc42a47dd34ab8bf887b163 100644
--- a/device/vr/vr_device_provider.h
+++ b/device/vr/vr_device_provider.h
@@ -7,15 +7,16 @@
#include <vector>
+#include "base/memory/ref_counted.h"
+
namespace device {
class VRClientDispatcher;
class VRDevice;
-class VRDeviceProvider {
+class VRDeviceProvider : public base::RefCountedThreadSafe<VRDeviceProvider> {
public:
VRDeviceProvider() {}
- virtual ~VRDeviceProvider() {}
virtual void GetDevices(std::vector<VRDevice*>* devices) = 0;
@@ -25,6 +26,10 @@ class VRDeviceProvider {
virtual void PollEvents() {}
virtual void SetClient(VRClientDispatcher* client) {}
+
+ protected:
+ friend class base::RefCountedThreadSafe<VRDeviceProvider>;
+ virtual ~VRDeviceProvider() {}
};
} // namespace device

Powered by Google App Engine
This is Rietveld 408576698