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

Unified Diff: remoting/protocol/jingle_messages.h

Issue 1413813006: Revert of Add TransportSession interface to prepare for WebRTC-based transport. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.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
« no previous file with comments | « remoting/protocol/ice_transport_session.cc ('k') | remoting/protocol/jingle_messages.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/jingle_messages.h
diff --git a/remoting/protocol/jingle_messages.h b/remoting/protocol/jingle_messages.h
index 32b78c177fc76b072702d92490911dbc5248addc..47f9afc9431363bd7422d8a724255e30080730e6 100644
--- a/remoting/protocol/jingle_messages.h
+++ b/remoting/protocol/jingle_messages.h
@@ -36,6 +36,25 @@
INCOMPATIBLE_PARAMETERS,
};
+ struct NamedCandidate {
+ NamedCandidate() = default;
+ NamedCandidate(const std::string& name,
+ const cricket::Candidate& candidate);
+
+ std::string name;
+ cricket::Candidate candidate;
+ };
+
+ struct IceCredentials {
+ IceCredentials() = default;
+ IceCredentials(std::string channel,
+ std::string ufrag,
+ std::string password);
+
+ std::string channel;
+ std::string ufrag;
+ std::string password;
+ };
JingleMessage();
JingleMessage(const std::string& to_value,
@@ -62,7 +81,8 @@
scoped_ptr<ContentDescription> description;
- scoped_ptr<buzz::XmlElement> transport_info;
+ std::list<IceCredentials> ice_credentials;
+ std::list<NamedCandidate> candidates;
// Content of session-info messages.
scoped_ptr<buzz::XmlElement> info;
@@ -103,38 +123,6 @@
std::string text;
};
-struct IceTransportInfo {
- IceTransportInfo();
- ~IceTransportInfo();
- struct NamedCandidate {
- NamedCandidate() = default;
- NamedCandidate(const std::string& name,
- const cricket::Candidate& candidate);
-
- std::string name;
- cricket::Candidate candidate;
- };
-
- struct IceCredentials {
- IceCredentials() = default;
- IceCredentials(std::string channel,
- std::string ufrag,
- std::string password);
-
- std::string channel;
- std::string ufrag;
- std::string password;
- };
-
- // Caller keeps ownership of |stanza|. |error| is set to debug error
- // message when parsing fails.
- bool ParseXml(const buzz::XmlElement* stanza);
- scoped_ptr<buzz::XmlElement> ToXml() const;
-
- std::list<IceCredentials> ice_credentials;
- std::list<NamedCandidate> candidates;
-};
-
} // protocol
} // remoting
« no previous file with comments | « remoting/protocol/ice_transport_session.cc ('k') | remoting/protocol/jingle_messages.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698