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

Side by Side Diff: content/renderer/media/video_capture_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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // MessageFilter that handles video capture messages and delegates them to 5 // MessageFilter that handles video capture messages and delegates them to
6 // video captures. VideoCaptureMessageFilter is operated on IO thread of 6 // video captures. VideoCaptureMessageFilter is operated on IO thread of
7 // render process. It intercepts video capture messages and process them on 7 // render process. It intercepts video capture messages and process them on
8 // IO thread since these messages are time critical. 8 // IO thread since these messages are time critical.
9 9
10 #ifndef CONTENT_RENDERER_MEDIA_VIDEO_CAPTURE_MESSAGE_FILTER_H_ 10 #ifndef CONTENT_RENDERER_MEDIA_VIDEO_CAPTURE_MESSAGE_FILTER_H_
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 void AddDelegate(Delegate* delegate); 82 void AddDelegate(Delegate* delegate);
83 83
84 // Remove a delegate from the map. 84 // Remove a delegate from the map.
85 void RemoveDelegate(Delegate* delegate); 85 void RemoveDelegate(Delegate* delegate);
86 86
87 // Send a message asynchronously. 87 // Send a message asynchronously.
88 virtual bool Send(IPC::Message* message); 88 virtual bool Send(IPC::Message* message);
89 89
90 // IPC::MessageFilter override. Called on IO thread. 90 // IPC::MessageFilter override. Called on IO thread.
91 bool OnMessageReceived(const IPC::Message& message) override; 91 bool OnMessageReceived(const IPC::Message& message) override;
92 void OnFilterAdded(IPC::Sender* sender) override; 92 void OnFilterAdded(IPC::Channel* channel) override;
93 void OnFilterRemoved() override; 93 void OnFilterRemoved() override;
94 void OnChannelClosing() override; 94 void OnChannelClosing() override;
95 95
96 protected: 96 protected:
97 ~VideoCaptureMessageFilter() override; 97 ~VideoCaptureMessageFilter() override;
98 98
99 private: 99 private:
100 typedef std::map<int32_t, Delegate*> Delegates; 100 typedef std::map<int32_t, Delegate*> Delegates;
101 101
102 // Receive a newly created buffer from browser process. 102 // Receive a newly created buffer from browser process.
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 int32_t last_device_id_; 141 int32_t last_device_id_;
142 142
143 IPC::Sender* sender_; 143 IPC::Sender* sender_;
144 144
145 DISALLOW_COPY_AND_ASSIGN(VideoCaptureMessageFilter); 145 DISALLOW_COPY_AND_ASSIGN(VideoCaptureMessageFilter);
146 }; 146 };
147 147
148 } // namespace content 148 } // namespace content
149 149
150 #endif // CONTENT_RENDERER_MEDIA_VIDEO_CAPTURE_MESSAGE_FILTER_H_ 150 #endif // CONTENT_RENDERER_MEDIA_VIDEO_CAPTURE_MESSAGE_FILTER_H_
OLDNEW
« no previous file with comments | « content/renderer/media/midi_message_filter.cc ('k') | content/renderer/media/video_capture_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698