| Index: Source/modules/webmidi/MIDIAccessPromise.h
|
| diff --git a/Source/modules/webmidi/MIDIAccessPromise.h b/Source/modules/webmidi/MIDIAccessPromise.h
|
| index d21b96e41f2cb9f205cfc99b11916b8fa56a49c0..074273c74cd0e2acfb7f6c027b47834e9719dc97 100644
|
| --- a/Source/modules/webmidi/MIDIAccessPromise.h
|
| +++ b/Source/modules/webmidi/MIDIAccessPromise.h
|
| @@ -62,7 +62,7 @@ public:
|
| void fulfill();
|
| void reject(PassRefPtr<DOMError>);
|
|
|
| - void then(PassRefPtr<MIDISuccessCallback>, PassRefPtr<MIDIErrorCallback>);
|
| + void then(PassOwnPtr<MIDISuccessCallback>, PassOwnPtr<MIDIErrorCallback>);
|
|
|
| private:
|
| enum State {
|
| @@ -77,8 +77,8 @@ private:
|
| void clear();
|
|
|
| State m_state;
|
| - RefPtr<MIDISuccessCallback> m_successCallback;
|
| - RefPtr<MIDIErrorCallback> m_errorCallback;
|
| + OwnPtr<MIDISuccessCallback> m_successCallback;
|
| + OwnPtr<MIDIErrorCallback> m_errorCallback;
|
| OwnPtr<MIDIOptions> m_options;
|
| RefPtr<DOMError> m_error;
|
| RefPtr<MIDIAccess> m_access;
|
|
|