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; |
}; |