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_RENDERER_MEDIA_MIDI_MESSAGE_FILTER_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_MIDI_MESSAGE_FILTER_H_ |
6 #define CONTENT_RENDERER_MEDIA_MIDI_MESSAGE_FILTER_H_ | 6 #define CONTENT_RENDERER_MEDIA_MIDI_MESSAGE_FILTER_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 const std::vector<uint8_t>& data, | 72 const std::vector<uint8_t>& data, |
73 double timestamp); | 73 double timestamp); |
74 | 74 |
75 void EndSessionOnIOThread(); | 75 void EndSessionOnIOThread(); |
76 | 76 |
77 // Sends an IPC message using |sender_|. | 77 // Sends an IPC message using |sender_|. |
78 void Send(IPC::Message* message); | 78 void Send(IPC::Message* message); |
79 | 79 |
80 // IPC::MessageFilter override. Called on |io_task_runner|. | 80 // IPC::MessageFilter override. Called on |io_task_runner|. |
81 bool OnMessageReceived(const IPC::Message& message) override; | 81 bool OnMessageReceived(const IPC::Message& message) override; |
82 void OnFilterAdded(IPC::Sender* sender) override; | 82 void OnFilterAdded(IPC::Channel* channel) override; |
83 void OnFilterRemoved() override; | 83 void OnFilterRemoved() override; |
84 void OnChannelClosing() override; | 84 void OnChannelClosing() override; |
85 | 85 |
86 // Called when the browser process has approved (or denied) access to | 86 // Called when the browser process has approved (or denied) access to |
87 // MIDI hardware. | 87 // MIDI hardware. |
88 void OnSessionStarted(media::midi::Result result); | 88 void OnSessionStarted(media::midi::Result result); |
89 | 89 |
90 // These functions are called in 2 cases: | 90 // These functions are called in 2 cases: |
91 // (1) Just before calling |OnSessionStarted|, to notify the recipient about | 91 // (1) Just before calling |OnSessionStarted|, to notify the recipient about |
92 // existing ports. | 92 // existing ports. |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 media::midi::MidiPortInfoList outputs_; | 160 media::midi::MidiPortInfoList outputs_; |
161 | 161 |
162 size_t unacknowledged_bytes_sent_; | 162 size_t unacknowledged_bytes_sent_; |
163 | 163 |
164 DISALLOW_COPY_AND_ASSIGN(MidiMessageFilter); | 164 DISALLOW_COPY_AND_ASSIGN(MidiMessageFilter); |
165 }; | 165 }; |
166 | 166 |
167 } // namespace content | 167 } // namespace content |
168 | 168 |
169 #endif // CONTENT_RENDERER_MEDIA_MIDI_MESSAGE_FILTER_H_ | 169 #endif // CONTENT_RENDERER_MEDIA_MIDI_MESSAGE_FILTER_H_ |
OLD | NEW |