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

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

Issue 1246913005: TransportController refactoring (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Fixing problems with "failed" state; a channel isn't failed if it's never added a connection Created 5 years, 4 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/transportchannel.h
diff --git a/webrtc/p2p/base/transportchannel.h b/webrtc/p2p/base/transportchannel.h
index 15b38eee84b34497546f0a8a093e18ef4199aeb1..bd96781d292ebf9037761cd2acafc9aba80402c7 100644
--- a/webrtc/p2p/base/transportchannel.h
+++ b/webrtc/p2p/base/transportchannel.h
@@ -37,7 +37,12 @@ enum PacketFlags {
};
// Used to indicate channel's connection state.
-enum TransportChannelState { STATE_CONNECTING, STATE_COMPLETED, STATE_FAILED };
+enum TransportChannelState {
+ STATE_NEW,
pthatcher1 2015/08/25 18:40:39 We usually use the name STATE_INIT for states like
Taylor Brandstetter 2015/08/25 20:39:55 Done.
+ STATE_CONNECTING,
pthatcher1 2015/08/25 18:40:39 Can you comment here when we'd be NEW but not CONN
Taylor Brandstetter 2015/08/25 20:39:55 Done.
+ STATE_COMPLETED,
+ STATE_FAILED
+};
// A TransportChannel represents one logical stream of packets that are sent
// between the two sides of a session.
@@ -147,7 +152,6 @@ class TransportChannel : public sigslot::has_slots<> {
// Sets the receiving state, signaling if necessary.
void set_receiving(bool receiving);
-
private:
// Used mostly for debugging.
std::string content_name_;

Powered by Google App Engine
This is Rietveld 408576698