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

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

Issue 2365223002: Video Capture: Allow suspension of individual devices. (Closed)
Patch Set: Created 4 years, 2 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/macros.h" 9 #include "base/macros.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 19 matching lines...) Expand all
30 MediaStreamVideoCapturerSource( 30 MediaStreamVideoCapturerSource(
31 const SourceStoppedCallback& stop_callback, 31 const SourceStoppedCallback& stop_callback,
32 std::unique_ptr<media::VideoCapturerSource> source); 32 std::unique_ptr<media::VideoCapturerSource> source);
33 MediaStreamVideoCapturerSource(const SourceStoppedCallback& stop_callback, 33 MediaStreamVideoCapturerSource(const SourceStoppedCallback& stop_callback,
34 const StreamDeviceInfo& device_info, 34 const StreamDeviceInfo& device_info,
35 RenderFrame* render_frame); 35 RenderFrame* render_frame);
36 ~MediaStreamVideoCapturerSource() override; 36 ~MediaStreamVideoCapturerSource() override;
37 37
38 // Implements MediaStreamVideoSource. 38 // Implements MediaStreamVideoSource.
39 void RequestRefreshFrame() override; 39 void RequestRefreshFrame() override;
40 40 void SetHasConsumers(bool has_consumers) override;
41 void SetCapturingLinkSecured(bool is_secure) override; 41 void SetCapturingLinkSecured(bool is_secure) override;
42 42
43 private: 43 private:
44 friend class CanvasCaptureHandlerTest; 44 friend class CanvasCaptureHandlerTest;
45 friend class MediaStreamVideoCapturerSourceTest; 45 friend class MediaStreamVideoCapturerSourceTest;
46 46
47 // Implements MediaStreamVideoSource. 47 // Implements MediaStreamVideoSource.
48 void GetCurrentSupportedFormats( 48 void GetCurrentSupportedFormats(
49 int max_requested_width, 49 int max_requested_width,
50 int max_requested_height, 50 int max_requested_height,
(...skipping 15 matching lines...) Expand all
66 66
67 // The source that provides video frames. 67 // The source that provides video frames.
68 const std::unique_ptr<media::VideoCapturerSource> source_; 68 const std::unique_ptr<media::VideoCapturerSource> source_;
69 69
70 DISALLOW_COPY_AND_ASSIGN(MediaStreamVideoCapturerSource); 70 DISALLOW_COPY_AND_ASSIGN(MediaStreamVideoCapturerSource);
71 }; 71 };
72 72
73 } // namespace content 73 } // namespace content
74 74
75 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_VIDEO_CAPTURER_SOURCE_H_ 75 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_VIDEO_CAPTURER_SOURCE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698