Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(93)

Side by Side Diff: content/renderer/media/media_stream_video_track.h

Issue 1233033002: MediaStream: Adding VideoTrackRecorder class and unittests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Thread cleanup and niklase@ comment Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_RENDERER_MEDIA_MEDIA_STREAM_VIDEO_TRACK_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_MEDIA_STREAM_VIDEO_TRACK_H_
6 #define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_VIDEO_TRACK_H_ 6 #define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_VIDEO_TRACK_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 const MediaStreamVideoSource::ConstraintsCallback& callback, 48 const MediaStreamVideoSource::ConstraintsCallback& callback,
49 bool enabled); 49 bool enabled);
50 virtual ~MediaStreamVideoTrack(); 50 virtual ~MediaStreamVideoTrack();
51 51
52 void SetEnabled(bool enabled) override; 52 void SetEnabled(bool enabled) override;
53 53
54 void Stop() override; 54 void Stop() override;
55 55
56 void OnReadyStateChanged(blink::WebMediaStreamSource::ReadyState state); 56 void OnReadyStateChanged(blink::WebMediaStreamSource::ReadyState state);
57 57
58 const blink::WebMediaConstraints& constraints() const { 58 const blink::WebMediaConstraints& constraints() const { return constraints_; }
59 return constraints_;
60 }
61 59
62 private: 60 private:
63 // MediaStreamVideoSink is a friend to allow it to call AddSink() and 61 // MediaStreamVideoSink is a friend to allow it to call AddSink() and
64 // RemoveSink(). 62 // RemoveSink().
65 friend class MediaStreamVideoSink; 63 friend class MediaStreamVideoSink;
66 FRIEND_TEST_ALL_PREFIXES(MediaStreamRemoteVideoSourceTest, StartTrack); 64 FRIEND_TEST_ALL_PREFIXES(MediaStreamRemoteVideoSourceTest, StartTrack);
67 FRIEND_TEST_ALL_PREFIXES(MediaStreamRemoteVideoSourceTest, RemoteTrackStop); 65 FRIEND_TEST_ALL_PREFIXES(MediaStreamRemoteVideoSourceTest, RemoteTrackStop);
68 FRIEND_TEST_ALL_PREFIXES(VideoDestinationHandlerTest, PutFrame); 66 FRIEND_TEST_ALL_PREFIXES(VideoDestinationHandlerTest, PutFrame);
69 67
70 // Add |sink| to receive state changes on the main render thread and video 68 // Add |sink| to receive state changes on the main render thread and video
(...skipping 19 matching lines...) Expand all
90 // by the blink::WebMediaStreamSource and is guaranteed to outlive the 88 // by the blink::WebMediaStreamSource and is guaranteed to outlive the
91 // track. 89 // track.
92 MediaStreamVideoSource* source_; 90 MediaStreamVideoSource* source_;
93 91
94 DISALLOW_COPY_AND_ASSIGN(MediaStreamVideoTrack); 92 DISALLOW_COPY_AND_ASSIGN(MediaStreamVideoTrack);
95 }; 93 };
96 94
97 } // namespace content 95 } // namespace content
98 96
99 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_VIDEO_TRACK_H_ 97 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_VIDEO_TRACK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698