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

Side by Side Diff: content/renderer/media/midi_message_filter.h

Issue 2349713003: IPC::MessageFilter::OnFilterAdded: IPC::Sender -> IPC::Channel (Closed)
Patch Set: . Created 4 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
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 #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
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
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_
OLDNEW
« no previous file with comments | « content/renderer/media/audio_message_filter.cc ('k') | content/renderer/media/midi_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698