Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(892)

Side by Side Diff: content/browser/renderer_host/p2p/socket_host.cc

Issue 305363004: Fix a bug in passing the RTP header from P2PSocketHost to WebRtcLogggingHandlerHost. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « chrome/browser/media/webrtc_rtp_dump_writer.cc ('k') | content/public/browser/render_process_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698