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

Unified Diff: Source/modules/webmidi/MIDIAccessPromise.h

Issue 85263006: Make IDL Callbacks non-refcounted by default (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Patch for landing Created 7 years, 1 month 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
« no previous file with comments | « Source/modules/webaudio/AudioContext.cpp ('k') | Source/modules/webmidi/MIDIAccessPromise.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « Source/modules/webaudio/AudioContext.cpp ('k') | Source/modules/webmidi/MIDIAccessPromise.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698