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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 | 51 |
52 #include "base/compiler_specific.h" | 52 #include "base/compiler_specific.h" |
53 #include "base/memory/ref_counted.h" | 53 #include "base/memory/ref_counted.h" |
54 #include "base/memory/scoped_ptr.h" | 54 #include "base/memory/scoped_ptr.h" |
55 #include "base/memory/weak_ptr.h" | 55 #include "base/memory/weak_ptr.h" |
56 #include "base/process/process.h" | 56 #include "base/process/process.h" |
57 #include "content/browser/renderer_host/media/video_capture_buffer_pool.h" | 57 #include "content/browser/renderer_host/media/video_capture_buffer_pool.h" |
58 #include "content/browser/renderer_host/media/video_capture_controller_event_han
dler.h" | 58 #include "content/browser/renderer_host/media/video_capture_controller_event_han
dler.h" |
59 #include "content/common/content_export.h" | 59 #include "content/common/content_export.h" |
60 #include "content/common/media/video_capture.h" | 60 #include "content/common/media/video_capture.h" |
61 #include "media/video/capture/video_capture.h" | |
62 #include "media/video/capture/video_capture_device.h" | 61 #include "media/video/capture/video_capture_device.h" |
63 #include "media/video/capture/video_capture_types.h" | 62 #include "media/video/capture/video_capture_types.h" |
64 | 63 |
65 namespace content { | 64 namespace content { |
66 class VideoCaptureBufferPool; | 65 class VideoCaptureBufferPool; |
67 | 66 |
68 class CONTENT_EXPORT VideoCaptureController { | 67 class CONTENT_EXPORT VideoCaptureController { |
69 public: | 68 public: |
70 VideoCaptureController(); | 69 VideoCaptureController(); |
71 virtual ~VideoCaptureController(); | 70 virtual ~VideoCaptureController(); |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 media::VideoCaptureFormat video_capture_format_; | 149 media::VideoCaptureFormat video_capture_format_; |
151 | 150 |
152 base::WeakPtrFactory<VideoCaptureController> weak_ptr_factory_; | 151 base::WeakPtrFactory<VideoCaptureController> weak_ptr_factory_; |
153 | 152 |
154 DISALLOW_COPY_AND_ASSIGN(VideoCaptureController); | 153 DISALLOW_COPY_AND_ASSIGN(VideoCaptureController); |
155 }; | 154 }; |
156 | 155 |
157 } // namespace content | 156 } // namespace content |
158 | 157 |
159 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_CONTROLLER_H_ | 158 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_CONTROLLER_H_ |
OLD | NEW |