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

Side by Side Diff: Source/modules/vr/VRHardwareUnitCollection.h

Issue 1101263003: Oilpan: have Navigator and its supplements be on the heap by default. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebased Created 5 years, 8 months 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/modules/vr/VRGetDevicesCallback.h ('k') | Source/modules/webmidi/NavigatorWebMIDI.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 VRHardwareUnitCollection_h 5 #ifndef VRHardwareUnitCollection_h
6 #define VRHardwareUnitCollection_h 6 #define VRHardwareUnitCollection_h
7 7
8 #include "modules/vr/VRDevice.h" 8 #include "modules/vr/VRDevice.h"
9 #include "modules/vr/VRHardwareUnit.h" 9 #include "modules/vr/VRHardwareUnit.h"
10 #include "platform/heap/Handle.h" 10 #include "platform/heap/Handle.h"
11 #include "public/platform/WebVector.h" 11 #include "public/platform/WebVector.h"
12 12
13 namespace blink { 13 namespace blink {
14 14
15 class WebVRDevice; 15 class WebVRDevice;
16 16
17 class VRHardwareUnitCollection final : public RefCountedWillBeGarbageCollected<V RHardwareUnitCollection> { 17 class VRHardwareUnitCollection final : public GarbageCollected<VRHardwareUnitCol lection> {
18 public: 18 public:
19 explicit VRHardwareUnitCollection(VRController*); 19 explicit VRHardwareUnitCollection(VRController*);
20 20
21 VRDeviceVector updateVRHardwareUnits(const WebVector<WebVRDevice>*); 21 VRDeviceVector updateVRHardwareUnits(const WebVector<WebVRDevice>*);
22 VRHardwareUnit* getHardwareUnitForIndex(unsigned index); 22 VRHardwareUnit* getHardwareUnitForIndex(unsigned index);
23 23
24 DECLARE_VIRTUAL_TRACE(); 24 DECLARE_VIRTUAL_TRACE();
25 25
26 private: 26 private:
27 PersistentWillBeMember<VRController> m_controller; 27 Member<VRController> m_controller;
28 PersistentHeapVectorWillBeHeapVector<Member<VRHardwareUnit>> m_hardwareUnits ; 28 HeapVector<Member<VRHardwareUnit>> m_hardwareUnits;
29 }; 29 };
30 30
31 } // namespace blink 31 } // namespace blink
32 32
33 #endif // VRHardwareUnitCollection_h 33 #endif // VRHardwareUnitCollection_h
OLDNEW
« no previous file with comments | « Source/modules/vr/VRGetDevicesCallback.h ('k') | Source/modules/webmidi/NavigatorWebMIDI.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698