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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 void AddTrack(MediaStreamVideoTrack* track, | 56 void AddTrack(MediaStreamVideoTrack* track, |
57 const VideoCaptureDeliverFrameCB& frame_callback, | 57 const VideoCaptureDeliverFrameCB& frame_callback, |
58 const blink::WebMediaConstraints& constraints, | 58 const blink::WebMediaConstraints& constraints, |
59 const ConstraintsCallback& callback); | 59 const ConstraintsCallback& callback); |
60 void RemoveTrack(MediaStreamVideoTrack* track); | 60 void RemoveTrack(MediaStreamVideoTrack* track); |
61 | 61 |
62 // Return true if |name| is a constraint supported by MediaStreamVideoSource. | 62 // Return true if |name| is a constraint supported by MediaStreamVideoSource. |
63 static bool IsConstraintSupported(const std::string& name); | 63 static bool IsConstraintSupported(const std::string& name); |
64 | 64 |
65 // Returns the MessageLoopProxy where video frames will be delivered on. | 65 // Returns the MessageLoopProxy where video frames will be delivered on. |
66 const scoped_refptr<base::MessageLoopProxy>& io_message_loop() const; | 66 base::SingleThreadTaskRunner* io_task_runner() const; |
67 | 67 |
68 // Constraint keys used by a video source. | 68 // Constraint keys used by a video source. |
69 // Specified by draft-alvestrand-constraints-resolution-00b | 69 // Specified by draft-alvestrand-constraints-resolution-00b |
70 static const char kMinAspectRatio[]; // minAspectRatio | 70 static const char kMinAspectRatio[]; // minAspectRatio |
71 static const char kMaxAspectRatio[]; // maxAspectRatio | 71 static const char kMaxAspectRatio[]; // maxAspectRatio |
72 static const char kMaxWidth[]; // maxWidth | 72 static const char kMaxWidth[]; // maxWidth |
73 static const char kMinWidth[]; // minWidth | 73 static const char kMinWidth[]; // minWidth |
74 static const char kMaxHeight[]; // maxHeight | 74 static const char kMaxHeight[]; // maxHeight |
75 static const char kMinHeight[]; // minHeight | 75 static const char kMinHeight[]; // minHeight |
76 static const char kMaxFrameRate[]; // maxFrameRate | 76 static const char kMaxFrameRate[]; // maxFrameRate |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 | 182 |
183 // NOTE: Weak pointers must be invalidated before all other member variables. | 183 // NOTE: Weak pointers must be invalidated before all other member variables. |
184 base::WeakPtrFactory<MediaStreamVideoSource> weak_factory_; | 184 base::WeakPtrFactory<MediaStreamVideoSource> weak_factory_; |
185 | 185 |
186 DISALLOW_COPY_AND_ASSIGN(MediaStreamVideoSource); | 186 DISALLOW_COPY_AND_ASSIGN(MediaStreamVideoSource); |
187 }; | 187 }; |
188 | 188 |
189 } // namespace content | 189 } // namespace content |
190 | 190 |
191 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_VIDEO_SOURCE_H_ | 191 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_VIDEO_SOURCE_H_ |
OLD | NEW |