| 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 // VideoCaptureImpl represents a capture device in renderer process. It provides | 5 // VideoCaptureImpl represents a capture device in renderer process. It provides |
| 6 // interfaces for clients to Start/Stop capture. It also communicates to clients | 6 // interfaces for clients to Start/Stop capture. It also communicates to clients |
| 7 // when buffer is ready, state of capture device is changed. | 7 // when buffer is ready, state of capture device is changed. |
| 8 | 8 |
| 9 // VideoCaptureImpl is also a delegate of VideoCaptureMessageFilter which relays | 9 // VideoCaptureImpl is also a delegate of VideoCaptureMessageFilter which relays |
| 10 // operation of a capture device to the browser process and receives responses | 10 // operation of a capture device to the browser process and receives responses |
| 11 // from browser process. | 11 // from browser process. |
| 12 // | 12 // |
| 13 // VideoCaptureImpl is an IO thread only object. See the comments in | 13 // VideoCaptureImpl is an IO thread only object. See the comments in |
| 14 // video_capture_impl_manager.cc for the lifetime of this object. | 14 // video_capture_impl_manager.cc for the lifetime of this object. |
| 15 // All methods must be called on the IO thread. | 15 // All methods must be called on the IO thread. |
| 16 // | 16 // |
| 17 // This is an internal class used by VideoCaptureImplManager only. Do not access | 17 // This is an internal class used by VideoCaptureImplManager only. Do not access |
| 18 // this directly. | 18 // this directly. |
| 19 | 19 |
| 20 #ifndef CONTENT_RENDERER_MEDIA_VIDEO_CAPTURE_IMPL_H_ | 20 #ifndef CONTENT_RENDERER_MEDIA_VIDEO_CAPTURE_IMPL_H_ |
| 21 #define CONTENT_RENDERER_MEDIA_VIDEO_CAPTURE_IMPL_H_ | 21 #define CONTENT_RENDERER_MEDIA_VIDEO_CAPTURE_IMPL_H_ |
| 22 | 22 |
| 23 #include <list> | 23 #include <list> |
| 24 #include <map> | 24 #include <map> |
| 25 | 25 |
| 26 #include "base/memory/weak_ptr.h" | 26 #include "base/memory/weak_ptr.h" |
| 27 #include "base/threading/thread_checker.h" | 27 #include "base/threading/thread_checker.h" |
| 28 #include "content/common/content_export.h" | 28 #include "content/common/content_export.h" |
| 29 #include "content/common/media/video_capture.h" | 29 #include "content/common/media/video_capture.h" |
| 30 #include "content/public/renderer/media_stream_video_sink.h" |
| 30 #include "content/renderer/media/video_capture_message_filter.h" | 31 #include "content/renderer/media/video_capture_message_filter.h" |
| 31 #include "media/video/capture/video_capture_types.h" | 32 #include "media/video/capture/video_capture_types.h" |
| 32 | 33 |
| 33 namespace base { | 34 namespace base { |
| 34 class MessageLoopProxy; | 35 class MessageLoopProxy; |
| 35 } // namespace base | 36 } // namespace base |
| 36 | 37 |
| 37 namespace gpu { | 38 namespace gpu { |
| 38 struct MailboxHolder; | 39 struct MailboxHolder; |
| 39 } // namespace gpu | 40 } // namespace gpu |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 // in |client_buffers_|. | 181 // in |client_buffers_|. |
| 181 // NOTE: Weak pointers must be invalidated before all other member variables. | 182 // NOTE: Weak pointers must be invalidated before all other member variables. |
| 182 base::WeakPtrFactory<VideoCaptureImpl> weak_factory_; | 183 base::WeakPtrFactory<VideoCaptureImpl> weak_factory_; |
| 183 | 184 |
| 184 DISALLOW_COPY_AND_ASSIGN(VideoCaptureImpl); | 185 DISALLOW_COPY_AND_ASSIGN(VideoCaptureImpl); |
| 185 }; | 186 }; |
| 186 | 187 |
| 187 } // namespace content | 188 } // namespace content |
| 188 | 189 |
| 189 #endif // CONTENT_RENDERER_MEDIA_VIDEO_CAPTURE_IMPL_H_ | 190 #endif // CONTENT_RENDERER_MEDIA_VIDEO_CAPTURE_IMPL_H_ |
| OLD | NEW |