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

Unified Diff: Source/modules/mediastream/MediaDevicesRequest.h

Issue 173363002: Move mediastream module to oilpan transition types (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: WIP Created 6 years, 10 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 side-by-side diff with in-line comments
Download patch
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>);

Powered by Google App Engine
This is Rietveld 408576698