Index: Source/web/WebMediaPlayerClientImpl.h |
diff --git a/Source/web/WebMediaPlayerClientImpl.h b/Source/web/WebMediaPlayerClientImpl.h |
index 51cda0db29b767defcf7817b3e769600a4fc0f65..24a0e7ab8129cdee44cb221683f1ca6de21aa7c2 100644 |
--- a/Source/web/WebMediaPlayerClientImpl.h |
+++ b/Source/web/WebMediaPlayerClientImpl.h |
@@ -41,6 +41,7 @@ |
#include "third_party/skia/include/core/SkRefCnt.h" |
#include "third_party/skia/include/gpu/GrTexture.h" |
#endif |
+#include "platform/heap/Handle.h" |
#include "platform/weborigin/KURL.h" |
#include "wtf/OwnPtr.h" |
#include "wtf/PassOwnPtr.h" |
@@ -60,10 +61,10 @@ class WebGraphicsContext3D; |
// This class serves as a bridge between WebCore::MediaPlayer and |
// blink::WebMediaPlayer. |
-class WebMediaPlayerClientImpl FINAL : public WebCore::MediaPlayer, public WebMediaPlayerClient { |
- |
+class WebMediaPlayerClientImpl FINAL : public NoBaseWillBeGarbageCollectedFinalized<WebMediaPlayerClientImpl>, public WebCore::MediaPlayer, public WebMediaPlayerClient { |
+ WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(WebMediaPlayerClientImpl); |
public: |
- static PassOwnPtr<WebCore::MediaPlayer> create(WebCore::MediaPlayerClient*); |
+ static PassOwnPtrWillBeRawPtr<WebCore::MediaPlayer> create(WebCore::MediaPlayerClient*); |
virtual ~WebMediaPlayerClientImpl(); |
@@ -93,6 +94,7 @@ public: |
// MediaPlayer methods: |
virtual WebMediaPlayer* webMediaPlayer() const OVERRIDE; |
+ virtual void detach() OVERRIDE; |
virtual void load(WebMediaPlayer::LoadType, const WTF::String& url, WebMediaPlayer::CORSMode) OVERRIDE; |
virtual void play() OVERRIDE; |
virtual void pause() OVERRIDE; |
@@ -120,12 +122,14 @@ public: |
virtual WebCore::AudioSourceProvider* audioSourceProvider() OVERRIDE; |
#endif |
+ virtual void trace(WebCore::Visitor*) OVERRIDE; |
+ |
private: |
explicit WebMediaPlayerClientImpl(WebCore::MediaPlayerClient*); |
WebCore::HTMLMediaElement& mediaElement() const; |
- WebCore::MediaPlayerClient* m_client; |
+ RawPtrWillBeMember<WebCore::MediaPlayerClient> m_client; |
OwnPtr<WebMediaPlayer> m_webMediaPlayer; |
WebCore::MediaPlayer::Preload m_preload; |
double m_rate; |