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 #ifndef MEDIA_VIDEO_CAPTURE_VIDEO_CAPTURE_PROXY_H_ | 5 #ifndef MEDIA_VIDEO_CAPTURE_VIDEO_CAPTURE_PROXY_H_ |
6 #define MEDIA_VIDEO_CAPTURE_VIDEO_CAPTURE_PROXY_H_ | 6 #define MEDIA_VIDEO_CAPTURE_VIDEO_CAPTURE_PROXY_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "base/task.h" | |
11 #include "media/video/capture/video_capture.h" | 10 #include "media/video/capture/video_capture.h" |
12 | 11 |
13 namespace base { | 12 namespace base { |
14 class MessageLoopProxy; | 13 class MessageLoopProxy; |
15 } | 14 } |
16 | 15 |
17 namespace media { | 16 namespace media { |
18 | 17 |
19 // This is a helper class to proxy a VideoCapture::EventHandler. In the renderer | 18 // This is a helper class to proxy a VideoCapture::EventHandler. In the renderer |
20 // process, the VideoCaptureImpl calls its handler on a "Video Capture" thread, | 19 // process, the VideoCaptureImpl calls its handler on a "Video Capture" thread, |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 // Only accessed from main thread. | 88 // Only accessed from main thread. |
90 VideoCapture::EventHandler* proxied_; | 89 VideoCapture::EventHandler* proxied_; |
91 VideoCaptureState state_; | 90 VideoCaptureState state_; |
92 | 91 |
93 scoped_refptr<base::MessageLoopProxy> main_message_loop_; | 92 scoped_refptr<base::MessageLoopProxy> main_message_loop_; |
94 }; | 93 }; |
95 | 94 |
96 } // namespace media | 95 } // namespace media |
97 | 96 |
98 #endif // MEDIA_VIDEO_CAPTURE_VIDEO_CAPTURE_PROXY_H_ | 97 #endif // MEDIA_VIDEO_CAPTURE_VIDEO_CAPTURE_PROXY_H_ |
OLD | NEW |