зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1035394 - Fix dangerous public destructors in content/media/eme - r=cpearce
This commit is contained in:
Родитель
a26fa3305e
Коммит
fb20c64d14
|
@ -27,8 +27,8 @@ class MediaKeyMessageEvent MOZ_FINAL : public Event
|
|||
public:
|
||||
NS_DECL_ISUPPORTS_INHERITED
|
||||
NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_CLASS_INHERITED(MediaKeyMessageEvent, Event)
|
||||
virtual ~MediaKeyMessageEvent();
|
||||
protected:
|
||||
virtual ~MediaKeyMessageEvent();
|
||||
MediaKeyMessageEvent(EventTarget* aOwner);
|
||||
|
||||
JS::Heap<JSObject*> mMessage;
|
||||
|
|
|
@ -27,8 +27,8 @@ class MediaKeyNeededEvent MOZ_FINAL : public Event
|
|||
public:
|
||||
NS_DECL_ISUPPORTS_INHERITED
|
||||
NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_CLASS_INHERITED(MediaKeyNeededEvent, Event)
|
||||
virtual ~MediaKeyNeededEvent();
|
||||
protected:
|
||||
virtual ~MediaKeyNeededEvent();
|
||||
MediaKeyNeededEvent(EventTarget* aOwner);
|
||||
|
||||
nsString mInitDataType;
|
||||
|
|
|
@ -43,8 +43,6 @@ public:
|
|||
|
||||
void Init(const nsAString& aSessionId);
|
||||
|
||||
~MediaKeySession();
|
||||
|
||||
virtual JSObject* WrapObject(JSContext* aCx) MOZ_OVERRIDE;
|
||||
|
||||
// Mark this as resultNotAddRefed to return raw pointers
|
||||
|
@ -77,6 +75,8 @@ public:
|
|||
bool IsClosed() const;
|
||||
|
||||
private:
|
||||
~MediaKeySession();
|
||||
|
||||
nsRefPtr<Promise> mClosed;
|
||||
|
||||
nsRefPtr<MediaKeyError> mMediaKeyError;
|
||||
|
|
Загрузка…
Ссылка в новой задаче