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

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: review #12 (for submmit) Created 7 years, 3 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 uint32 /* port */,
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 uint32 /* 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 uint32 /* bytes sent */)
OLDNEW
« no previous file with comments | « content/browser/renderer_host/media/midi_host.cc ('k') | content/renderer/media/midi_message_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698