| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "chrome/renderer/media/webrtc_logging_message_filter.h" | 5 #include "chrome/renderer/media/webrtc_logging_message_filter.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/message_loop_proxy.h" | 8 #include "base/message_loop/message_loop_proxy.h" |
| 9 #include "chrome/common/media/webrtc_logging_messages.h" | 9 #include "chrome/common/media/webrtc_logging_messages.h" |
| 10 #include "chrome/renderer/media/webrtc_logging_handler_impl.h" | 10 #include "chrome/renderer/media/webrtc_logging_handler_impl.h" |
| 11 #include "ipc/ipc_logging.h" | 11 #include "ipc/ipc_logging.h" |
| 12 | 12 |
| 13 WebRtcLoggingMessageFilter::WebRtcLoggingMessageFilter( | 13 WebRtcLoggingMessageFilter::WebRtcLoggingMessageFilter( |
| 14 const scoped_refptr<base::MessageLoopProxy>& io_message_loop) | 14 const scoped_refptr<base::MessageLoopProxy>& io_message_loop) |
| 15 : logging_handler_(NULL), | 15 : logging_handler_(NULL), |
| 16 io_message_loop_(io_message_loop), | 16 io_message_loop_(io_message_loop), |
| 17 channel_(NULL) { | 17 channel_(NULL) { |
| 18 io_message_loop_->PostTask( | 18 io_message_loop_->PostTask( |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 | 79 |
| 80 void WebRtcLoggingMessageFilter::Send(IPC::Message* message) { | 80 void WebRtcLoggingMessageFilter::Send(IPC::Message* message) { |
| 81 DCHECK(io_message_loop_->BelongsToCurrentThread()); | 81 DCHECK(io_message_loop_->BelongsToCurrentThread()); |
| 82 if (!channel_) { | 82 if (!channel_) { |
| 83 DLOG(ERROR) << "IPC channel not available."; | 83 DLOG(ERROR) << "IPC channel not available."; |
| 84 delete message; | 84 delete message; |
| 85 } else { | 85 } else { |
| 86 channel_->Send(message); | 86 channel_->Send(message); |
| 87 } | 87 } |
| 88 } | 88 } |
| OLD | NEW |