OLD | NEW |
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 16 matching lines...) Expand all Loading... |
27 : public MediaStreamVideoSource, | 27 : public MediaStreamVideoSource, |
28 public RenderFrameObserver { | 28 public RenderFrameObserver { |
29 public: | 29 public: |
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 media::VideoFacingMode GetVideoFacing() override; |
37 | 38 |
38 private: | 39 private: |
39 friend class CanvasCaptureHandlerTest; | 40 friend class CanvasCaptureHandlerTest; |
40 friend class MediaStreamVideoCapturerSourceTest; | 41 friend class MediaStreamVideoCapturerSourceTest; |
41 | 42 |
42 // MediaStreamVideoSource overrides. | 43 // MediaStreamVideoSource overrides. |
43 void RequestRefreshFrame() override; | 44 void RequestRefreshFrame() override; |
44 void OnHasConsumers(bool has_consumers) override; | 45 void OnHasConsumers(bool has_consumers) override; |
45 void OnCapturingLinkSecured(bool is_secure) override; | 46 void OnCapturingLinkSecured(bool is_secure) override; |
46 void GetCurrentSupportedFormats( | 47 void GetCurrentSupportedFormats( |
(...skipping 22 matching lines...) Expand all Loading... |
69 // StartSourceImpl() when starting the capture, and is reset after starting | 70 // StartSourceImpl() when starting the capture, and is reset after starting |
70 // is completed. | 71 // is completed. |
71 bool is_capture_starting_ = false; | 72 bool is_capture_starting_ = false; |
72 | 73 |
73 DISALLOW_COPY_AND_ASSIGN(MediaStreamVideoCapturerSource); | 74 DISALLOW_COPY_AND_ASSIGN(MediaStreamVideoCapturerSource); |
74 }; | 75 }; |
75 | 76 |
76 } // namespace content | 77 } // namespace content |
77 | 78 |
78 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_VIDEO_CAPTURER_SOURCE_H_ | 79 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_VIDEO_CAPTURER_SOURCE_H_ |
OLD | NEW |