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

Side by Side Diff: content/renderer/media/webrtc/media_stream_remote_video_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: Inlined operator==(). 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_WEBRTC_MEDIA_STREAM_REMOTE_VIDEO_SOURCE_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_WEBRTC_MEDIA_STREAM_REMOTE_VIDEO_SOURCE_H_
6 #define CONTENT_RENDERER_MEDIA_WEBRTC_MEDIA_STREAM_REMOTE_VIDEO_SOURCE_H_ 6 #define CONTENT_RENDERER_MEDIA_WEBRTC_MEDIA_STREAM_REMOTE_VIDEO_SOURCE_H_
7 7
8 #include "base/memory/weak_ptr.h" 8 #include "base/memory/weak_ptr.h"
9 #include "base/single_thread_task_runner.h" 9 #include "base/single_thread_task_runner.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
(...skipping 18 matching lines...) Expand all
29 protected: 29 protected:
30 // Implements MediaStreamVideoSource. 30 // Implements MediaStreamVideoSource.
31 void GetCurrentSupportedFormats( 31 void GetCurrentSupportedFormats(
32 int max_requested_width, 32 int max_requested_width,
33 int max_requested_height, 33 int max_requested_height,
34 double max_requested_frame_rate, 34 double max_requested_frame_rate,
35 const VideoCaptureDeviceFormatsCB& callback) override; 35 const VideoCaptureDeviceFormatsCB& callback) override;
36 36
37 void StartSourceImpl( 37 void StartSourceImpl(
38 const media::VideoCaptureFormat& format, 38 const media::VideoCaptureFormat& format,
39 const blink::WebMediaConstraints& constraints,
39 const VideoCaptureDeliverFrameCB& frame_callback) override; 40 const VideoCaptureDeliverFrameCB& frame_callback) override;
40 41
41 void StopSourceImpl() override; 42 void StopSourceImpl() override;
42 43
43 // Used by tests to test that a frame can be received and that the 44 // Used by tests to test that a frame can be received and that the
44 // MediaStreamRemoteVideoSource behaves as expected. 45 // MediaStreamRemoteVideoSource behaves as expected.
45 webrtc::VideoRendererInterface* RenderInterfaceForTest(); 46 webrtc::VideoRendererInterface* RenderInterfaceForTest();
46 47
47 private: 48 private:
48 void OnChanged(webrtc::MediaStreamTrackInterface::TrackState state); 49 void OnChanged(webrtc::MediaStreamTrackInterface::TrackState state);
49 50
50 // Internal class used for receiving frames from the webrtc track on a 51 // Internal class used for receiving frames from the webrtc track on a
51 // libjingle thread and forward it to the IO-thread. 52 // libjingle thread and forward it to the IO-thread.
52 class RemoteVideoSourceDelegate; 53 class RemoteVideoSourceDelegate;
53 scoped_refptr<RemoteVideoSourceDelegate> delegate_; 54 scoped_refptr<RemoteVideoSourceDelegate> delegate_;
54 scoped_ptr<TrackObserver> observer_; 55 scoped_ptr<TrackObserver> observer_;
55 56
56 DISALLOW_COPY_AND_ASSIGN(MediaStreamRemoteVideoSource); 57 DISALLOW_COPY_AND_ASSIGN(MediaStreamRemoteVideoSource);
57 }; 58 };
58 59
59 } // namespace content 60 } // namespace content
60 61
61 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_MEDIA_STREAM_REMOTE_VIDEO_SOURCE_H_ 62 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_MEDIA_STREAM_REMOTE_VIDEO_SOURCE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698