OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_PUBLIC_RENDERER_MEDIA_STREAM_VIDEO_SINK_H_ | 5 #ifndef CONTENT_PUBLIC_RENDERER_MEDIA_STREAM_VIDEO_SINK_H_ |
6 #define CONTENT_PUBLIC_RENDERER_MEDIA_STREAM_VIDEO_SINK_H_ | 6 #define CONTENT_PUBLIC_RENDERER_MEDIA_STREAM_VIDEO_SINK_H_ |
7 | 7 |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
11 #include "base/time/time.h" | 11 #include "base/time/time.h" |
12 #include "content/common/content_export.h" | 12 #include "content/common/content_export.h" |
13 #include "content/common/media/video_capture.h" | 13 #include "content/common/media/video_capture.h" |
14 #include "content/public/renderer/media_stream_sink.h" | 14 #include "content/public/renderer/media_stream_sink.h" |
15 #include "media/base/video_capturer_source.h" | 15 #include "media/capture/video_capturer_source.h" |
16 #include "third_party/WebKit/public/platform/WebMediaStreamTrack.h" | 16 #include "third_party/WebKit/public/platform/WebMediaStreamTrack.h" |
17 | 17 |
18 namespace content { | 18 namespace content { |
19 | 19 |
20 // MediaStreamVideoSink is an interface used for receiving video frames from a | 20 // MediaStreamVideoSink is an interface used for receiving video frames from a |
21 // Video Stream Track or a Video Source. It should be extended by embedders, | 21 // Video Stream Track or a Video Source. It should be extended by embedders, |
22 // which connect/disconnect the sink implementation to a track to start/stop the | 22 // which connect/disconnect the sink implementation to a track to start/stop the |
23 // flow of video frames. | 23 // flow of video frames. |
24 // | 24 // |
25 // http://dev.w3.org/2011/webrtc/editor/getusermedia.html | 25 // http://dev.w3.org/2011/webrtc/editor/getusermedia.html |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 | 57 |
58 private: | 58 private: |
59 // Set by ConnectToTrack() and cleared by DisconnectFromTrack(). | 59 // Set by ConnectToTrack() and cleared by DisconnectFromTrack(). |
60 blink::WebMediaStreamTrack connected_track_; | 60 blink::WebMediaStreamTrack connected_track_; |
61 }; | 61 }; |
62 | 62 |
63 | 63 |
64 } // namespace content | 64 } // namespace content |
65 | 65 |
66 #endif // CONTENT_PUBLIC_RENDERER_MEDIA_STREAM_VIDEO_SINK_H_ | 66 #endif // CONTENT_PUBLIC_RENDERER_MEDIA_STREAM_VIDEO_SINK_H_ |
OLD | NEW |