| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #ifndef CONTENT_RENDERER_MEDIA_VIDEO_CAPTURE_IMPL_H_ | 9 #ifndef CONTENT_RENDERER_MEDIA_VIDEO_CAPTURE_IMPL_H_ |
| 10 #define CONTENT_RENDERER_MEDIA_VIDEO_CAPTURE_IMPL_H_ | 10 #define CONTENT_RENDERER_MEDIA_VIDEO_CAPTURE_IMPL_H_ |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 VideoCaptureMessageFilter* filter); | 69 VideoCaptureMessageFilter* filter); |
| 70 virtual ~VideoCaptureImpl(); | 70 virtual ~VideoCaptureImpl(); |
| 71 | 71 |
| 72 void Init(); | 72 void Init(); |
| 73 void DeInit(Task* task); | 73 void DeInit(Task* task); |
| 74 void StopDevice(); | 74 void StopDevice(); |
| 75 void RestartCapture(); | 75 void RestartCapture(); |
| 76 void StartCaptureInternal(); | 76 void StartCaptureInternal(); |
| 77 void AddDelegateOnIOThread(); | 77 void AddDelegateOnIOThread(); |
| 78 void RemoveDelegateOnIOThread(Task* task); | 78 void RemoveDelegateOnIOThread(Task* task); |
| 79 virtual void Send(IPC::Message* message); |
| 79 | 80 |
| 80 scoped_refptr<VideoCaptureMessageFilter> message_filter_; | 81 scoped_refptr<VideoCaptureMessageFilter> message_filter_; |
| 81 media::VideoCaptureSessionId session_id_; | 82 media::VideoCaptureSessionId session_id_; |
| 82 scoped_refptr<base::MessageLoopProxy> ml_proxy_; | 83 scoped_refptr<base::MessageLoopProxy> ml_proxy_; |
| 83 int device_id_; | 84 int device_id_; |
| 84 | 85 |
| 85 // Pool of DIBs. | 86 // Pool of DIBs. |
| 86 typedef std::list<DIBBuffer*> CachedDIB; | 87 typedef std::list<DIBBuffer*> CachedDIB; |
| 87 CachedDIB cached_dibs_; | 88 CachedDIB cached_dibs_; |
| 88 | 89 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 101 int new_width_; | 102 int new_width_; |
| 102 int new_height_; | 103 int new_height_; |
| 103 State state_; | 104 State state_; |
| 104 | 105 |
| 105 DISALLOW_COPY_AND_ASSIGN(VideoCaptureImpl); | 106 DISALLOW_COPY_AND_ASSIGN(VideoCaptureImpl); |
| 106 }; | 107 }; |
| 107 | 108 |
| 108 DISABLE_RUNNABLE_METHOD_REFCOUNT(VideoCaptureImpl); | 109 DISABLE_RUNNABLE_METHOD_REFCOUNT(VideoCaptureImpl); |
| 109 | 110 |
| 110 #endif // CONTENT_RENDERER_MEDIA_VIDEO_CAPTURE_IMPL_H_ | 111 #endif // CONTENT_RENDERER_MEDIA_VIDEO_CAPTURE_IMPL_H_ |
| OLD | NEW |