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/renderer/media/video_capture_impl.h" | 5 #include "content/renderer/media/video_capture_impl.h" |
6 | 6 |
7 #include "content/common/child_process.h" | 7 #include "content/common/child_process.h" |
8 #include "content/common/video_capture_messages.h" | 8 #include "content/common/video_capture_messages.h" |
9 | 9 |
10 VideoCaptureImpl::DIBBuffer::DIBBuffer( | 10 VideoCaptureImpl::DIBBuffer::DIBBuffer( |
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
374 for (ClientInfo::iterator it = clients_.begin(); it != clients_.end(); it++) { | 374 for (ClientInfo::iterator it = clients_.begin(); it != clients_.end(); it++) { |
375 it->first->OnStarted(this); | 375 it->first->OnStarted(this); |
376 } | 376 } |
377 } | 377 } |
378 | 378 |
379 void VideoCaptureImpl::AddDelegateOnIOThread() { | 379 void VideoCaptureImpl::AddDelegateOnIOThread() { |
380 message_filter_->AddDelegate(this); | 380 message_filter_->AddDelegate(this); |
381 } | 381 } |
382 | 382 |
383 void VideoCaptureImpl::RemoveDelegateOnIOThread(Task* task) { | 383 void VideoCaptureImpl::RemoveDelegateOnIOThread(Task* task) { |
384 base::ScopedTaskRunner task_runner(task); | |
385 message_filter_->RemoveDelegate(this); | 384 message_filter_->RemoveDelegate(this); |
| 385 media::AutoTaskRunner auto_runner(task); |
386 } | 386 } |
OLD | NEW |