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

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 nooilpan build 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 05c1fcd9f311778302f33b28076ea5108a3872b1..65f81e9a1977c417a8783b581813be5339de53ea 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;
@@ -645,6 +653,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