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

Side by Side Diff: content/renderer/media/video_capture_impl_manager.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. Created 4 years, 7 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_VIDEO_CAPTURE_IMPL_MANAGER_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_VIDEO_CAPTURE_IMPL_MANAGER_H_
6 #define CONTENT_RENDERER_MEDIA_VIDEO_CAPTURE_IMPL_MANAGER_H_ 6 #define CONTENT_RENDERER_MEDIA_VIDEO_CAPTURE_IMPL_MANAGER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 10
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 base::Closure StartCapture( 70 base::Closure StartCapture(
71 media::VideoCaptureSessionId id, 71 media::VideoCaptureSessionId id,
72 const media::VideoCaptureParams& params, 72 const media::VideoCaptureParams& params,
73 const VideoCaptureStateUpdateCB& state_update_cb, 73 const VideoCaptureStateUpdateCB& state_update_cb,
74 const VideoCaptureDeliverFrameCB& deliver_frame_cb); 74 const VideoCaptureDeliverFrameCB& deliver_frame_cb);
75 75
76 // Requests that the video capturer send a frame "soon" (e.g., to resolve 76 // Requests that the video capturer send a frame "soon" (e.g., to resolve
77 // picture loss or quality issues). 77 // picture loss or quality issues).
78 void RequestRefreshFrame(media::VideoCaptureSessionId id); 78 void RequestRefreshFrame(media::VideoCaptureSessionId id);
79 79
80 // Set if the video capturing link is secure.
81 void SetCapturingLinkSecured(media::VideoCaptureSessionId id,
82 const std::string& stream_device_id,
83 bool is_secure);
84
80 // Get supported formats supported by the device for the given session 85 // Get supported formats supported by the device for the given session
81 // ID. |callback| will be called on the IO thread. 86 // ID. |callback| will be called on the IO thread.
82 void GetDeviceSupportedFormats(media::VideoCaptureSessionId id, 87 void GetDeviceSupportedFormats(media::VideoCaptureSessionId id,
83 const VideoCaptureDeviceFormatsCB& callback); 88 const VideoCaptureDeviceFormatsCB& callback);
84 89
85 // Get supported formats currently in use for the given session ID. 90 // Get supported formats currently in use for the given session ID.
86 // |callback| will be called on the IO thread. 91 // |callback| will be called on the IO thread.
87 void GetDeviceFormatsInUse(media::VideoCaptureSessionId id, 92 void GetDeviceFormatsInUse(media::VideoCaptureSessionId id,
88 const VideoCaptureDeviceFormatsCB& callback); 93 const VideoCaptureDeviceFormatsCB& callback);
89 94
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 // Bound to the render thread. 130 // Bound to the render thread.
126 // NOTE: Weak pointers must be invalidated before all other member variables. 131 // NOTE: Weak pointers must be invalidated before all other member variables.
127 base::WeakPtrFactory<VideoCaptureImplManager> weak_factory_; 132 base::WeakPtrFactory<VideoCaptureImplManager> weak_factory_;
128 133
129 DISALLOW_COPY_AND_ASSIGN(VideoCaptureImplManager); 134 DISALLOW_COPY_AND_ASSIGN(VideoCaptureImplManager);
130 }; 135 };
131 136
132 } // namespace content 137 } // namespace content
133 138
134 #endif // CONTENT_RENDERER_MEDIA_VIDEO_CAPTURE_IMPL_MANAGER_H_ 139 #endif // CONTENT_RENDERER_MEDIA_VIDEO_CAPTURE_IMPL_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698