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

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

Issue 366243003: VideoTrackAdapter: Add passing frames monitor, notify MSVCS -> MSVTrack(s) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: grunell@ comments and added a UT with 1 source muted pinging two tracks. Created 6 years, 5 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 | Annotate | Revision Log
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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 43
44 // Constructor for video tracks. 44 // Constructor for video tracks.
45 MediaStreamVideoTrack( 45 MediaStreamVideoTrack(
46 MediaStreamVideoSource* source, 46 MediaStreamVideoSource* source,
47 const blink::WebMediaConstraints& constraints, 47 const blink::WebMediaConstraints& constraints,
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 virtual void SetEnabled(bool enabled) OVERRIDE; 52 virtual void SetEnabled(bool enabled) OVERRIDE;
53 virtual void SetMutedState(bool state) OVERRIDE;
54 virtual bool GetMutedState(void) const OVERRIDE;
55
53 virtual void Stop() OVERRIDE; 56 virtual void Stop() OVERRIDE;
54 57
55 void OnReadyStateChanged(blink::WebMediaStreamSource::ReadyState state); 58 void OnReadyStateChanged(blink::WebMediaStreamSource::ReadyState state);
56 59
57 const blink::WebMediaConstraints& constraints() const { 60 const blink::WebMediaConstraints& constraints() const {
58 return constraints_; 61 return constraints_;
59 } 62 }
60 63
61 protected: 64 protected:
62 // Used to DCHECK that we are called on the correct thread. 65 // Used to DCHECK that we are called on the correct thread.
(...skipping 30 matching lines...) Expand all
93 // by the blink::WebMediaStreamSource and is guaranteed to outlive the 96 // by the blink::WebMediaStreamSource and is guaranteed to outlive the
94 // track. 97 // track.
95 MediaStreamVideoSource* source_; 98 MediaStreamVideoSource* source_;
96 99
97 DISALLOW_COPY_AND_ASSIGN(MediaStreamVideoTrack); 100 DISALLOW_COPY_AND_ASSIGN(MediaStreamVideoTrack);
98 }; 101 };
99 102
100 } // namespace content 103 } // namespace content
101 104
102 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_VIDEO_TRACK_H_ 105 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_VIDEO_TRACK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698