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

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

Issue 2416023002: Introduce rtc::PacketTransportInterface and let cricket::TransportChannel inherit. (Closed)
Patch Set: Resolve unused variable issue in release build. Created 4 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 /* 1 /*
2 * Copyright 2015 The WebRTC Project Authors. All rights reserved. 2 * Copyright 2015 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 #ifndef WEBRTC_P2P_BASE_TRANSPORTCONTROLLER_H_ 11 #ifndef WEBRTC_P2P_BASE_TRANSPORTCONTROLLER_H_
12 #define WEBRTC_P2P_BASE_TRANSPORTCONTROLLER_H_ 12 #define WEBRTC_P2P_BASE_TRANSPORTCONTROLLER_H_
13 13
14 #include <map> 14 #include <map>
15 #include <memory> 15 #include <memory>
16 #include <string> 16 #include <string>
17 #include <vector> 17 #include <vector>
18 18
19 #include "webrtc/base/asyncinvoker.h" 19 #include "webrtc/base/asyncinvoker.h"
20 #include "webrtc/base/sigslot.h" 20 #include "webrtc/base/sigslot.h"
21 #include "webrtc/base/sslstreamadapter.h" 21 #include "webrtc/base/sslstreamadapter.h"
22 #include "webrtc/p2p/base/candidate.h" 22 #include "webrtc/p2p/base/candidate.h"
23 #include "webrtc/p2p/base/transport.h" 23 #include "webrtc/p2p/base/transport.h"
24 24
25 namespace rtc { 25 namespace rtc {
26 class Thread; 26 class Thread;
27 struct PacketTransport;
27 } 28 }
28 namespace webrtc { 29 namespace webrtc {
29 class MetricsObserverInterface; 30 class MetricsObserverInterface;
30 } 31 }
31 32
32 namespace cricket { 33 namespace cricket {
33 34
34 class TransportController : public sigslot::has_slots<>, 35 class TransportController : public sigslot::has_slots<>,
35 public rtc::MessageHandler { 36 public rtc::MessageHandler {
36 public: 37 public:
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 std::string* err); 198 std::string* err);
198 void MaybeStartGathering_n(); 199 void MaybeStartGathering_n();
199 bool AddRemoteCandidates_n(const std::string& transport_name, 200 bool AddRemoteCandidates_n(const std::string& transport_name,
200 const Candidates& candidates, 201 const Candidates& candidates,
201 std::string* err); 202 std::string* err);
202 bool RemoveRemoteCandidates_n(const Candidates& candidates, std::string* err); 203 bool RemoveRemoteCandidates_n(const Candidates& candidates, std::string* err);
203 bool ReadyForRemoteCandidates_n(const std::string& transport_name); 204 bool ReadyForRemoteCandidates_n(const std::string& transport_name);
204 bool GetStats_n(const std::string& transport_name, TransportStats* stats); 205 bool GetStats_n(const std::string& transport_name, TransportStats* stats);
205 206
206 // Handlers for signals from Transport. 207 // Handlers for signals from Transport.
207 void OnChannelWritableState_n(TransportChannel* channel); 208 void OnChannelWritableState_n(rtc::PacketTransport* pt);
pthatcher1 2016/10/13 20:26:38 This could probably still be a TransportChannel*.
johan 2016/10/14 16:09:33 Acknowledged.
208 void OnChannelReceivingState_n(TransportChannel* channel); 209 void OnChannelReceivingState_n(TransportChannel* channel);
209 void OnChannelGatheringState_n(TransportChannelImpl* channel); 210 void OnChannelGatheringState_n(TransportChannelImpl* channel);
210 void OnChannelCandidateGathered_n(TransportChannelImpl* channel, 211 void OnChannelCandidateGathered_n(TransportChannelImpl* channel,
211 const Candidate& candidate); 212 const Candidate& candidate);
212 void OnChannelCandidatesRemoved(const Candidates& candidates); 213 void OnChannelCandidatesRemoved(const Candidates& candidates);
213 void OnChannelCandidatesRemoved_n(TransportChannelImpl* channel, 214 void OnChannelCandidatesRemoved_n(TransportChannelImpl* channel,
214 const Candidates& candidates); 215 const Candidates& candidates);
215 void OnChannelRoleConflict_n(TransportChannelImpl* channel); 216 void OnChannelRoleConflict_n(TransportChannelImpl* channel);
216 void OnChannelStateChanged_n(TransportChannelImpl* channel); 217 void OnChannelStateChanged_n(TransportChannelImpl* channel);
217 218
(...skipping 25 matching lines...) Expand all
243 rtc::AsyncInvoker invoker_; 244 rtc::AsyncInvoker invoker_;
244 // True if QUIC is used instead of DTLS. 245 // True if QUIC is used instead of DTLS.
245 bool quic_ = false; 246 bool quic_ = false;
246 247
247 webrtc::MetricsObserverInterface* metrics_observer_ = nullptr; 248 webrtc::MetricsObserverInterface* metrics_observer_ = nullptr;
248 }; 249 };
249 250
250 } // namespace cricket 251 } // namespace cricket
251 252
252 #endif // WEBRTC_P2P_BASE_TRANSPORTCONTROLLER_H_ 253 #endif // WEBRTC_P2P_BASE_TRANSPORTCONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698