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

Side by Side Diff: content/renderer/media/video_capture_impl.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 (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_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_VIDEO_CAPTURE_IMPL_H_
6 #define CONTENT_RENDERER_MEDIA_VIDEO_CAPTURE_IMPL_H_ 6 #define CONTENT_RENDERER_MEDIA_VIDEO_CAPTURE_IMPL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <list> 10 #include <list>
11 #include <map> 11 #include <map>
12 12
13 #include "base/macros.h" 13 #include "base/macros.h"
14 #include "base/memory/weak_ptr.h" 14 #include "base/memory/weak_ptr.h"
15 #include "base/threading/thread_checker.h" 15 #include "base/threading/thread_checker.h"
16 #include "content/common/content_export.h" 16 #include "content/common/content_export.h"
17 #include "content/common/media/video_capture.h" 17 #include "content/common/media/video_capture.h"
18 #include "content/public/common/media_stream_request.h"
18 #include "content/public/renderer/media_stream_video_sink.h" 19 #include "content/public/renderer/media_stream_video_sink.h"
19 #include "content/renderer/media/video_capture_message_filter.h" 20 #include "content/renderer/media/video_capture_message_filter.h"
20 #include "media/base/video_capture_types.h" 21 #include "media/base/video_capture_types.h"
21 22
22 namespace base { 23 namespace base {
23 class SingleThreadTaskRunner; 24 class SingleThreadTaskRunner;
24 } // namespace base 25 } // namespace base
25 26
26 namespace media { 27 namespace media {
27 class VideoFrame; 28 class VideoFrame;
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 const VideoCaptureStateUpdateCB& state_update_cb, 71 const VideoCaptureStateUpdateCB& state_update_cb,
71 const VideoCaptureDeliverFrameCB& deliver_frame_cb); 72 const VideoCaptureDeliverFrameCB& deliver_frame_cb);
72 73
73 // Stop capturing. |client_id| is the identifier used to call StartCapture. 74 // Stop capturing. |client_id| is the identifier used to call StartCapture.
74 void StopCapture(int client_id); 75 void StopCapture(int client_id);
75 76
76 // Requests that the video capturer send a frame "soon" (e.g., to resolve 77 // Requests that the video capturer send a frame "soon" (e.g., to resolve
77 // picture loss or quality issues). 78 // picture loss or quality issues).
78 void RequestRefreshFrame(); 79 void RequestRefreshFrame();
79 80
81 // Set if the captruring link is secure.
82 void SetCapturingLinkSecured(content::MediaStreamType, bool is_secure);
83
80 // Get capturing formats supported by this device. 84 // Get capturing formats supported by this device.
81 // |callback| will be invoked with the results. 85 // |callback| will be invoked with the results.
82 void GetDeviceSupportedFormats(const VideoCaptureDeviceFormatsCB& callback); 86 void GetDeviceSupportedFormats(const VideoCaptureDeviceFormatsCB& callback);
83 87
84 // Get capturing formats currently in use by this device. 88 // Get capturing formats currently in use by this device.
85 // |callback| will be invoked with the results. 89 // |callback| will be invoked with the results.
86 void GetDeviceFormatsInUse(const VideoCaptureDeviceFormatsCB& callback); 90 void GetDeviceFormatsInUse(const VideoCaptureDeviceFormatsCB& callback);
87 91
88 media::VideoCaptureSessionId session_id() const { return session_id_; } 92 media::VideoCaptureSessionId session_id() const { return session_id_; }
89 93
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 // in |client_buffers_|. 207 // in |client_buffers_|.
204 // NOTE: Weak pointers must be invalidated before all other member variables. 208 // NOTE: Weak pointers must be invalidated before all other member variables.
205 base::WeakPtrFactory<VideoCaptureImpl> weak_factory_; 209 base::WeakPtrFactory<VideoCaptureImpl> weak_factory_;
206 210
207 DISALLOW_COPY_AND_ASSIGN(VideoCaptureImpl); 211 DISALLOW_COPY_AND_ASSIGN(VideoCaptureImpl);
208 }; 212 };
209 213
210 } // namespace content 214 } // namespace content
211 215
212 #endif // CONTENT_RENDERER_MEDIA_VIDEO_CAPTURE_IMPL_H_ 216 #endif // CONTENT_RENDERER_MEDIA_VIDEO_CAPTURE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698