OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/p2p/socket_host.h" | 5 #include "content/browser/renderer_host/p2p/socket_host.h" |
6 | 6 |
7 #include "base/sys_byteorder.h" | 7 #include "base/sys_byteorder.h" |
8 #include "content/browser/renderer_host/p2p/socket_host_tcp.h" | 8 #include "content/browser/renderer_host/p2p/socket_host_tcp.h" |
9 #include "content/browser/renderer_host/p2p/socket_host_tcp_server.h" | 9 #include "content/browser/renderer_host/p2p/socket_host_tcp_server.h" |
10 #include "content/browser/renderer_host/p2p/socket_host_udp.h" | 10 #include "content/browser/renderer_host/p2p/socket_host_udp.h" |
(...skipping 558 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
569 if ((incoming && !dump_incoming_rtp_packet_) || | 569 if ((incoming && !dump_incoming_rtp_packet_) || |
570 (!incoming && !dump_outgoing_rtp_packet_) || | 570 (!incoming && !dump_outgoing_rtp_packet_) || |
571 packet_dump_callback_.is_null()) { | 571 packet_dump_callback_.is_null()) { |
572 return; | 572 return; |
573 } | 573 } |
574 | 574 |
575 // |packet_dump_callback_| must be called on the UI thread. | 575 // |packet_dump_callback_| must be called on the UI thread. |
576 BrowserThread::PostTask(BrowserThread::UI, | 576 BrowserThread::PostTask(BrowserThread::UI, |
577 FROM_HERE, | 577 FROM_HERE, |
578 base::Bind(packet_dump_callback_, | 578 base::Bind(packet_dump_callback_, |
579 packet_header.get(), | 579 Passed(&packet_header), |
580 header_length, | 580 header_length, |
581 packet_length, | 581 packet_length, |
582 incoming)); | 582 incoming)); |
583 } | 583 } |
584 | 584 |
585 } // namespace content | 585 } // namespace content |
OLD | NEW |