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

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

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.h
diff --git a/third_party/WebKit/Source/core/html/HTMLMediaElement.h b/third_party/WebKit/Source/core/html/HTMLMediaElement.h
index 8f5e5e724b65aa16720ac3bdd55db79d41d2cde7..7123760ca703f759aa57ee8556cdea9a838d5e3e 100644
--- a/third_party/WebKit/Source/core/html/HTMLMediaElement.h
+++ b/third_party/WebKit/Source/core/html/HTMLMediaElement.h
@@ -41,6 +41,10 @@
#include "public/platform/WebMediaPlayerClient.h"
#include "public/platform/WebMimeRegistry.h"
+#if !ENABLE(OILPAN)
+#include "wtf/WeakPtr.h"
+#endif
+
namespace blink {
class AudioSourceProviderClient;
@@ -265,6 +269,10 @@ public:
WebRemotePlaybackClient* remotePlaybackClient() { return m_remotePlaybackClient; }
void setRemotePlaybackClient(WebRemotePlaybackClient*);
+#if !ENABLE(OILPAN)
+ WeakPtr<HTMLMediaElement> createWeakPtr();
+#endif
+
protected:
HTMLMediaElement(const QualifiedName&, Document&);
~HTMLMediaElement() override;
@@ -641,6 +649,10 @@ private:
WebRemotePlaybackClient* m_remotePlaybackClient;
+#if !ENABLE(OILPAN)
+ WeakPtrFactory<HTMLMediaElement> m_weakPtrFactory;
+#endif
+
static URLRegistry* s_mediaStreamRegistry;
};

Powered by Google App Engine
This is Rietveld 408576698