| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_MEDIA_STREAM_VIDEO_CAPTURER_SOURCE_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_MEDIA_STREAM_VIDEO_CAPTURER_SOURCE_H_ |
| 6 #define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_VIDEO_CAPTURER_SOURCE_H_ | 6 #define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_VIDEO_CAPTURER_SOURCE_H_ |
| 7 | 7 |
| 8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/gtest_prod_util.h" | 9 #include "base/gtest_prod_util.h" |
| 10 #include "base/message_loop/message_loop_proxy.h" | 10 #include "base/message_loop/message_loop_proxy.h" |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 void OnDeviceSupportedFormatsEnumerated( | 63 void OnDeviceSupportedFormatsEnumerated( |
| 64 const media::VideoCaptureFormats& formats); | 64 const media::VideoCaptureFormats& formats); |
| 65 | 65 |
| 66 // The id identifies which video capture device is used for this video | 66 // The id identifies which video capture device is used for this video |
| 67 // capture session. | 67 // capture session. |
| 68 media::VideoCaptureSessionId session_id_; | 68 media::VideoCaptureSessionId session_id_; |
| 69 base::Closure release_device_cb_; | 69 base::Closure release_device_cb_; |
| 70 base::Closure stop_capture_cb_; | 70 base::Closure stop_capture_cb_; |
| 71 | 71 |
| 72 bool is_screen_cast_; | 72 bool is_screen_cast_; |
| 73 bool got_first_frame_; | |
| 74 | 73 |
| 75 // |running_callback| is provided to this class in StartCapture and must be | 74 // |running_callback| is provided to this class in StartCapture and must be |
| 76 // valid until StopCapture is called. | 75 // valid until StopCapture is called. |
| 77 RunningCallback running_callback_; | 76 RunningCallback running_callback_; |
| 78 | 77 |
| 79 VideoCaptureDeviceFormatsCB source_formats_callback_; | 78 VideoCaptureDeviceFormatsCB source_formats_callback_; |
| 80 | 79 |
| 81 // Bound to the render thread. | 80 // Bound to the render thread. |
| 82 base::ThreadChecker thread_checker_; | 81 base::ThreadChecker thread_checker_; |
| 83 | 82 |
| (...skipping 30 matching lines...) Expand all Loading... |
| 114 private: | 113 private: |
| 115 // The delegate that provides video frames. | 114 // The delegate that provides video frames. |
| 116 scoped_refptr<VideoCapturerDelegate> delegate_; | 115 scoped_refptr<VideoCapturerDelegate> delegate_; |
| 117 | 116 |
| 118 DISALLOW_COPY_AND_ASSIGN(MediaStreamVideoCapturerSource); | 117 DISALLOW_COPY_AND_ASSIGN(MediaStreamVideoCapturerSource); |
| 119 }; | 118 }; |
| 120 | 119 |
| 121 } // namespace content | 120 } // namespace content |
| 122 | 121 |
| 123 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_VIDEO_CAPTURER_SOURCE_H_ | 122 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_VIDEO_CAPTURER_SOURCE_H_ |
| OLD | NEW |