OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CONTENT_BROWSER_VR_VR_SERVICE_CONSUMER_H |
| 6 #define CONTENT_BROWSER_VR_VR_SERVICE_CONSUMER_H |
| 7 |
| 8 #include "base/basictypes.h" |
| 9 #include "content/common/content_export.h" |
| 10 |
| 11 namespace content { |
| 12 |
| 13 class VRService; |
| 14 |
| 15 // Provides a consistent mechanism for tracking objects which use the VRService. |
| 16 // In the future may also provide an interface for the service to push messages. |
| 17 class CONTENT_EXPORT VRServiceConsumer { |
| 18 public: |
| 19 VRServiceConsumer(); |
| 20 virtual ~VRServiceConsumer(); |
| 21 |
| 22 // Returns the VRService singleton. |
| 23 VRService* GetServiceInstance(); |
| 24 |
| 25 private: |
| 26 bool registered_with_service_; |
| 27 |
| 28 DISALLOW_COPY_AND_ASSIGN(VRServiceConsumer); |
| 29 }; |
| 30 |
| 31 } // namespace content |
| 32 |
| 33 #endif // CONTENT_BROWSER_VR_VR_SERVICE_CONSUMER_H |
OLD | NEW |