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

Unified Diff: Source/web/MIDIClientProxy.h

Issue 220333003: Apply OwnPtr|PassOwnPtr to handle member variables and arguments in MIDIClient (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix a unit test #2 Created 6 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: Source/web/MIDIClientProxy.h
diff --git a/Source/web/MIDIClientProxy.h b/Source/web/MIDIClientProxy.h
index 35a6f4cd924474630cccd9afb2d48061600a5794..a1818ce593d6996a5d3ae1a3f5958cbba332b96f 100644
--- a/Source/web/MIDIClientProxy.h
+++ b/Source/web/MIDIClientProxy.h
@@ -44,13 +44,18 @@ class WebMIDIClient;
class MIDIClientProxy FINAL : public WebCore::MIDIClient {
public:
- explicit MIDIClientProxy(WebMIDIClient*);
+ static PassOwnPtr<MIDIClientProxy> create(WebMIDIClient* client)
+ {
+ return adoptPtr(new MIDIClientProxy(client));
+ }
// WebCore::MIDIClient
virtual void requestSysexPermission(PassRefPtrWillBeRawPtr<WebCore::MIDIAccess>) OVERRIDE;
virtual void cancelSysexPermissionRequest(WebCore::MIDIAccess*) OVERRIDE;
private:
+ explicit MIDIClientProxy(WebMIDIClient*);
+
WebMIDIClient* m_client;
};

Powered by Google App Engine
This is Rietveld 408576698