Index: Source/modules/mediastream/MediaDevicesRequest.h |
diff --git a/Source/modules/mediastream/MediaDevicesRequest.h b/Source/modules/mediastream/MediaDevicesRequest.h |
index f99842d6a1f2f633464d10828fffee8e71c45888..f0ba9e3a295c2124a410ac925cebc91e68ce1aaa 100644 |
--- a/Source/modules/mediastream/MediaDevicesRequest.h |
+++ b/Source/modules/mediastream/MediaDevicesRequest.h |
@@ -27,6 +27,7 @@ |
#define MediaDevicesRequest_h |
#include "core/dom/ActiveDOMObject.h" |
+#include "heap/Handle.h" |
#include "modules/mediastream/MediaDeviceInfo.h" |
#include "modules/mediastream/MediaDeviceInfoCallback.h" |
#include "wtf/PassOwnPtr.h" |
@@ -40,9 +41,10 @@ class ExceptionState; |
class MediaStreamDescriptor; |
class UserMediaController; |
-class MediaDevicesRequest FINAL : public RefCounted<MediaDevicesRequest>, public ActiveDOMObject { |
+class MediaDevicesRequest FINAL : public RefCountedWillBeRefCountedGarbageCollected<MediaDevicesRequest>, public ActiveDOMObject { |
haraken
2014/02/26 13:58:37
Please just confirm that 'RefPtr<MediaDevicesReque
keishi
2014/02/27 07:33:34
Confirmed.
|
+ DECLARE_GC_INFO; |
public: |
- static PassRefPtr<MediaDevicesRequest> create(ExecutionContext*, UserMediaController*, PassOwnPtr<MediaDeviceInfoCallback>, ExceptionState&); |
+ static PassRefPtrWillBeRawPtr<MediaDevicesRequest> create(ExecutionContext*, UserMediaController*, PassOwnPtr<MediaDeviceInfoCallback>, ExceptionState&); |
virtual ~MediaDevicesRequest(); |
MediaDeviceInfoCallback* callback() const { return m_callback.get(); } |
@@ -55,6 +57,8 @@ public: |
// ActiveDOMObject |
virtual void stop() OVERRIDE; |
+ void trace(Visitor*) { } |
+ |
private: |
MediaDevicesRequest(ExecutionContext*, UserMediaController*, PassOwnPtr<MediaDeviceInfoCallback>); |