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

Unified Diff: content/renderer/media/midi_message_filter.h

Issue 23379002: Web MIDI: fix multi-threading problem around message buffer handling (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review #2 Created 7 years, 4 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
Index: content/renderer/media/midi_message_filter.h
diff --git a/content/renderer/media/midi_message_filter.h b/content/renderer/media/midi_message_filter.h
index cf969e9d8078401a5de3b665b4a0ddfcae4a571f..ae9e9d39763d36ccaa37cae41dfdba558cfc2da7 100644
--- a/content/renderer/media/midi_message_filter.h
+++ b/content/renderer/media/midi_message_filter.h
@@ -37,7 +37,7 @@ class CONTENT_EXPORT MIDIMessageFilter
// A client will only be able to call this method if it has a suitable
// output port (from addOutputPort()).
- void SendMIDIData(int port,
+ void SendMIDIData(unsigned int port,
palmer 2013/08/22 18:31:26 You're using size_t elsewhere.
Takashi Toyoshima 2013/08/23 02:39:15 Sorry, I missed to revise this in the second uploa
const uint8* data,
size_t length,
double timestamp);
@@ -89,7 +89,7 @@ class CONTENT_EXPORT MIDIMessageFilter
void StartSessionOnIOThread(int client_id);
- void SendMIDIDataOnIOThread(int port,
+ void SendMIDIDataOnIOThread(size_t port,
const std::vector<uint8>& data,
double timestamp);

Powered by Google App Engine
This is Rietveld 408576698