OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2016 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2016 The WebRTC Project Authors. All rights reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
11 #include "webrtc/p2p/quic/quictransportchannel.h" | 11 #include "webrtc/p2p/quic/quictransportchannel.h" |
12 | 12 |
13 #include <utility> | 13 #include <utility> |
14 | 14 |
15 #include "net/quic/crypto/proof_source.h" | 15 #include "net/quic/crypto/proof_source.h" |
16 #include "net/quic/crypto/proof_verifier.h" | 16 #include "net/quic/crypto/proof_verifier.h" |
17 #include "net/quic/crypto/quic_crypto_client_config.h" | 17 #include "net/quic/crypto/quic_crypto_client_config.h" |
18 #include "net/quic/crypto/quic_crypto_server_config.h" | 18 #include "net/quic/crypto/quic_crypto_server_config.h" |
19 #include "net/quic/quic_connection.h" | 19 #include "net/quic/quic_connection.h" |
20 #include "net/quic/quic_crypto_client_stream.h" | 20 #include "net/quic/quic_crypto_client_stream.h" |
21 #include "net/quic/quic_crypto_server_stream.h" | 21 #include "net/quic/quic_crypto_server_stream.h" |
22 #include "net/quic/quic_packet_writer.h" | 22 #include "net/quic/quic_packet_writer.h" |
23 #include "net/quic/quic_protocol.h" | 23 #include "net/quic/quic_protocol.h" |
24 #include "webrtc/base/checks.h" | |
25 #include "webrtc/base/helpers.h" | |
26 #include "webrtc/base/logging.h" | |
27 #include "webrtc/base/socket.h" | |
28 #include "webrtc/base/thread.h" | |
29 #include "webrtc/p2p/base/common.h" | 24 #include "webrtc/p2p/base/common.h" |
| 25 #include "webrtc/rtc_base/checks.h" |
| 26 #include "webrtc/rtc_base/helpers.h" |
| 27 #include "webrtc/rtc_base/logging.h" |
| 28 #include "webrtc/rtc_base/socket.h" |
| 29 #include "webrtc/rtc_base/thread.h" |
30 | 30 |
31 namespace { | 31 namespace { |
32 | 32 |
33 // QUIC public header constants for net::QuicConnection. These are arbitrary | 33 // QUIC public header constants for net::QuicConnection. These are arbitrary |
34 // given that |channel_| only receives packets specific to this channel, | 34 // given that |channel_| only receives packets specific to this channel, |
35 // in which case we already know the QUIC packets have the correct destination. | 35 // in which case we already know the QUIC packets have the correct destination. |
36 const net::QuicConnectionId kConnectionId = 0; | 36 const net::QuicConnectionId kConnectionId = 0; |
37 const net::IPAddress kConnectionIpAddress(0, 0, 0, 0); | 37 const net::IPAddress kConnectionIpAddress(0, 0, 0, 0); |
38 const net::IPEndPoint kConnectionIpEndpoint(kConnectionIpAddress, 0); | 38 const net::IPEndPoint kConnectionIpEndpoint(kConnectionIpAddress, 0); |
39 | 39 |
(...skipping 549 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
589 return quic_->CreateOutgoingDynamicStream(priority); | 589 return quic_->CreateOutgoingDynamicStream(priority); |
590 } | 590 } |
591 return nullptr; | 591 return nullptr; |
592 } | 592 } |
593 | 593 |
594 void QuicTransportChannel::OnIncomingStream(ReliableQuicStream* stream) { | 594 void QuicTransportChannel::OnIncomingStream(ReliableQuicStream* stream) { |
595 SignalIncomingStream(stream); | 595 SignalIncomingStream(stream); |
596 } | 596 } |
597 | 597 |
598 } // namespace cricket | 598 } // namespace cricket |
OLD | NEW |