OLD | NEW |
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 #ifndef CONTENT_BROWSER_MEDIA_MIDI_HOST_H_ | 5 #ifndef CONTENT_BROWSER_MEDIA_MIDI_HOST_H_ |
6 #define CONTENT_BROWSER_MEDIA_MIDI_HOST_H_ | 6 #define CONTENT_BROWSER_MEDIA_MIDI_HOST_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/gtest_prod_util.h" | 10 #include "base/gtest_prod_util.h" |
(...skipping 21 matching lines...) Expand all Loading... |
32 MidiHost(int renderer_process_id, media::MidiManager* midi_manager); | 32 MidiHost(int renderer_process_id, media::MidiManager* midi_manager); |
33 | 33 |
34 // BrowserMessageFilter implementation. | 34 // BrowserMessageFilter implementation. |
35 void OnDestruct() const override; | 35 void OnDestruct() const override; |
36 bool OnMessageReceived(const IPC::Message& message) override; | 36 bool OnMessageReceived(const IPC::Message& message) override; |
37 | 37 |
38 // MidiManagerClient implementation. | 38 // MidiManagerClient implementation. |
39 void CompleteStartSession(media::MidiResult result) override; | 39 void CompleteStartSession(media::MidiResult result) override; |
40 void AddInputPort(const media::MidiPortInfo& info) override; | 40 void AddInputPort(const media::MidiPortInfo& info) override; |
41 void AddOutputPort(const media::MidiPortInfo& info) override; | 41 void AddOutputPort(const media::MidiPortInfo& info) override; |
| 42 void SetInputPortState(uint32 port, bool connected) override; |
| 43 void SetOutputPortState(uint32 port, bool connected) override; |
42 void ReceiveMidiData(uint32 port, | 44 void ReceiveMidiData(uint32 port, |
43 const uint8* data, | 45 const uint8* data, |
44 size_t length, | 46 size_t length, |
45 double timestamp) override; | 47 double timestamp) override; |
46 void AccumulateMidiBytesSent(size_t n) override; | 48 void AccumulateMidiBytesSent(size_t n) override; |
47 | 49 |
48 // Start session to access MIDI hardware. | 50 // Start session to access MIDI hardware. |
49 void OnStartSession(); | 51 void OnStartSession(); |
50 | 52 |
51 // Data to be sent to a MIDI output port. | 53 // Data to be sent to a MIDI output port. |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 | 103 |
102 // Protects access to |sent_bytes_in_flight_|. | 104 // Protects access to |sent_bytes_in_flight_|. |
103 base::Lock in_flight_lock_; | 105 base::Lock in_flight_lock_; |
104 | 106 |
105 DISALLOW_COPY_AND_ASSIGN(MidiHost); | 107 DISALLOW_COPY_AND_ASSIGN(MidiHost); |
106 }; | 108 }; |
107 | 109 |
108 } // namespace content | 110 } // namespace content |
109 | 111 |
110 #endif // CONTENT_BROWSER_MEDIA_MIDI_HOST_H_ | 112 #endif // CONTENT_BROWSER_MEDIA_MIDI_HOST_H_ |
OLD | NEW |