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

Unified Diff: media/midi/midi_manager.h

Issue 264053002: Web MIDI: introduce pending client count limit to start sessions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix memory leak Created 6 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') | media/midi/midi_manager.cc » ('J')
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 156a2465cb424bb943a271fdd4b7f99c53a669f5..6faf80902c3b9f81898e75673b7274c02929840f 100644
--- a/media/midi/midi_manager.h
+++ b/media/midi/midi_manager.h
@@ -50,11 +50,13 @@ class MEDIA_EXPORT MidiManagerClient {
// Manages access to all MIDI hardware.
class MEDIA_EXPORT MidiManager {
public:
- static MidiManager* Create();
+ static const size_t kMaxPendingClientCount = 128;
MidiManager();
virtual ~MidiManager();
+ static MidiManager* Create();
+
// A client calls StartSession() to receive and send MIDI data.
// If the session is ready to start, the MIDI system is lazily initialized
// and the client is registered to receive MIDI data.
« no previous file with comments | « no previous file | media/midi/midi_manager.cc » ('j') | media/midi/midi_manager.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698