| 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 13 matching lines...) Expand all  Loading... | 
| 24 #include "base/callback.h" | 24 #include "base/callback.h" | 
| 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 "media/video/capture/video_capture_types.h" | 35 #include "media/video/capture/video_capture_types.h" | 
| 35 | 36 | 
| 36 namespace content { | 37 namespace content { | 
| 37 | 38 | 
| 38 class VideoCaptureImpl; | 39 class VideoCaptureImpl; | 
| 39 class VideoCaptureMessageFilter; | 40 class VideoCaptureMessageFilter; | 
| 40 | 41 | 
| 41 class CONTENT_EXPORT VideoCaptureImplManager { | 42 class CONTENT_EXPORT VideoCaptureImplManager { | 
| 42  public: | 43  public: | 
| 43   VideoCaptureImplManager(); | 44   VideoCaptureImplManager(); | 
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 123   // Bound to the render thread. | 124   // Bound to the render thread. | 
| 124   // NOTE: Weak pointers must be invalidated before all other member variables. | 125   // NOTE: Weak pointers must be invalidated before all other member variables. | 
| 125   base::WeakPtrFactory<VideoCaptureImplManager> weak_factory_; | 126   base::WeakPtrFactory<VideoCaptureImplManager> weak_factory_; | 
| 126 | 127 | 
| 127   DISALLOW_COPY_AND_ASSIGN(VideoCaptureImplManager); | 128   DISALLOW_COPY_AND_ASSIGN(VideoCaptureImplManager); | 
| 128 }; | 129 }; | 
| 129 | 130 | 
| 130 }  // namespace content | 131 }  // namespace content | 
| 131 | 132 | 
| 132 #endif  // CONTENT_RENDERER_MEDIA_VIDEO_CAPTURE_IMPL_MANAGER_H_ | 133 #endif  // CONTENT_RENDERER_MEDIA_VIDEO_CAPTURE_IMPL_MANAGER_H_ | 
| OLD | NEW | 
|---|