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 // TODO(hclam): This class should be renamed to VideoCaptureService. | 5 // TODO(hclam): This class should be renamed to VideoCaptureService. |
6 | 6 |
7 // This class provides access to a video capture device in the browser | 7 // This class provides access to a video capture device in the browser |
8 // process through IPC. The main function is to deliver video frames | 8 // process through IPC. The main function is to deliver video frames |
9 // to a client. | 9 // to a client. |
10 // | 10 // |
(...skipping 14 matching lines...) Expand all Loading... |
25 #include "base/memory/linked_ptr.h" | 25 #include "base/memory/linked_ptr.h" |
26 #include "base/memory/ref_counted.h" | 26 #include "base/memory/ref_counted.h" |
27 #include "base/memory/scoped_ptr.h" | 27 #include "base/memory/scoped_ptr.h" |
28 #include "base/memory/weak_ptr.h" | 28 #include "base/memory/weak_ptr.h" |
29 #include "base/message_loop/message_loop_proxy.h" | 29 #include "base/message_loop/message_loop_proxy.h" |
30 #include "base/synchronization/lock.h" | 30 #include "base/synchronization/lock.h" |
31 #include "base/threading/thread_checker.h" | 31 #include "base/threading/thread_checker.h" |
32 #include "content/common/content_export.h" | 32 #include "content/common/content_export.h" |
33 #include "content/common/media/video_capture.h" | 33 #include "content/common/media/video_capture.h" |
34 #include "content/public/renderer/media_stream_video_sink.h" | 34 #include "content/public/renderer/media_stream_video_sink.h" |
35 #include "media/video/capture/video_capture_types.h" | 35 #include "media/base/video_capture_types.h" |
36 | 36 |
37 namespace content { | 37 namespace content { |
38 | 38 |
39 class VideoCaptureImpl; | 39 class VideoCaptureImpl; |
40 class VideoCaptureMessageFilter; | 40 class VideoCaptureMessageFilter; |
41 | 41 |
42 class CONTENT_EXPORT VideoCaptureImplManager { | 42 class CONTENT_EXPORT VideoCaptureImplManager { |
43 public: | 43 public: |
44 VideoCaptureImplManager(); | 44 VideoCaptureImplManager(); |
45 virtual ~VideoCaptureImplManager(); | 45 virtual ~VideoCaptureImplManager(); |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 // Bound to the render thread. | 124 // Bound to the render thread. |
125 // NOTE: Weak pointers must be invalidated before all other member variables. | 125 // NOTE: Weak pointers must be invalidated before all other member variables. |
126 base::WeakPtrFactory<VideoCaptureImplManager> weak_factory_; | 126 base::WeakPtrFactory<VideoCaptureImplManager> weak_factory_; |
127 | 127 |
128 DISALLOW_COPY_AND_ASSIGN(VideoCaptureImplManager); | 128 DISALLOW_COPY_AND_ASSIGN(VideoCaptureImplManager); |
129 }; | 129 }; |
130 | 130 |
131 } // namespace content | 131 } // namespace content |
132 | 132 |
133 #endif // CONTENT_RENDERER_MEDIA_VIDEO_CAPTURE_IMPL_MANAGER_H_ | 133 #endif // CONTENT_RENDERER_MEDIA_VIDEO_CAPTURE_IMPL_MANAGER_H_ |
OLD | NEW |