| 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/cast_session.h" | 5 #include "chrome/renderer/media/cast_session.h" |
| 6 | 6 |
| 7 #include "base/message_loop/message_loop_proxy.h" | 7 #include "base/message_loop/message_loop_proxy.h" |
| 8 #include "chrome/renderer/media/cast_session_delegate.h" | 8 #include "chrome/renderer/media/cast_session_delegate.h" |
| 9 #include "content/public/renderer/render_thread.h" | 9 #include "content/public/renderer/render_thread.h" |
| 10 #include "media/base/bind_to_current_loop.h" | 10 #include "media/base/bind_to_current_loop.h" |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 void CastSession::StartUDP(const net::IPEndPoint& local_endpoint, | 55 void CastSession::StartUDP(const net::IPEndPoint& local_endpoint, |
| 56 const net::IPEndPoint& remote_endpoint) { | 56 const net::IPEndPoint& remote_endpoint) { |
| 57 io_message_loop_proxy_->PostTask( | 57 io_message_loop_proxy_->PostTask( |
| 58 FROM_HERE, | 58 FROM_HERE, |
| 59 base::Bind( | 59 base::Bind( |
| 60 &CastSessionDelegate::StartUDP, | 60 &CastSessionDelegate::StartUDP, |
| 61 base::Unretained(delegate_.get()), | 61 base::Unretained(delegate_.get()), |
| 62 local_endpoint, | 62 local_endpoint, |
| 63 remote_endpoint)); | 63 remote_endpoint)); |
| 64 } | 64 } |
| 65 |
| 66 void CastSession::GetEventLogsAndReset(const EventLogsCallback& callback) { |
| 67 io_message_loop_proxy_->PostTask( |
| 68 FROM_HERE, |
| 69 base::Bind(&CastSessionDelegate::GetEventLogsAndReset, |
| 70 base::Unretained(delegate_.get()), |
| 71 callback)); |
| 72 } |
| OLD | NEW |