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

Unified Diff: Source/modules/encryptedmedia/MediaKeys.h

Issue 257503003: Oilpan: Enable Oilpan by default in modules/encryptedmedia (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 7 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
« no previous file with comments | « Source/modules/encryptedmedia/MediaKeySession.idl ('k') | Source/modules/encryptedmedia/MediaKeys.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/encryptedmedia/MediaKeys.h
diff --git a/Source/modules/encryptedmedia/MediaKeys.h b/Source/modules/encryptedmedia/MediaKeys.h
index 3071dae5aa93506320ee1a401e9345eecc29b2ae..95424408174a14330a914818dae73882935ca273 100644
--- a/Source/modules/encryptedmedia/MediaKeys.h
+++ b/Source/modules/encryptedmedia/MediaKeys.h
@@ -51,14 +51,14 @@ class ExceptionState;
// References are held by JS and HTMLMediaElement.
// The WebContentDecryptionModule has the same lifetime as this object.
-class MediaKeys : public RefCountedWillBeGarbageCollectedFinalized<MediaKeys>, public ContextLifecycleObserver, public ScriptWrappable {
+class MediaKeys : public GarbageCollectedFinalized<MediaKeys>, public ContextLifecycleObserver, public ScriptWrappable {
public:
- static PassRefPtrWillBeRawPtr<MediaKeys> create(ExecutionContext*, const String& keySystem, ExceptionState&);
+ static MediaKeys* create(ExecutionContext*, const String& keySystem, ExceptionState&);
~MediaKeys();
const String& keySystem() const { return m_keySystem; }
- PassRefPtrWillBeRawPtr<MediaKeySession> createSession(ExecutionContext*, const String& contentType, Uint8Array* initData, ExceptionState&);
+ MediaKeySession* createSession(ExecutionContext*, const String& contentType, Uint8Array* initData, ExceptionState&);
static bool isTypeSupported(const String& keySystem, const String& contentType);
@@ -83,23 +83,19 @@ protected:
struct InitializeNewSessionData {
ALLOW_ONLY_INLINE_ALLOCATION();
public:
- InitializeNewSessionData(PassRefPtrWillBeRawPtr<MediaKeySession> session, const String& contentType, PassRefPtr<Uint8Array> initData)
+ InitializeNewSessionData(MediaKeySession* session, const String& contentType, PassRefPtr<Uint8Array> initData)
: session(session)
, contentType(contentType)
, initData(initData) { }
void trace(Visitor*);
- RefPtrWillBeMember<MediaKeySession> session;
+ Member<MediaKeySession> session;
String contentType;
RefPtr<Uint8Array> initData;
};
- Deque<InitializeNewSessionData> m_pendingInitializeNewSessionData;
+ HeapDeque<InitializeNewSessionData> m_pendingInitializeNewSessionData;
Timer<MediaKeys> m_initializeNewSessionTimer;
-
-#if !ENABLE(OILPAN)
- WeakPtrFactory<MediaKeys> m_weakFactory;
-#endif
};
}
« no previous file with comments | « Source/modules/encryptedmedia/MediaKeySession.idl ('k') | Source/modules/encryptedmedia/MediaKeys.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698