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_PEPPER_PEPPER_MEDIA_STREAM_VIDEO_TRACK_HOST_H_ | 5 #ifndef CONTENT_RENDERER_PEPPER_PEPPER_MEDIA_STREAM_VIDEO_TRACK_HOST_H_ |
6 #define CONTENT_RENDERER_PEPPER_PEPPER_MEDIA_STREAM_VIDEO_TRACK_HOST_H_ | 6 #define CONTENT_RENDERER_PEPPER_PEPPER_MEDIA_STREAM_VIDEO_TRACK_HOST_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
10 #include "content/public/renderer/media_stream_video_sink.h" | 10 #include "content/public/renderer/media_stream_video_sink.h" |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 | 49 |
50 // PepperMediaStreamTrackHostBase overrides: | 50 // PepperMediaStreamTrackHostBase overrides: |
51 virtual void OnClose() OVERRIDE; | 51 virtual void OnClose() OVERRIDE; |
52 virtual int32_t OnHostMsgEnqueueBuffer( | 52 virtual int32_t OnHostMsgEnqueueBuffer( |
53 ppapi::host::HostMessageContext* context, int32_t index) OVERRIDE; | 53 ppapi::host::HostMessageContext* context, int32_t index) OVERRIDE; |
54 | 54 |
55 // Sends frame with |index| to |track_|. | 55 // Sends frame with |index| to |track_|. |
56 int32_t SendFrameToTrack(int32_t index); | 56 int32_t SendFrameToTrack(int32_t index); |
57 | 57 |
58 void OnVideoFrame(const scoped_refptr<media::VideoFrame>& frame, | 58 void OnVideoFrame(const scoped_refptr<media::VideoFrame>& frame, |
59 const media::VideoCaptureFormat& format); | 59 const media::VideoCaptureFormat& format, |
| 60 const base::TimeTicks& estimated_capture_time); |
60 | 61 |
61 // MediaStreamVideoSource overrides: | 62 // MediaStreamVideoSource overrides: |
62 virtual void GetCurrentSupportedFormats( | 63 virtual void GetCurrentSupportedFormats( |
63 int max_requested_width, | 64 int max_requested_width, |
64 int max_requested_height, | 65 int max_requested_height, |
65 const VideoCaptureDeviceFormatsCB& callback) OVERRIDE; | 66 const VideoCaptureDeviceFormatsCB& callback) OVERRIDE; |
66 | 67 |
67 virtual void StartSourceImpl( | 68 virtual void StartSourceImpl( |
68 const media::VideoCaptureParams& params, | 69 const media::VideoCaptureParams& params, |
69 const VideoCaptureDeliverFrameCB& frame_callback) OVERRIDE; | 70 const VideoCaptureDeliverFrameCB& frame_callback) OVERRIDE; |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 scoped_refptr<FrameDeliverer> frame_deliverer_; | 121 scoped_refptr<FrameDeliverer> frame_deliverer_; |
121 | 122 |
122 base::WeakPtrFactory<PepperMediaStreamVideoTrackHost> weak_factory_; | 123 base::WeakPtrFactory<PepperMediaStreamVideoTrackHost> weak_factory_; |
123 | 124 |
124 DISALLOW_COPY_AND_ASSIGN(PepperMediaStreamVideoTrackHost); | 125 DISALLOW_COPY_AND_ASSIGN(PepperMediaStreamVideoTrackHost); |
125 }; | 126 }; |
126 | 127 |
127 } // namespace content | 128 } // namespace content |
128 | 129 |
129 #endif // CONTENT_RENDERER_PEPPER_PEPPER_MEDIA_STREAM_VIDEO_TRACK_HOST_H_ | 130 #endif // CONTENT_RENDERER_PEPPER_PEPPER_MEDIA_STREAM_VIDEO_TRACK_HOST_H_ |
OLD | NEW |