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

Side by Side Diff: webrtc/p2p/base/p2ptransportchannel.cc

Issue 1413333002: system_wrappers: rename interface -> include (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebased again! Created 5 years, 1 month 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 /* 1 /*
2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. 2 * Copyright 2004 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/base/p2ptransportchannel.h" 11 #include "webrtc/p2p/base/p2ptransportchannel.h"
12 12
13 #include <algorithm> 13 #include <algorithm>
14 #include <set> 14 #include <set>
15 #include "webrtc/p2p/base/common.h" 15 #include "webrtc/p2p/base/common.h"
16 #include "webrtc/p2p/base/relayport.h" // For RELAY_PORT_TYPE. 16 #include "webrtc/p2p/base/relayport.h" // For RELAY_PORT_TYPE.
17 #include "webrtc/p2p/base/stunport.h" // For STUN_PORT_TYPE. 17 #include "webrtc/p2p/base/stunport.h" // For STUN_PORT_TYPE.
18 #include "webrtc/base/common.h" 18 #include "webrtc/base/common.h"
19 #include "webrtc/base/crc32.h" 19 #include "webrtc/base/crc32.h"
20 #include "webrtc/base/logging.h" 20 #include "webrtc/base/logging.h"
21 #include "webrtc/base/stringencode.h" 21 #include "webrtc/base/stringencode.h"
22 #include "webrtc/system_wrappers/interface/field_trial.h" 22 #include "webrtc/system_wrappers/include/field_trial.h"
23 23
24 namespace { 24 namespace {
25 25
26 // messages for queuing up work for ourselves 26 // messages for queuing up work for ourselves
27 enum { MSG_SORT = 1, MSG_CHECK_AND_PING }; 27 enum { MSG_SORT = 1, MSG_CHECK_AND_PING };
28 28
29 // The minimum improvement in RTT that justifies a switch. 29 // The minimum improvement in RTT that justifies a switch.
30 static const double kMinImprovement = 10; 30 static const double kMinImprovement = 10;
31 31
32 cricket::PortInterface::CandidateOrigin GetOrigin(cricket::PortInterface* port, 32 cricket::PortInterface::CandidateOrigin GetOrigin(cricket::PortInterface* port,
(...skipping 1342 matching lines...) Expand 10 before | Expand all | Expand 10 after
1375 SignalSentPacket(this, sent_packet); 1375 SignalSentPacket(this, sent_packet);
1376 } 1376 }
1377 1377
1378 void P2PTransportChannel::OnReadyToSend(Connection* connection) { 1378 void P2PTransportChannel::OnReadyToSend(Connection* connection) {
1379 if (connection == best_connection_ && writable()) { 1379 if (connection == best_connection_ && writable()) {
1380 SignalReadyToSend(this); 1380 SignalReadyToSend(this);
1381 } 1381 }
1382 } 1382 }
1383 1383
1384 } // namespace cricket 1384 } // namespace cricket
OLDNEW
« no previous file with comments | « webrtc/modules/video_render/windows/video_render_windows_impl.cc ('k') | webrtc/system_wrappers/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698