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

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

Issue 2969623003: Update includes for webrtc/{base => rtc_base} rename (2/3) (Closed)
Patch Set: Rebased onto 224e65939af87443addfc5bb500fbf434728bd1c and restored sorting in clock.cc Created 3 years, 5 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
« no previous file with comments | « webrtc/p2p/base/mockicetransport.h ('k') | webrtc/p2p/base/p2ptransportchannel.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // P2PTransportChannel wraps up the state management of the connection between 11 // P2PTransportChannel wraps up the state management of the connection between
12 // two P2P clients. Clients have candidate ports for connecting, and 12 // two P2P clients. Clients have candidate ports for connecting, and
13 // connections which are combinations of candidates from each end (Alice and 13 // connections which are combinations of candidates from each end (Alice and
14 // Bob each have candidates, one candidate from Alice and one candidate from 14 // Bob each have candidates, one candidate from Alice and one candidate from
15 // Bob are used to make a connection, repeat to make many connections). 15 // Bob are used to make a connection, repeat to make many connections).
16 // 16 //
17 // When all of the available connections become invalid (non-writable), we 17 // When all of the available connections become invalid (non-writable), we
18 // kick off a process of determining more candidates and more connections. 18 // kick off a process of determining more candidates and more connections.
19 // 19 //
20 #ifndef WEBRTC_P2P_BASE_P2PTRANSPORTCHANNEL_H_ 20 #ifndef WEBRTC_P2P_BASE_P2PTRANSPORTCHANNEL_H_
21 #define WEBRTC_P2P_BASE_P2PTRANSPORTCHANNEL_H_ 21 #define WEBRTC_P2P_BASE_P2PTRANSPORTCHANNEL_H_
22 22
23 #include <map> 23 #include <map>
24 #include <memory> 24 #include <memory>
25 #include <set> 25 #include <set>
26 #include <string> 26 #include <string>
27 #include <vector> 27 #include <vector>
28 28
29 #include "webrtc/base/asyncpacketsocket.h"
30 #include "webrtc/base/constructormagic.h"
31 #include "webrtc/base/sigslot.h"
32 #include "webrtc/p2p/base/candidate.h" 29 #include "webrtc/p2p/base/candidate.h"
33 #include "webrtc/p2p/base/candidatepairinterface.h" 30 #include "webrtc/p2p/base/candidatepairinterface.h"
34 #include "webrtc/p2p/base/icetransportinternal.h" 31 #include "webrtc/p2p/base/icetransportinternal.h"
35 #include "webrtc/p2p/base/portallocator.h" 32 #include "webrtc/p2p/base/portallocator.h"
36 #include "webrtc/p2p/base/portinterface.h" 33 #include "webrtc/p2p/base/portinterface.h"
34 #include "webrtc/rtc_base/asyncpacketsocket.h"
35 #include "webrtc/rtc_base/constructormagic.h"
36 #include "webrtc/rtc_base/sigslot.h"
37 37
38 namespace cricket { 38 namespace cricket {
39 39
40 // Enum for UMA metrics, used to record whether the channel is 40 // Enum for UMA metrics, used to record whether the channel is
41 // connected/connecting/disconnected when ICE restart happens. 41 // connected/connecting/disconnected when ICE restart happens.
42 enum class IceRestartState { CONNECTING, CONNECTED, DISCONNECTED, MAX_VALUE }; 42 enum class IceRestartState { CONNECTING, CONNECTED, DISCONNECTED, MAX_VALUE };
43 43
44 extern const int WEAK_PING_INTERVAL; 44 extern const int WEAK_PING_INTERVAL;
45 extern const int STRONG_PING_INTERVAL; 45 extern const int STRONG_PING_INTERVAL;
46 extern const int WEAK_OR_STABILIZING_WRITABLE_CONNECTION_PING_INTERVAL; 46 extern const int WEAK_OR_STABILIZING_WRITABLE_CONNECTION_PING_INTERVAL;
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after
386 bool writable_ = false; 386 bool writable_ = false;
387 387
388 webrtc::MetricsObserverInterface* metrics_observer_ = nullptr; 388 webrtc::MetricsObserverInterface* metrics_observer_ = nullptr;
389 389
390 RTC_DISALLOW_COPY_AND_ASSIGN(P2PTransportChannel); 390 RTC_DISALLOW_COPY_AND_ASSIGN(P2PTransportChannel);
391 }; 391 };
392 392
393 } // namespace cricket 393 } // namespace cricket
394 394
395 #endif // WEBRTC_P2P_BASE_P2PTRANSPORTCHANNEL_H_ 395 #endif // WEBRTC_P2P_BASE_P2PTRANSPORTCHANNEL_H_
OLDNEW
« no previous file with comments | « webrtc/p2p/base/mockicetransport.h ('k') | webrtc/p2p/base/p2ptransportchannel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698