| 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 // VideoCaptureHost serves video capture related messages from | 5 // VideoCaptureHost serves video capture related messages from |
| 6 // VideCaptureMessageFilter which lives inside the render process. | 6 // VideCaptureMessageFilter which lives inside the render process. |
| 7 // | 7 // |
| 8 // This class is owned by BrowserRenderProcessHost, and instantiated on UI | 8 // This class is owned by BrowserRenderProcessHost, and instantiated on UI |
| 9 // thread, but all other operations and method calls happen on IO thread. | 9 // thread, but all other operations and method calls happen on IO thread. |
| 10 // | 10 // |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 virtual void OnBufferReady(const VideoCaptureControllerID& id, | 68 virtual void OnBufferReady(const VideoCaptureControllerID& id, |
| 69 int buffer_id, | 69 int buffer_id, |
| 70 base::Time timestamp); | 70 base::Time timestamp); |
| 71 virtual void OnFrameInfo(const VideoCaptureControllerID& id, | 71 virtual void OnFrameInfo(const VideoCaptureControllerID& id, |
| 72 int width, | 72 int width, |
| 73 int height, | 73 int height, |
| 74 int frame_per_second); | 74 int frame_per_second); |
| 75 virtual void OnReadyToDelete(const VideoCaptureControllerID& id); | 75 virtual void OnReadyToDelete(const VideoCaptureControllerID& id); |
| 76 | 76 |
| 77 private: | 77 private: |
| 78 friend class BrowserThread; | 78 friend class content::BrowserThread; |
| 79 friend class DeleteTask<VideoCaptureHost>; | 79 friend class DeleteTask<VideoCaptureHost>; |
| 80 friend class MockVideoCaptureHost; | 80 friend class MockVideoCaptureHost; |
| 81 friend class VideoCaptureHostTest; | 81 friend class VideoCaptureHostTest; |
| 82 | 82 |
| 83 virtual ~VideoCaptureHost(); | 83 virtual ~VideoCaptureHost(); |
| 84 | 84 |
| 85 // IPC message: Start capture on the VideoCaptureDevice referenced by | 85 // IPC message: Start capture on the VideoCaptureDevice referenced by |
| 86 // VideoCaptureParams::session_id. |device_id| is an id created by | 86 // VideoCaptureParams::session_id. |device_id| is an id created by |
| 87 // VideCaptureMessageFilter to identify a session | 87 // VideCaptureMessageFilter to identify a session |
| 88 // between a VideCaptureMessageFilter and a VideoCaptureHost. | 88 // between a VideCaptureMessageFilter and a VideoCaptureHost. |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 // objects that is currently active. | 132 // objects that is currently active. |
| 133 EntryMap entries_; | 133 EntryMap entries_; |
| 134 | 134 |
| 135 // Used to get a pointer to VideoCaptureManager to start/stop capture devices. | 135 // Used to get a pointer to VideoCaptureManager to start/stop capture devices. |
| 136 const content::ResourceContext* resource_context_; | 136 const content::ResourceContext* resource_context_; |
| 137 | 137 |
| 138 DISALLOW_COPY_AND_ASSIGN(VideoCaptureHost); | 138 DISALLOW_COPY_AND_ASSIGN(VideoCaptureHost); |
| 139 }; | 139 }; |
| 140 | 140 |
| 141 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_HOST_H_ | 141 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_HOST_H_ |
| OLD | NEW |