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

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

Issue 2664673002: Media Capture Depth Stream Extensions API: videoKind settings and constraint. (Closed)
Patch Set: Rebase to http://crrev.com/2669243004/ simplified the patch. Thanks guidou@chromium.org Created 3 years, 10 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"
11 #include "base/gtest_prod_util.h" 11 #include "base/gtest_prod_util.h"
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "base/threading/thread_checker.h" 13 #include "base/threading/thread_checker.h"
14 #include "content/common/content_export.h" 14 #include "content/common/content_export.h"
15 #include "content/public/renderer/media_stream_video_sink.h" 15 #include "content/public/renderer/media_stream_video_sink.h"
16 #include "content/renderer/media/media_stream_track.h" 16 #include "content/renderer/media/media_stream_track.h"
17 #include "content/renderer/media/media_stream_video_source.h" 17 #include "content/renderer/media/media_stream_video_source.h"
18 #include "content/renderer/media/secure_display_link_tracker.h" 18 #include "content/renderer/media/secure_display_link_tracker.h"
19 #include "media/capture/video_capture_types.h"
20 #include "third_party/WebKit/public/platform/WebString.h"
19 21
20 namespace content { 22 namespace content {
21 23
24 // VideoKind enum values. https://w3c.github.io/mediacapture-depth.
Guido Urdaneta 2017/02/10 12:45:21 These are used only here and in media_stream_const
aleksandar.stojiljkovic 2017/02/10 15:06:51 String constants removed. It is not needed to have
25 CONTENT_EXPORT extern const char kVideoKindColor[];
26 CONTENT_EXPORT extern const char kVideoKindDepth[];
27
28 // Calculates and returns videoKind value for |format|.
29 blink::WebString CONTENT_EXPORT
30 GetVideoKindForFormat(const media::VideoCaptureFormat& format);
31
22 // MediaStreamVideoTrack is a video specific representation of a 32 // MediaStreamVideoTrack is a video specific representation of a
23 // blink::WebMediaStreamTrack in content. It is owned by the blink object 33 // blink::WebMediaStreamTrack in content. It is owned by the blink object
24 // and can be retrieved from a blink object using 34 // and can be retrieved from a blink object using
25 // WebMediaStreamTrack::getExtraData() or MediaStreamVideoTrack::GetVideoTrack. 35 // WebMediaStreamTrack::getExtraData() or MediaStreamVideoTrack::GetVideoTrack.
26 class CONTENT_EXPORT MediaStreamVideoTrack : public MediaStreamTrack { 36 class CONTENT_EXPORT MediaStreamVideoTrack : public MediaStreamTrack {
27 public: 37 public:
28 // Help method to create a blink::WebMediaStreamTrack and a 38 // Help method to create a blink::WebMediaStreamTrack and a
29 // MediaStreamVideoTrack instance. The MediaStreamVideoTrack object is owned 39 // MediaStreamVideoTrack instance. The MediaStreamVideoTrack object is owned
30 // by the blink object in its WebMediaStreamTrack::ExtraData member. 40 // by the blink object in its WebMediaStreamTrack::ExtraData member.
31 // |callback| is triggered if the track is added to the source 41 // |callback| is triggered if the track is added to the source
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 104
95 // This is used for tracking if all connected video sinks are secure. 105 // This is used for tracking if all connected video sinks are secure.
96 SecureDisplayLinkTracker<MediaStreamVideoSink> secure_tracker_; 106 SecureDisplayLinkTracker<MediaStreamVideoSink> secure_tracker_;
97 107
98 DISALLOW_COPY_AND_ASSIGN(MediaStreamVideoTrack); 108 DISALLOW_COPY_AND_ASSIGN(MediaStreamVideoTrack);
99 }; 109 };
100 110
101 } // namespace content 111 } // namespace content
102 112
103 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_VIDEO_TRACK_H_ 113 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_VIDEO_TRACK_H_
OLDNEW
« no previous file with comments | « content/renderer/media/media_stream_video_source.cc ('k') | content/renderer/media/media_stream_video_track.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698