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

Unified Diff: media/midi/midi_manager.h

Issue 1060553003: Web MIDI: call AccumulateMidiBytesSent() after operation finished (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review Created 5 years, 8 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
« no previous file with comments | « no previous file | media/midi/midi_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/midi/midi_manager.h
diff --git a/media/midi/midi_manager.h b/media/midi/midi_manager.h
index a7c5262d8fd9f8c79dc45d0b61b99bf3e54f96e9..2904c117a1f10d790fc431a3a59d10107868ab47 100644
--- a/media/midi/midi_manager.h
+++ b/media/midi/midi_manager.h
@@ -86,6 +86,10 @@ class MEDIA_EXPORT MidiManager {
// A client calls EndSession() to stop receiving MIDI data.
void EndSession(MidiManagerClient* client);
+ // Invoke AccumulateMidiBytesSent() for |client| safely. If the session was
+ // already closed, do nothing.
+ void AccumulateMidiBytesSent(MidiManagerClient* client, size_t n);
+
// DispatchSendMidiData() is called when MIDI data should be sent to the MIDI
// system.
// This method is supposed to return immediately and should not block.
« no previous file with comments | « no previous file | media/midi/midi_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698