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

Unified Diff: third_party/WebKit/Source/platform/mediastream/MediaStreamDescriptor.h

Issue 2080623002: Revert "Remove OwnPtr from Blink." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/platform/mediastream/MediaStreamDescriptor.h
diff --git a/third_party/WebKit/Source/platform/mediastream/MediaStreamDescriptor.h b/third_party/WebKit/Source/platform/mediastream/MediaStreamDescriptor.h
index fbbc8464067dd4418066ae8e6cb97e5f5072030e..db4dd8d5baadbda9a6a7f22250bc65b9a9b94634 100644
--- a/third_party/WebKit/Source/platform/mediastream/MediaStreamDescriptor.h
+++ b/third_party/WebKit/Source/platform/mediastream/MediaStreamDescriptor.h
@@ -37,7 +37,6 @@
#include "wtf/Allocator.h"
#include "wtf/Forward.h"
#include "wtf/Vector.h"
-#include <memory>
namespace blink {
@@ -90,7 +89,7 @@ public:
void setEnded() { m_ended = true; }
ExtraData* getExtraData() const { return m_extraData.get(); }
- void setExtraData(std::unique_ptr<ExtraData> extraData) { m_extraData = std::move(extraData); }
+ void setExtraData(PassOwnPtr<ExtraData> extraData) { m_extraData = std::move(extraData); }
// |m_extraData| may hold pointers to GC objects, and it may touch them in destruction.
// So this class is eagerly finalized to finalize |m_extraData| promptly.
@@ -108,7 +107,7 @@ private:
bool m_active;
bool m_ended;
- std::unique_ptr<ExtraData> m_extraData;
+ OwnPtr<ExtraData> m_extraData;
};
typedef HeapVector<Member<MediaStreamDescriptor>> MediaStreamDescriptorVector;

Powered by Google App Engine
This is Rietveld 408576698