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

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

Issue 2517883002: Refactoring that removes P2PTransport and DtlsTransport classes. (Closed)
Patch Set: Adding stub transport.h file for backwards compat. Created 4 years 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/p2ptransport.cc ('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
(...skipping 11 matching lines...) Expand all
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/constructormagic.h" 29 #include "webrtc/base/constructormagic.h"
30 #include "webrtc/p2p/base/candidate.h" 30 #include "webrtc/p2p/base/candidate.h"
31 #include "webrtc/p2p/base/candidatepairinterface.h" 31 #include "webrtc/p2p/base/candidatepairinterface.h"
32 #include "webrtc/p2p/base/p2ptransport.h"
33 #include "webrtc/p2p/base/portallocator.h" 32 #include "webrtc/p2p/base/portallocator.h"
34 #include "webrtc/p2p/base/portinterface.h" 33 #include "webrtc/p2p/base/portinterface.h"
35 #include "webrtc/p2p/base/transportchannelimpl.h" 34 #include "webrtc/p2p/base/transportchannelimpl.h"
36 #include "webrtc/base/asyncpacketsocket.h" 35 #include "webrtc/base/asyncpacketsocket.h"
37 #include "webrtc/base/sigslot.h" 36 #include "webrtc/base/sigslot.h"
38 37
39 namespace cricket { 38 namespace cricket {
40 39
41 // Enum for UMA metrics, used to record whether the channel is 40 // Enum for UMA metrics, used to record whether the channel is
42 // connected/connecting/disconnected when ICE restart happens. 41 // connected/connecting/disconnected when ICE restart happens.
(...skipping 17 matching lines...) Expand all
60 }; 59 };
61 60
62 // P2PTransportChannel manages the candidates and connection process to keep 61 // P2PTransportChannel manages the candidates and connection process to keep
63 // two P2P clients connected to each other. 62 // two P2P clients connected to each other.
64 class P2PTransportChannel : public TransportChannelImpl, 63 class P2PTransportChannel : public TransportChannelImpl,
65 public rtc::MessageHandler { 64 public rtc::MessageHandler {
66 public: 65 public:
67 P2PTransportChannel(const std::string& transport_name, 66 P2PTransportChannel(const std::string& transport_name,
68 int component, 67 int component,
69 PortAllocator* allocator); 68 PortAllocator* allocator);
70 // TODO(mikescarlett): Deprecated. Remove when Chromium's
71 // IceTransportChannel does not depend on this.
72 P2PTransportChannel(const std::string& transport_name,
73 int component,
74 P2PTransport* transport,
75 PortAllocator* allocator);
76 virtual ~P2PTransportChannel(); 69 virtual ~P2PTransportChannel();
77 70
78 // From TransportChannelImpl: 71 // From TransportChannelImpl:
79 TransportChannelState GetState() const override; 72 TransportChannelState GetState() const override;
80 void SetIceRole(IceRole role) override; 73 void SetIceRole(IceRole role) override;
81 IceRole GetIceRole() const override { return ice_role_; } 74 IceRole GetIceRole() const override { return ice_role_; }
82 void SetIceTiebreaker(uint64_t tiebreaker) override; 75 void SetIceTiebreaker(uint64_t tiebreaker) override;
83 void SetIceParameters(const IceParameters& ice_params) override; 76 void SetIceParameters(const IceParameters& ice_params) override;
84 void SetRemoteIceParameters(const IceParameters& ice_params) override; 77 void SetRemoteIceParameters(const IceParameters& ice_params) override;
85 void SetRemoteIceMode(IceMode mode) override; 78 void SetRemoteIceMode(IceMode mode) override;
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after
403 uint32_t nomination_ = 0; 396 uint32_t nomination_ = 0;
404 397
405 webrtc::MetricsObserverInterface* metrics_observer_ = nullptr; 398 webrtc::MetricsObserverInterface* metrics_observer_ = nullptr;
406 399
407 RTC_DISALLOW_COPY_AND_ASSIGN(P2PTransportChannel); 400 RTC_DISALLOW_COPY_AND_ASSIGN(P2PTransportChannel);
408 }; 401 };
409 402
410 } // namespace cricket 403 } // namespace cricket
411 404
412 #endif // WEBRTC_P2P_BASE_P2PTRANSPORTCHANNEL_H_ 405 #endif // WEBRTC_P2P_BASE_P2PTRANSPORTCHANNEL_H_
OLDNEW
« no previous file with comments | « webrtc/p2p/base/p2ptransport.cc ('k') | webrtc/p2p/base/p2ptransportchannel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698