| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // VideoCaptureController is the glue between a VideoCaptureDevice and all | 5 // VideoCaptureController is the glue between a VideoCaptureDevice and all |
| 6 // VideoCaptureHosts that have connected to it. A controller exists on behalf of | 6 // VideoCaptureHosts that have connected to it. A controller exists on behalf of |
| 7 // one (and only one) VideoCaptureDevice; both are owned by the | 7 // one (and only one) VideoCaptureDevice; both are owned by the |
| 8 // VideoCaptureManager. | 8 // VideoCaptureManager. |
| 9 // | 9 // |
| 10 // The VideoCaptureController is responsible for: | 10 // The VideoCaptureController is responsible for: |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 #include <memory> | 44 #include <memory> |
| 45 | 45 |
| 46 #include "base/compiler_specific.h" | 46 #include "base/compiler_specific.h" |
| 47 #include "base/macros.h" | 47 #include "base/macros.h" |
| 48 #include "base/memory/ref_counted.h" | 48 #include "base/memory/ref_counted.h" |
| 49 #include "base/memory/weak_ptr.h" | 49 #include "base/memory/weak_ptr.h" |
| 50 #include "base/process/process.h" | 50 #include "base/process/process.h" |
| 51 #include "content/browser/renderer_host/media/video_capture_controller_event_han
dler.h" | 51 #include "content/browser/renderer_host/media/video_capture_controller_event_han
dler.h" |
| 52 #include "content/common/content_export.h" | 52 #include "content/common/content_export.h" |
| 53 #include "content/common/media/video_capture.h" | 53 #include "content/common/media/video_capture.h" |
| 54 #include "media/base/video_capture_types.h" | |
| 55 #include "media/capture/video/video_frame_receiver.h" | 54 #include "media/capture/video/video_frame_receiver.h" |
| 55 #include "media/capture/video_capture_types.h" |
| 56 | 56 |
| 57 namespace media { | 57 namespace media { |
| 58 class VideoCaptureBufferPool; | 58 class VideoCaptureBufferPool; |
| 59 } | 59 } |
| 60 | 60 |
| 61 namespace content { | 61 namespace content { |
| 62 | 62 |
| 63 class CONTENT_EXPORT VideoCaptureController : public media::VideoFrameReceiver { | 63 class CONTENT_EXPORT VideoCaptureController : public media::VideoFrameReceiver { |
| 64 public: | 64 public: |
| 65 // |max_buffers| is the maximum number of video frame buffers in-flight at any | 65 // |max_buffers| is the maximum number of video frame buffers in-flight at any |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 media::VideoCaptureFormat video_capture_format_; | 169 media::VideoCaptureFormat video_capture_format_; |
| 170 | 170 |
| 171 base::WeakPtrFactory<VideoCaptureController> weak_ptr_factory_; | 171 base::WeakPtrFactory<VideoCaptureController> weak_ptr_factory_; |
| 172 | 172 |
| 173 DISALLOW_COPY_AND_ASSIGN(VideoCaptureController); | 173 DISALLOW_COPY_AND_ASSIGN(VideoCaptureController); |
| 174 }; | 174 }; |
| 175 | 175 |
| 176 } // namespace content | 176 } // namespace content |
| 177 | 177 |
| 178 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_CONTROLLER_H_ | 178 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_CONTROLLER_H_ |
| OLD | NEW |