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

Side by Side Diff: content/common/media/midi_messages.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: s/CHECK/DCHECK/ 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // IPC messages for access to MIDI hardware. 5 // IPC messages for access to MIDI hardware.
6 // Multiply-included message file, hence no include guard. 6 // Multiply-included message file, hence no include guard.
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "content/common/content_export.h" 9 #include "content/common/content_export.h"
10 #include "ipc/ipc_message_macros.h" 10 #include "ipc/ipc_message_macros.h"
(...skipping 25 matching lines...) Expand all
36 int /* client id */, 36 int /* client id */,
37 bool /* success */) 37 bool /* success */)
38 38
39 // Messages for IPC between MIDIMessageFilter and MIDIHost. 39 // Messages for IPC between MIDIMessageFilter and MIDIHost.
40 40
41 // Renderer request to browser for access to MIDI services. 41 // Renderer request to browser for access to MIDI services.
42 IPC_MESSAGE_CONTROL1(MIDIHostMsg_StartSession, 42 IPC_MESSAGE_CONTROL1(MIDIHostMsg_StartSession,
43 int /* client id */) 43 int /* client id */)
44 44
45 IPC_MESSAGE_CONTROL3(MIDIHostMsg_SendData, 45 IPC_MESSAGE_CONTROL3(MIDIHostMsg_SendData,
46 int /* port */, 46 unsigned int /* port */,
scherkus (not reviewing) 2013/08/21 17:46:29 I believe this should be uint32 http://dev.chromi
Takashi Toyoshima 2013/08/22 05:47:45 Done.
47 std::vector<uint8> /* data */, 47 std::vector<uint8> /* data */,
48 double /* timestamp */) 48 double /* timestamp */)
49 49
50 // Messages sent from the browser to the renderer. 50 // Messages sent from the browser to the renderer.
51 51
52 IPC_MESSAGE_CONTROL4(MIDIMsg_SessionStarted, 52 IPC_MESSAGE_CONTROL4(MIDIMsg_SessionStarted,
53 int /* client id */, 53 int /* client id */,
54 bool /* success */, 54 bool /* success */,
55 media::MIDIPortInfoList /* input ports */, 55 media::MIDIPortInfoList /* input ports */,
56 media::MIDIPortInfoList /* output ports */) 56 media::MIDIPortInfoList /* output ports */)
57 57
58 IPC_MESSAGE_CONTROL3(MIDIMsg_DataReceived, 58 IPC_MESSAGE_CONTROL3(MIDIMsg_DataReceived,
59 int /* port */, 59 int /* port */,
60 std::vector<uint8> /* data */, 60 std::vector<uint8> /* data */,
61 double /* timestamp */) 61 double /* timestamp */)
62 62
63 IPC_MESSAGE_CONTROL1(MIDIMsg_AcknowledgeSentData, 63 IPC_MESSAGE_CONTROL1(MIDIMsg_AcknowledgeSentData,
64 size_t /* bytes sent */) 64 size_t /* bytes sent */)
scherkus (not reviewing) 2013/08/21 17:46:29 shouldn't this also be an explicitly sized type?
Takashi Toyoshima 2013/08/22 05:47:45 I see. A lot of messages which handles size seem t
palmer 2013/08/22 18:25:41 Yes, scherkus is correct that size_t, like all rel
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698