#include "bindings/v8/ScriptWrappable.h"
#include "core/dom/ActiveDOMObject.h"
#include "core/events/EventTarget.h"
-#include "heap/Handle.h"
#include "platform/Timer.h"
+#include "platform/heap/Handle.h"
#include "public/platform/WebContentDecryptionModuleSession.h"
#include "wtf/Deque.h"
#include "wtf/PassRefPtr.h"
, private blink::WebContentDecryptionModuleSession::Client {
DEFINE_EVENT_TARGET_REFCOUNTING(RefCountedWillBeRefCountedGarbageCollected<MediaKeySession>);
public:
- static PassRefPtrWillBeRawPtr<MediaKeySession> create(ExecutionContext*, blink::WebContentDecryptionModule*, WeakPtr<MediaKeys>);
+ static PassRefPtrWillBeRawPtr<MediaKeySession> create(ExecutionContext*, blink::WebContentDecryptionModule*, WeakPtrWillBeRawPtr<MediaKeys>);
virtual ~MediaKeySession();
const String& keySystem() const { return m_keySystem; }
void update(Uint8Array* response, ExceptionState&);
void release(ExceptionState&);
- void enqueueEvent(PassRefPtr<Event>);
+ void enqueueEvent(PassRefPtrWillBeRawPtr<Event>);
// EventTarget
virtual const AtomicString& interfaceName() const OVERRIDE;
virtual bool hasPendingActivity() const OVERRIDE;
virtual void stop() OVERRIDE;
- void trace(Visitor*) { }
+ void trace(Visitor*);
private:
// A struct holding the pending action.
PendingAction(Type, PassRefPtr<Uint8Array> data);
};
- MediaKeySession(ExecutionContext*, blink::WebContentDecryptionModule*, WeakPtr<MediaKeys>);
+ MediaKeySession(ExecutionContext*, blink::WebContentDecryptionModule*, WeakPtrWillBeRawPtr<MediaKeys>);
void actionTimerFired(Timer<MediaKeySession>*);
// blink::WebContentDecryptionModuleSession::Client
OwnPtr<blink::WebContentDecryptionModuleSession> m_session;
// Used to determine if MediaKeys is still active.
- WeakPtr<MediaKeys> m_keys;
+ WeakPtrWillBeWeakMember<MediaKeys> m_keys;
// Is the CDM finished with this session?
bool m_isClosed;