OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef REMOTING_PROTOCOL_JINGLE_MESSAGES_H_ | 5 #ifndef REMOTING_PROTOCOL_JINGLE_MESSAGES_H_ |
6 #define REMOTING_PROTOCOL_JINGLE_MESSAGES_H_ | 6 #define REMOTING_PROTOCOL_JINGLE_MESSAGES_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <memory> | 9 #include <memory> |
10 #include <string> | 10 #include <string> |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
94 | 94 |
95 std::string initiator; | 95 std::string initiator; |
96 | 96 |
97 std::unique_ptr<ContentDescription> description; | 97 std::unique_ptr<ContentDescription> description; |
98 | 98 |
99 std::unique_ptr<buzz::XmlElement> transport_info; | 99 std::unique_ptr<buzz::XmlElement> transport_info; |
100 | 100 |
101 // Content of session-info messages. | 101 // Content of session-info messages. |
102 std::unique_ptr<buzz::XmlElement> info; | 102 std::unique_ptr<buzz::XmlElement> info; |
103 | 103 |
104 // Content of plugin message. The node is read or written by all plugins, and | |
Sergey Ulanov
2016/12/12 23:00:03
There can be more than one plugin, so I think this
Hzj_jie
2016/12/13 00:20:51
Then we will need extra logic to decide which piec
Sergey Ulanov
2016/12/14 01:31:50
I don't think it would increase complexity much. T
Hzj_jie
2016/12/14 20:03:48
Yes, "attachments" is definitely good. Updated.
| |
105 // ActionType independent. | |
106 std::unique_ptr<buzz::XmlElement> plugin_message; | |
107 | |
104 // Value from the <reason> tag if it is present in the | 108 // Value from the <reason> tag if it is present in the |
105 // message. Useful mainly for session-terminate messages, but Jingle | 109 // message. Useful mainly for session-terminate messages, but Jingle |
106 // spec allows it in any message. | 110 // spec allows it in any message. |
107 Reason reason = UNKNOWN_REASON; | 111 Reason reason = UNKNOWN_REASON; |
108 | 112 |
109 // Value from the <google:remoting:error-code> tag if it is present in the | 113 // Value from the <google:remoting:error-code> tag if it is present in the |
110 // message. Useful mainly for session-terminate messages. If it's UNKNOWN, | 114 // message. Useful mainly for session-terminate messages. If it's UNKNOWN, |
111 // or reason is UNKNOWN_REASON, this field will be ignored in the xml output. | 115 // or reason is UNKNOWN_REASON, this field will be ignored in the xml output. |
112 ErrorCode error_code = UNKNOWN_ERROR; | 116 ErrorCode error_code = UNKNOWN_ERROR; |
113 }; | 117 }; |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
171 std::unique_ptr<buzz::XmlElement> ToXml() const; | 175 std::unique_ptr<buzz::XmlElement> ToXml() const; |
172 | 176 |
173 std::list<IceCredentials> ice_credentials; | 177 std::list<IceCredentials> ice_credentials; |
174 std::list<NamedCandidate> candidates; | 178 std::list<NamedCandidate> candidates; |
175 }; | 179 }; |
176 | 180 |
177 } // protocol | 181 } // protocol |
178 } // remoting | 182 } // remoting |
179 | 183 |
180 #endif // REMOTING_PROTOCOL_JINGLE_MESSAGES_H_ | 184 #endif // REMOTING_PROTOCOL_JINGLE_MESSAGES_H_ |
OLD | NEW |