| 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_MOCK_MEDIA_STREAM_VIDEO_SINK_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_MOCK_MEDIA_STREAM_VIDEO_SINK_H_ |
| 6 #define CONTENT_RENDERER_MEDIA_MOCK_MEDIA_STREAM_VIDEO_SINK_H_ | 6 #define CONTENT_RENDERER_MEDIA_MOCK_MEDIA_STREAM_VIDEO_SINK_H_ |
| 7 | 7 |
| 8 #include "content/public/renderer/media_stream_video_sink.h" | 8 #include "content/public/renderer/media_stream_video_sink.h" |
| 9 | 9 |
| 10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 int number_of_frames() const { return number_of_frames_; } | 32 int number_of_frames() const { return number_of_frames_; } |
| 33 media::VideoFrame::Format format() const { return format_; } | 33 media::VideoFrame::Format format() const { return format_; } |
| 34 gfx::Size frame_size() const { return frame_size_; } | 34 gfx::Size frame_size() const { return frame_size_; } |
| 35 | 35 |
| 36 bool enabled() const { return enabled_; } | 36 bool enabled() const { return enabled_; } |
| 37 blink::WebMediaStreamSource::ReadyState state() const { return state_; } | 37 blink::WebMediaStreamSource::ReadyState state() const { return state_; } |
| 38 | 38 |
| 39 private: | 39 private: |
| 40 void DeliverVideoFrame( | 40 void DeliverVideoFrame( |
| 41 const scoped_refptr<media::VideoFrame>& frame, | 41 const scoped_refptr<media::VideoFrame>& frame, |
| 42 const media::VideoCaptureFormat& format); | 42 const media::VideoCaptureFormat& format, |
| 43 const base::TimeTicks& start_ticks); |
| 43 | 44 |
| 44 int number_of_frames_; | 45 int number_of_frames_; |
| 45 bool enabled_; | 46 bool enabled_; |
| 46 media::VideoFrame::Format format_; | 47 media::VideoFrame::Format format_; |
| 47 blink::WebMediaStreamSource::ReadyState state_; | 48 blink::WebMediaStreamSource::ReadyState state_; |
| 48 gfx::Size frame_size_; | 49 gfx::Size frame_size_; |
| 49 base::WeakPtrFactory<MockMediaStreamVideoSink> weak_factory_; | 50 base::WeakPtrFactory<MockMediaStreamVideoSink> weak_factory_; |
| 50 }; | 51 }; |
| 51 | 52 |
| 52 } // namespace content | 53 } // namespace content |
| 53 | 54 |
| 54 #endif | 55 #endif |
| OLD | NEW |