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

Unified Diff: webrtc/p2p/base/turnport.h

Issue 1415313004: Destroy a Connection if a CreatePermission request fails. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
Index: webrtc/p2p/base/turnport.h
diff --git a/webrtc/p2p/base/turnport.h b/webrtc/p2p/base/turnport.h
index 3bca727346a7e2d776a3e3d30de7609435dabd19..96f0c9ffd64dd432361a21357e258c7ae39229b7 100644
--- a/webrtc/p2p/base/turnport.h
+++ b/webrtc/p2p/base/turnport.h
@@ -129,7 +129,6 @@ class TurnPort : public Port {
const rtc::SocketAddress&,
const rtc::SocketAddress&> SignalResolvedServerAddress;
- // This signal is only for testing purpose.
sigslot::signal3<TurnPort*, const rtc::SocketAddress&, int>
SignalCreatePermissionResult;
@@ -249,6 +248,21 @@ class TurnPort : public Port {
friend class TurnChannelBindRequest;
};
+class TurnConnection : public ProxyConnection {
+ public:
+ TurnConnection(TurnPort* port,
+ size_t index,
+ const Candidate& remote_candidate);
+ virtual ~TurnConnection();
+
+ private:
+ void OnCreatePermissionResult(TurnPort* port,
+ const rtc::SocketAddress& remote_address,
+ int code);
+
+ TurnPort* turn_port_;
+};
+
} // namespace cricket
#endif // WEBRTC_P2P_BASE_TURNPORT_H_

Powered by Google App Engine
This is Rietveld 408576698