| 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 CONTENT_RENDERER_MEDIA_RTC_VIDEO_CAPTURE_DELEGATE_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_RTC_VIDEO_CAPTURE_DELEGATE_H_ |
| 6 #define CONTENT_RENDERER_MEDIA_RTC_VIDEO_CAPTURE_DELEGATE_H_ | 6 #define CONTENT_RENDERER_MEDIA_RTC_VIDEO_CAPTURE_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/message_loop_proxy.h" | 9 #include "base/message_loop/message_loop_proxy.h" |
| 10 #include "content/common/media/video_capture.h" | 10 #include "content/common/media/video_capture.h" |
| 11 #include "content/renderer/media/video_capture_impl_manager.h" | 11 #include "content/renderer/media/video_capture_impl_manager.h" |
| 12 #include "media/video/capture/video_capture.h" | 12 #include "media/video/capture/video_capture.h" |
| 13 | 13 |
| 14 namespace content { | 14 namespace content { |
| 15 | 15 |
| 16 // Implements a simple reference counted video capturer that guarantees that | 16 // Implements a simple reference counted video capturer that guarantees that |
| 17 // methods in RtcVideoCaptureDelegateEventHandler is only called from when | 17 // methods in RtcVideoCaptureDelegateEventHandler is only called from when |
| 18 // StartCapture have been called until after StopCapture have been called. | 18 // StartCapture have been called until after StopCapture have been called. |
| 19 // It uses VideoCaptureImplManager to start / stop and receive I420 frames | 19 // It uses VideoCaptureImplManager to start / stop and receive I420 frames |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 // |state_callback_| is provided to this class in StartCapture and must be | 83 // |state_callback_| is provided to this class in StartCapture and must be |
| 84 // valid until StopCapture is called. | 84 // valid until StopCapture is called. |
| 85 StateChangeCallback state_callback_; | 85 StateChangeCallback state_callback_; |
| 86 // Message loop of the caller of StartCapture. | 86 // Message loop of the caller of StartCapture. |
| 87 scoped_refptr<base::MessageLoopProxy> message_loop_proxy_; | 87 scoped_refptr<base::MessageLoopProxy> message_loop_proxy_; |
| 88 }; | 88 }; |
| 89 | 89 |
| 90 } // namespace content | 90 } // namespace content |
| 91 | 91 |
| 92 #endif // CONTENT_RENDERER_MEDIA_RTC_VIDEO_CAPTURE_DELEGATE_H_ | 92 #endif // CONTENT_RENDERER_MEDIA_RTC_VIDEO_CAPTURE_DELEGATE_H_ |
| OLD | NEW |