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

Unified Diff: Source/modules/mediastream/MediaDeviceInfo.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/MediaDeviceInfo.h
diff --git a/Source/modules/mediastream/MediaDeviceInfo.h b/Source/modules/mediastream/MediaDeviceInfo.h
index 36546208886c6071e8369def3b46bc0ab96a6240..2309fd5bca4af01264199ef38383b96e41fbccd9 100644
--- a/Source/modules/mediastream/MediaDeviceInfo.h
+++ b/Source/modules/mediastream/MediaDeviceInfo.h
@@ -26,6 +26,7 @@
#ifndef MediaDeviceInfo_h
#define MediaDeviceInfo_h
+#include "heap/Handle.h"
#include "public/platform/WebMediaDeviceInfo.h"
#include "wtf/PassRefPtr.h"
#include "wtf/RefCounted.h"
@@ -33,22 +34,25 @@
namespace WebCore {
-class MediaDeviceInfo : public RefCounted<MediaDeviceInfo> {
+class MediaDeviceInfo : public RefCountedWillBeGarbageCollected<MediaDeviceInfo> {
+ DECLARE_GC_INFO;
haraken 2014/02/26 13:58:37 You can drop DECLARE_GC_INFO now. The same comment
keishi 2014/02/27 07:33:34 Done.
public:
- static PassRefPtr<MediaDeviceInfo> create(const blink::WebMediaDeviceInfo&);
+ static PassRefPtrWillBeRawPtr<MediaDeviceInfo> create(const blink::WebMediaDeviceInfo&);
String deviceId() const;
String kind() const;
String label() const;
String groupId() const;
+ void trace(Visitor*) { }
+
private:
explicit MediaDeviceInfo(const blink::WebMediaDeviceInfo&);
blink::WebMediaDeviceInfo m_webMediaDeviceInfo;
};
-typedef Vector<RefPtr<MediaDeviceInfo> > MediaDeviceInfoVector;
+typedef WillBeHeapVector<RefPtrWillBeMember<MediaDeviceInfo> > MediaDeviceInfoVector;
} // namespace WebCore

Powered by Google App Engine
This is Rietveld 408576698