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

Unified Diff: third_party/WebKit/Source/core/html/HTMLMediaElement.cpp

Issue 1827853002: [Android, RemotePlayback] Implement HTMLMediaElement.remote.connect(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remote-playback-availability
Patch Set: Fixed timing for rejecting the promises Created 4 years, 9 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: third_party/WebKit/Source/core/html/HTMLMediaElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp b/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp
index 65d6a79d225ae1e53d0d1842c3d19465ac014e6c..b65411089243d4d66f633664fa6c5ed2919e8c3e 100644
--- a/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp
@@ -418,6 +418,9 @@ HTMLMediaElement::HTMLMediaElement(const QualifiedName& tagName, Document& docum
, m_autoplayHelperClient(AutoplayHelperClientImpl::create(this))
, m_autoplayHelper(AutoplayExperimentHelper::create(m_autoplayHelperClient.get()))
, m_remotePlaybackClient(nullptr)
+#if !ENABLE(OILPAN)
+ , m_weakPtrFactory(this)
+#endif
{
#if ENABLE(OILPAN)
ThreadState::current()->registerPreFinalizer(this);
@@ -3862,4 +3865,11 @@ IntRect HTMLMediaElement::AutoplayHelperClientImpl::absoluteBoundingBoxRect() co
return result;
}
+#if !ENABLE(OILPAN)
+WeakPtr<HTMLMediaElement> HTMLMediaElement::createWeakPtr()
+{
+ return m_weakPtrFactory.createWeakPtr();
+}
+#endif
+
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698