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" |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 // Calling RemoveFromVideoTrack also not stop frame delivery through the | 56 // Calling RemoveFromVideoTrack also not stop frame delivery through the |
57 // callback immediately because it may happen on another thread. | 57 // callback immediately because it may happen on another thread. |
58 // The added callback will be reset on the render thread. | 58 // The added callback will be reset on the render thread. |
59 static void AddToVideoTrack(MediaStreamVideoSink* sink, | 59 static void AddToVideoTrack(MediaStreamVideoSink* sink, |
60 const VideoCaptureDeliverFrameCB& callback, | 60 const VideoCaptureDeliverFrameCB& callback, |
61 const blink::WebMediaStreamTrack& track); | 61 const blink::WebMediaStreamTrack& track); |
62 static void RemoveFromVideoTrack(MediaStreamVideoSink* sink, | 62 static void RemoveFromVideoTrack(MediaStreamVideoSink* sink, |
63 const blink::WebMediaStreamTrack& track); | 63 const blink::WebMediaStreamTrack& track); |
64 | 64 |
65 protected: | 65 protected: |
66 virtual ~MediaStreamVideoSink() {} | 66 ~MediaStreamVideoSink() override {} |
67 }; | 67 }; |
68 | 68 |
69 | 69 |
70 } // namespace content | 70 } // namespace content |
71 | 71 |
72 #endif // CONTENT_PUBLIC_RENDERER_MEDIA_STREAM_VIDEO_SINK_H_ | 72 #endif // CONTENT_PUBLIC_RENDERER_MEDIA_STREAM_VIDEO_SINK_H_ |
OLD | NEW |