| 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 19 matching lines...) Expand all Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |