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 20 matching lines...) Expand all Loading... |
31 public media::midi::MidiManagerClient { | 31 public media::midi::MidiManagerClient { |
32 public: | 32 public: |
33 // Called from UI thread from the owner of this object. | 33 // Called from UI thread from the owner of this object. |
34 MidiHost(int renderer_process_id, media::midi::MidiManager* midi_manager); | 34 MidiHost(int renderer_process_id, media::midi::MidiManager* midi_manager); |
35 | 35 |
36 // BrowserMessageFilter implementation. | 36 // BrowserMessageFilter implementation. |
37 void OnDestruct() const override; | 37 void OnDestruct() const override; |
38 bool OnMessageReceived(const IPC::Message& message) override; | 38 bool OnMessageReceived(const IPC::Message& message) override; |
39 | 39 |
40 // MidiManagerClient implementation. | 40 // MidiManagerClient implementation. |
41 void CompleteStartSession(media::midi::MidiResult result) override; | 41 void CompleteStartSession(media::midi::Result result) override; |
42 void AddInputPort(const media::midi::MidiPortInfo& info) override; | 42 void AddInputPort(const media::midi::MidiPortInfo& info) override; |
43 void AddOutputPort(const media::midi::MidiPortInfo& info) override; | 43 void AddOutputPort(const media::midi::MidiPortInfo& info) override; |
44 void SetInputPortState(uint32 port, | 44 void SetInputPortState(uint32 port, |
45 media::midi::MidiPortState state) override; | 45 media::midi::MidiPortState state) override; |
46 void SetOutputPortState(uint32 port, | 46 void SetOutputPortState(uint32 port, |
47 media::midi::MidiPortState state) override; | 47 media::midi::MidiPortState state) override; |
48 void ReceiveMidiData(uint32 port, | 48 void ReceiveMidiData(uint32 port, |
49 const uint8* data, | 49 const uint8* data, |
50 size_t length, | 50 size_t length, |
51 double timestamp) override; | 51 double timestamp) override; |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 | 114 |
115 // Protects access to |output_port_count_|. | 115 // Protects access to |output_port_count_|. |
116 base::Lock output_port_count_lock_; | 116 base::Lock output_port_count_lock_; |
117 | 117 |
118 DISALLOW_COPY_AND_ASSIGN(MidiHost); | 118 DISALLOW_COPY_AND_ASSIGN(MidiHost); |
119 }; | 119 }; |
120 | 120 |
121 } // namespace content | 121 } // namespace content |
122 | 122 |
123 #endif // CONTENT_BROWSER_MEDIA_MIDI_HOST_H_ | 123 #endif // CONTENT_BROWSER_MEDIA_MIDI_HOST_H_ |
OLD | NEW |