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

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

Issue 2050123002: Remove OwnPtr from Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: First attempt to land. Created 4 years, 6 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 653bd31414424e201ea67841db7031fe26075257..79c1a3ec62e7b498568895d9981f32b9aa75cc77 100644
--- a/third_party/WebKit/Source/core/html/HTMLMediaElement.h
+++ b/third_party/WebKit/Source/core/html/HTMLMediaElement.h
@@ -40,6 +40,7 @@
#include "public/platform/WebAudioSourceProviderClient.h"
#include "public/platform/WebMediaPlayerClient.h"
#include "public/platform/WebMimeRegistry.h"
+#include <memory>
namespace blink {
@@ -547,7 +548,7 @@ private:
DeferredLoadState m_deferredLoadState;
Timer<HTMLMediaElement> m_deferredLoadTimer;
- OwnPtr<WebMediaPlayer> m_webMediaPlayer;
+ std::unique_ptr<WebMediaPlayer> m_webMediaPlayer;
WebLayer* m_webLayer;
DisplayMode m_displayMode;
@@ -596,8 +597,8 @@ private:
Member<CueTimeline> m_cueTimeline;
HeapVector<Member<ScriptPromiseResolver>> m_playPromiseResolvers;
- OwnPtr<CancellableTaskFactory> m_playPromiseResolveTask;
- OwnPtr<CancellableTaskFactory> m_playPromiseRejectTask;
+ std::unique_ptr<CancellableTaskFactory> m_playPromiseResolveTask;
+ std::unique_ptr<CancellableTaskFactory> m_playPromiseRejectTask;
HeapVector<Member<ScriptPromiseResolver>> m_playPromiseResolveList;
HeapVector<Member<ScriptPromiseResolver>> m_playPromiseRejectList;
ExceptionCode m_playPromiseErrorCode;
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLInputElementTest.cpp ('k') | third_party/WebKit/Source/core/html/HTMLMediaElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698