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

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

Issue 1124263004: New resolution change policies for desktop and tab capture. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments from mcasas. Created 5 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 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/gtest_prod_util.h" 9 #include "base/gtest_prod_util.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 protected: 90 protected:
91 // Implements MediaStreamVideoSource. 91 // Implements MediaStreamVideoSource.
92 void GetCurrentSupportedFormats( 92 void GetCurrentSupportedFormats(
93 int max_requested_width, 93 int max_requested_width,
94 int max_requested_height, 94 int max_requested_height,
95 double max_requested_frame_rate, 95 double max_requested_frame_rate,
96 const VideoCaptureDeviceFormatsCB& callback) override; 96 const VideoCaptureDeviceFormatsCB& callback) override;
97 97
98 void StartSourceImpl( 98 void StartSourceImpl(
99 const media::VideoCaptureFormat& format, 99 const media::VideoCaptureFormat& format,
100 const blink::WebMediaConstraints& constraints,
100 const VideoCaptureDeliverFrameCB& frame_callback) override; 101 const VideoCaptureDeliverFrameCB& frame_callback) override;
101 102
102 void StopSourceImpl() override; 103 void StopSourceImpl() override;
103 104
104 private: 105 private:
105 void OnStarted(bool result); 106 void OnStarted(bool result);
106 // The delegate that provides video frames. 107 // The delegate that provides video frames.
107 const scoped_ptr<media::VideoCapturerSource> delegate_; 108 const scoped_ptr<media::VideoCapturerSource> delegate_;
108 109
109 DISALLOW_COPY_AND_ASSIGN(MediaStreamVideoCapturerSource); 110 DISALLOW_COPY_AND_ASSIGN(MediaStreamVideoCapturerSource);
110 }; 111 };
111 112
112 } // namespace content 113 } // namespace content
113 114
114 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_VIDEO_CAPTURER_SOURCE_H_ 115 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_VIDEO_CAPTURER_SOURCE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698