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

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

Issue 2972553002: Remove MediaStreamVideoSource::GetCurrentSupportedFormats() (Closed)
Patch Set: remove extra use in media_stream_video_capturer_source_unittest.cc Created 3 years, 5 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
« no previous file with comments | « no previous file | content/renderer/media/media_stream_video_capturer_source.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <memory> 8 #include <memory>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 30 matching lines...) Expand all
41 41
42 private: 42 private:
43 friend class CanvasCaptureHandlerTest; 43 friend class CanvasCaptureHandlerTest;
44 friend class MediaStreamVideoCapturerSourceTest; 44 friend class MediaStreamVideoCapturerSourceTest;
45 friend class MediaStreamVideoCapturerSourceOldConstraintsTest; 45 friend class MediaStreamVideoCapturerSourceOldConstraintsTest;
46 46
47 // MediaStreamVideoSource overrides. 47 // MediaStreamVideoSource overrides.
48 void RequestRefreshFrame() override; 48 void RequestRefreshFrame() override;
49 void OnHasConsumers(bool has_consumers) override; 49 void OnHasConsumers(bool has_consumers) override;
50 void OnCapturingLinkSecured(bool is_secure) override; 50 void OnCapturingLinkSecured(bool is_secure) override;
51 void GetCurrentSupportedFormats(
52 int max_requested_width,
53 int max_requested_height,
54 double max_requested_frame_rate,
55 const VideoCaptureDeviceFormatsCB& callback) override;
56 void StartSourceImpl( 51 void StartSourceImpl(
57 const media::VideoCaptureFormat& format, 52 const media::VideoCaptureFormat& format,
58 const blink::WebMediaConstraints& constraints, 53 const blink::WebMediaConstraints& constraints,
59 const VideoCaptureDeliverFrameCB& frame_callback) override; 54 const VideoCaptureDeliverFrameCB& frame_callback) override;
60 void StopSourceImpl() override; 55 void StopSourceImpl() override;
61 base::Optional<media::VideoCaptureFormat> GetCurrentFormatImpl() 56 base::Optional<media::VideoCaptureFormat> GetCurrentFormatImpl()
62 const override; 57 const override;
63 58
64 // RenderFrameObserver implementation. 59 // RenderFrameObserver implementation.
65 void OnDestruct() final {} 60 void OnDestruct() final {}
(...skipping 10 matching lines...) Expand all
76 bool is_capture_starting_ = false; 71 bool is_capture_starting_ = false;
77 72
78 media::VideoCaptureParams capture_params_; 73 media::VideoCaptureParams capture_params_;
79 74
80 DISALLOW_COPY_AND_ASSIGN(MediaStreamVideoCapturerSource); 75 DISALLOW_COPY_AND_ASSIGN(MediaStreamVideoCapturerSource);
81 }; 76 };
82 77
83 } // namespace content 78 } // namespace content
84 79
85 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_VIDEO_CAPTURER_SOURCE_H_ 80 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_VIDEO_CAPTURER_SOURCE_H_
OLDNEW
« no previous file with comments | « no previous file | content/renderer/media/media_stream_video_capturer_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698