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 #ifndef CONTENT_RENDERER_MEDIA_VIDEO_CAPTURE_IMPL_MANAGER_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_VIDEO_CAPTURE_IMPL_MANAGER_H_ |
6 #define CONTENT_RENDERER_MEDIA_VIDEO_CAPTURE_IMPL_MANAGER_H_ | 6 #define CONTENT_RENDERER_MEDIA_VIDEO_CAPTURE_IMPL_MANAGER_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/callback.h" | 11 #include "base/callback.h" |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
13 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
14 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
15 #include "base/single_thread_task_runner.h" | 15 #include "base/single_thread_task_runner.h" |
16 #include "base/synchronization/lock.h" | 16 #include "base/synchronization/lock.h" |
17 #include "base/threading/thread_checker.h" | 17 #include "base/threading/thread_checker.h" |
18 #include "content/common/content_export.h" | 18 #include "content/common/content_export.h" |
19 #include "content/common/media/video_capture.h" | 19 #include "content/common/media/video_capture.h" |
20 #include "content/public/renderer/media_stream_video_sink.h" | 20 #include "content/public/renderer/media_stream_video_sink.h" |
21 #include "media/base/video_capture_types.h" | 21 #include "media/capture/video_capture_types.h" |
22 | 22 |
23 namespace content { | 23 namespace content { |
24 | 24 |
25 class VideoCaptureImpl; | 25 class VideoCaptureImpl; |
26 | 26 |
27 // TODO(hclam): This class should be renamed to VideoCaptureService. | 27 // TODO(hclam): This class should be renamed to VideoCaptureService. |
28 | 28 |
29 // This class provides access to a video capture device in the browser | 29 // This class provides access to a video capture device in the browser |
30 // process through IPC. The main function is to deliver video frames | 30 // process through IPC. The main function is to deliver video frames |
31 // to a client. | 31 // to a client. |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 // Bound to the render thread. | 125 // Bound to the render thread. |
126 // NOTE: Weak pointers must be invalidated before all other member variables. | 126 // NOTE: Weak pointers must be invalidated before all other member variables. |
127 base::WeakPtrFactory<VideoCaptureImplManager> weak_factory_; | 127 base::WeakPtrFactory<VideoCaptureImplManager> weak_factory_; |
128 | 128 |
129 DISALLOW_COPY_AND_ASSIGN(VideoCaptureImplManager); | 129 DISALLOW_COPY_AND_ASSIGN(VideoCaptureImplManager); |
130 }; | 130 }; |
131 | 131 |
132 } // namespace content | 132 } // namespace content |
133 | 133 |
134 #endif // CONTENT_RENDERER_MEDIA_VIDEO_CAPTURE_IMPL_MANAGER_H_ | 134 #endif // CONTENT_RENDERER_MEDIA_VIDEO_CAPTURE_IMPL_MANAGER_H_ |
OLD | NEW |