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

Side by Side Diff: content/renderer/media/media_stream_video_capturer_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: Addressed comments. Rebased. 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_CAPTURER_SOURCE_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_MEDIA_STREAM_VIDEO_CAPTURER_SOURCE_H_
6 #define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_VIDEO_CAPTURER_SOURCE_H_ 6 #define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_VIDEO_CAPTURER_SOURCE_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 17 matching lines...) Expand all
28 MediaStreamVideoCapturerSource( 28 MediaStreamVideoCapturerSource(
29 const SourceStoppedCallback& stop_callback, 29 const SourceStoppedCallback& stop_callback,
30 std::unique_ptr<media::VideoCapturerSource> source); 30 std::unique_ptr<media::VideoCapturerSource> source);
31 MediaStreamVideoCapturerSource(const SourceStoppedCallback& stop_callback, 31 MediaStreamVideoCapturerSource(const SourceStoppedCallback& stop_callback,
32 const StreamDeviceInfo& device_info); 32 const StreamDeviceInfo& device_info);
33 ~MediaStreamVideoCapturerSource() override; 33 ~MediaStreamVideoCapturerSource() override;
34 34
35 // Implements MediaStreamVideoSource. 35 // Implements MediaStreamVideoSource.
36 void RequestRefreshFrame() override; 36 void RequestRefreshFrame() override;
37 37
38 void SetCapturingLinkSecured(bool is_secure) override;
39
38 private: 40 private:
39 friend class CanvasCaptureHandlerTest; 41 friend class CanvasCaptureHandlerTest;
40 friend class MediaStreamVideoCapturerSourceTest; 42 friend class MediaStreamVideoCapturerSourceTest;
41 43
42 // Implements MediaStreamVideoSource. 44 // Implements MediaStreamVideoSource.
43 void GetCurrentSupportedFormats( 45 void GetCurrentSupportedFormats(
44 int max_requested_width, 46 int max_requested_width,
45 int max_requested_height, 47 int max_requested_height,
46 double max_requested_frame_rate, 48 double max_requested_frame_rate,
47 const VideoCaptureDeviceFormatsCB& callback) override; 49 const VideoCaptureDeviceFormatsCB& callback) override;
(...skipping 10 matching lines...) Expand all
58 60
59 // The source that provides video frames. 61 // The source that provides video frames.
60 const std::unique_ptr<media::VideoCapturerSource> source_; 62 const std::unique_ptr<media::VideoCapturerSource> source_;
61 63
62 DISALLOW_COPY_AND_ASSIGN(MediaStreamVideoCapturerSource); 64 DISALLOW_COPY_AND_ASSIGN(MediaStreamVideoCapturerSource);
63 }; 65 };
64 66
65 } // namespace content 67 } // namespace content
66 68
67 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_VIDEO_CAPTURER_SOURCE_H_ 69 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_VIDEO_CAPTURER_SOURCE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698