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

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

Issue 653203005: Roll WebRTC 7546:7549. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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"
11 #include "content/browser/renderer_host/render_process_host_impl.h" 11 #include "content/browser/renderer_host/render_process_host_impl.h"
12 #include "content/public/browser/browser_thread.h" 12 #include "content/public/browser/browser_thread.h"
13 #include "crypto/hmac.h" 13 #include "crypto/hmac.h"
14 #include "third_party/libjingle/source/talk/p2p/base/stun.h"
15 #include "third_party/webrtc/base/asyncpacketsocket.h" 14 #include "third_party/webrtc/base/asyncpacketsocket.h"
16 #include "third_party/webrtc/base/byteorder.h" 15 #include "third_party/webrtc/base/byteorder.h"
17 #include "third_party/webrtc/base/messagedigest.h" 16 #include "third_party/webrtc/base/messagedigest.h"
17 #include "third_party/webrtc/p2p/base/stun.h"
18 18
19 namespace { 19 namespace {
20 20
21 const uint32 kStunMagicCookie = 0x2112A442; 21 const uint32 kStunMagicCookie = 0x2112A442;
22 const size_t kMinRtpHeaderLength = 12; 22 const size_t kMinRtpHeaderLength = 12;
23 const size_t kMinRtcpHeaderLength = 8; 23 const size_t kMinRtcpHeaderLength = 8;
24 const size_t kRtpExtensionHeaderLength = 4; 24 const size_t kRtpExtensionHeaderLength = 4;
25 const size_t kDtlsRecordHeaderLength = 13; 25 const size_t kDtlsRecordHeaderLength = 13;
26 const size_t kTurnChannelHeaderLength = 4; 26 const size_t kTurnChannelHeaderLength = 4;
27 const size_t kAbsSendTimeExtensionLength = 3; 27 const size_t kAbsSendTimeExtensionLength = 3;
(...skipping 610 matching lines...) Expand 10 before | Expand all | Expand 10 after
638 BrowserThread::PostTask(BrowserThread::UI, 638 BrowserThread::PostTask(BrowserThread::UI,
639 FROM_HERE, 639 FROM_HERE,
640 base::Bind(packet_dump_callback_, 640 base::Bind(packet_dump_callback_,
641 Passed(&packet_header), 641 Passed(&packet_header),
642 header_length, 642 header_length,
643 packet_length, 643 packet_length,
644 incoming)); 644 incoming));
645 } 645 }
646 646
647 } // namespace content 647 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698