| 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_SOURCE_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_MEDIA_STREAM_VIDEO_SOURCE_H_ |
| 6 #define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_VIDEO_SOURCE_H_ | 6 #define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_VIDEO_SOURCE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 kUnknownFrameRate = 0, | 57 kUnknownFrameRate = 0, |
| 58 }; | 58 }; |
| 59 | 59 |
| 60 MediaStreamVideoSource(); | 60 MediaStreamVideoSource(); |
| 61 ~MediaStreamVideoSource() override; | 61 ~MediaStreamVideoSource() override; |
| 62 | 62 |
| 63 // Returns the MediaStreamVideoSource object owned by |source|. | 63 // Returns the MediaStreamVideoSource object owned by |source|. |
| 64 static MediaStreamVideoSource* GetVideoSource( | 64 static MediaStreamVideoSource* GetVideoSource( |
| 65 const blink::WebMediaStreamSource& source); | 65 const blink::WebMediaStreamSource& source); |
| 66 | 66 |
| 67 bool ConnectToTrack(const blink::WebMediaStreamTrack& blink_track) override; |
| 68 |
| 69 void ApplyConstraints(const blink::WebMediaStreamTrack& blink_track, |
| 70 const blink::WebMediaConstraints& constraints, |
| 71 const ConstraintsCallback& callback); |
| 67 // Puts |track| in the registered tracks list. | 72 // Puts |track| in the registered tracks list. |
| 68 void AddTrack(MediaStreamVideoTrack* track, | 73 /*void AddTrack(MediaStreamVideoTrack* track, |
| 69 const VideoCaptureDeliverFrameCB& frame_callback, | 74 const VideoCaptureDeliverFrameCB& frame_callback, |
| 70 const blink::WebMediaConstraints& constraints, | 75 const blink::WebMediaConstraints& constraints, |
| 71 const ConstraintsCallback& callback); | 76 const ConstraintsCallback& callback);*/ |
| 72 void RemoveTrack(MediaStreamVideoTrack* track); | 77 void RemoveTrack(MediaStreamVideoTrack* track); |
| 73 | 78 |
| 74 void UpdateCapturingLinkSecure(MediaStreamVideoTrack* track, bool is_secure); | 79 void UpdateCapturingLinkSecure(MediaStreamVideoTrack* track, bool is_secure); |
| 75 | 80 |
| 76 // Request underlying source to capture a new frame. | 81 // Request underlying source to capture a new frame. |
| 77 virtual void RequestRefreshFrame() {} | 82 virtual void RequestRefreshFrame() {} |
| 78 | 83 |
| 79 // Notify underlying source if the capturing link is secure. | 84 // Notify underlying source if the capturing link is secure. |
| 80 virtual void SetCapturingLinkSecured(bool is_secure) {} | 85 virtual void SetCapturingLinkSecured(bool is_secure) {} |
| 81 | 86 |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 | 193 |
| 189 // NOTE: Weak pointers must be invalidated before all other member variables. | 194 // NOTE: Weak pointers must be invalidated before all other member variables. |
| 190 base::WeakPtrFactory<MediaStreamVideoSource> weak_factory_; | 195 base::WeakPtrFactory<MediaStreamVideoSource> weak_factory_; |
| 191 | 196 |
| 192 DISALLOW_COPY_AND_ASSIGN(MediaStreamVideoSource); | 197 DISALLOW_COPY_AND_ASSIGN(MediaStreamVideoSource); |
| 193 }; | 198 }; |
| 194 | 199 |
| 195 } // namespace content | 200 } // namespace content |
| 196 | 201 |
| 197 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_VIDEO_SOURCE_H_ | 202 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_VIDEO_SOURCE_H_ |
| OLD | NEW |