OLD | NEW |
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_ |
11 #define CONTENT_RENDERER_MEDIA_VIDEO_CAPTURE_MESSAGE_FILTER_H_ | 11 #define CONTENT_RENDERER_MEDIA_VIDEO_CAPTURE_MESSAGE_FILTER_H_ |
12 | 12 |
13 #include <map> | 13 #include <map> |
14 | 14 |
15 #include "base/message_loop_proxy.h" | 15 #include "base/message_loop/message_loop_proxy.h" |
16 #include "base/shared_memory.h" | 16 #include "base/shared_memory.h" |
17 #include "content/common/content_export.h" | 17 #include "content/common/content_export.h" |
18 #include "content/common/media/video_capture.h" | 18 #include "content/common/media/video_capture.h" |
19 #include "ipc/ipc_channel_proxy.h" | 19 #include "ipc/ipc_channel_proxy.h" |
20 #include "media/video/capture/video_capture.h" | 20 #include "media/video/capture/video_capture.h" |
21 | 21 |
22 namespace content { | 22 namespace content { |
23 | 23 |
24 class CONTENT_EXPORT VideoCaptureMessageFilter | 24 class CONTENT_EXPORT VideoCaptureMessageFilter |
25 : public IPC::ChannelProxy::MessageFilter { | 25 : public IPC::ChannelProxy::MessageFilter { |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 IPC::Channel* channel_; | 100 IPC::Channel* channel_; |
101 | 101 |
102 scoped_refptr<base::MessageLoopProxy> message_loop_proxy_; | 102 scoped_refptr<base::MessageLoopProxy> message_loop_proxy_; |
103 | 103 |
104 DISALLOW_COPY_AND_ASSIGN(VideoCaptureMessageFilter); | 104 DISALLOW_COPY_AND_ASSIGN(VideoCaptureMessageFilter); |
105 }; | 105 }; |
106 | 106 |
107 } // namespace content | 107 } // namespace content |
108 | 108 |
109 #endif // CONTENT_RENDERER_MEDIA_VIDEO_CAPTURE_MESSAGE_FILTER_H_ | 109 #endif // CONTENT_RENDERER_MEDIA_VIDEO_CAPTURE_MESSAGE_FILTER_H_ |
OLD | NEW |