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

Unified Diff: third_party/WebKit/Source/modules/webmidi/MIDIController.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/modules/webmidi/MIDIController.h
diff --git a/third_party/WebKit/Source/modules/webmidi/MIDIController.h b/third_party/WebKit/Source/modules/webmidi/MIDIController.h
index 4cf7bdfcfe23e434a6d71cac289af1f32a885f25..cdb7d4acc7708e3941ef17bee346944c7511a68c 100644
--- a/third_party/WebKit/Source/modules/webmidi/MIDIController.h
+++ b/third_party/WebKit/Source/modules/webmidi/MIDIController.h
@@ -33,6 +33,7 @@
#include "core/frame/LocalFrame.h"
#include "platform/heap/Handle.h"
+#include <memory>
namespace blink {
@@ -48,17 +49,17 @@ public:
void requestPermission(MIDIAccessInitializer*, const MIDIOptions&);
void cancelPermissionRequest(MIDIAccessInitializer*);
- static MIDIController* create(PassOwnPtr<MIDIClient>);
+ static MIDIController* create(std::unique_ptr<MIDIClient>);
static const char* supplementName();
static MIDIController* from(LocalFrame* frame) { return static_cast<MIDIController*>(Supplement<LocalFrame>::from(frame, supplementName())); }
DEFINE_INLINE_VIRTUAL_TRACE() { Supplement<LocalFrame>::trace(visitor); }
protected:
- explicit MIDIController(PassOwnPtr<MIDIClient>);
+ explicit MIDIController(std::unique_ptr<MIDIClient>);
private:
- OwnPtr<MIDIClient> m_client;
+ std::unique_ptr<MIDIClient> m_client;
};
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/modules/webmidi/MIDIClient.h ('k') | third_party/WebKit/Source/modules/webmidi/MIDIController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698