| 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 #include "content/browser/renderer_host/media/video_capture_host.h" | 5 #include "content/browser/renderer_host/media/video_capture_host.h" |
| 6 | 6 |
| 7 #include "base/memory/scoped_ptr.h" | 7 #include "base/memory/scoped_ptr.h" |
| 8 #include "base/stl_util-inl.h" | 8 #include "base/stl_util.h" |
| 9 #include "content/common/media/video_capture_messages.h" | 9 #include "content/common/media/video_capture_messages.h" |
| 10 | 10 |
| 11 VideoCaptureHost::VideoCaptureHost() {} | 11 VideoCaptureHost::VideoCaptureHost() {} |
| 12 | 12 |
| 13 VideoCaptureHost::~VideoCaptureHost() {} | 13 VideoCaptureHost::~VideoCaptureHost() {} |
| 14 | 14 |
| 15 void VideoCaptureHost::OnChannelClosing() { | 15 void VideoCaptureHost::OnChannelClosing() { |
| 16 BrowserMessageFilter::OnChannelClosing(); | 16 BrowserMessageFilter::OnChannelClosing(); |
| 17 | 17 |
| 18 // Since the IPC channel is gone, close all requested VideCaptureDevices. | 18 // Since the IPC channel is gone, close all requested VideCaptureDevices. |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 | 187 |
| 188 void VideoCaptureHost::DoDeleteVideoCaptureController( | 188 void VideoCaptureHost::DoDeleteVideoCaptureController( |
| 189 const VideoCaptureControllerID& id) { | 189 const VideoCaptureControllerID& id) { |
| 190 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); | 190 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); |
| 191 | 191 |
| 192 // Report that the device have successfully been stopped. | 192 // Report that the device have successfully been stopped. |
| 193 Send(new VideoCaptureMsg_StateChanged(id.device_id, | 193 Send(new VideoCaptureMsg_StateChanged(id.device_id, |
| 194 media::VideoCapture::kStopped)); | 194 media::VideoCapture::kStopped)); |
| 195 entries_.erase(id); | 195 entries_.erase(id); |
| 196 } | 196 } |
| OLD | NEW |