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

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

Issue 1873293002: Report if video capturing meets output protection requirement. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_SOURCE_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_MEDIA_STREAM_VIDEO_SOURCE_H_
6 #define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_VIDEO_SOURCE_H_ 6 #define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_VIDEO_SOURCE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 const blink::WebMediaConstraints& constraints, 80 const blink::WebMediaConstraints& constraints,
81 const ConstraintsCallback& callback); 81 const ConstraintsCallback& callback);
82 void RemoveTrack(MediaStreamVideoTrack* track); 82 void RemoveTrack(MediaStreamVideoTrack* track);
83 83
84 // Return true if |name| is a constraint supported by MediaStreamVideoSource. 84 // Return true if |name| is a constraint supported by MediaStreamVideoSource.
85 static bool IsConstraintSupported(const std::string& name); 85 static bool IsConstraintSupported(const std::string& name);
86 86
87 // Request underlying source to capture a new frame. 87 // Request underlying source to capture a new frame.
88 virtual void RequestRefreshFrame() {} 88 virtual void RequestRefreshFrame() {}
89 89
90 // Notify underlying source if the capturing link is secure.
91 virtual void SetCapturingLinkSecured(bool is_secure) {}
92
90 // Returns the task runner where video frames will be delivered on. 93 // Returns the task runner where video frames will be delivered on.
91 base::SingleThreadTaskRunner* io_task_runner() const; 94 base::SingleThreadTaskRunner* io_task_runner() const;
92 95
93 const media::VideoCaptureFormat* GetCurrentFormat() const; 96 const media::VideoCaptureFormat* GetCurrentFormat() const;
94 97
95 protected: 98 protected:
96 void DoStopSource() override; 99 void DoStopSource() override;
97 100
98 // Sets ready state and notifies the ready state to all registered tracks. 101 // Sets ready state and notifies the ready state to all registered tracks.
99 virtual void SetReadyState(blink::WebMediaStreamSource::ReadyState state); 102 virtual void SetReadyState(blink::WebMediaStreamSource::ReadyState state);
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 192
190 // NOTE: Weak pointers must be invalidated before all other member variables. 193 // NOTE: Weak pointers must be invalidated before all other member variables.
191 base::WeakPtrFactory<MediaStreamVideoSource> weak_factory_; 194 base::WeakPtrFactory<MediaStreamVideoSource> weak_factory_;
192 195
193 DISALLOW_COPY_AND_ASSIGN(MediaStreamVideoSource); 196 DISALLOW_COPY_AND_ASSIGN(MediaStreamVideoSource);
194 }; 197 };
195 198
196 } // namespace content 199 } // namespace content
197 200
198 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_VIDEO_SOURCE_H_ 201 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_VIDEO_SOURCE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698