| 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 18 matching lines...) Expand all Loading... |
| 29 | 29 |
| 30 enum Reason { | 30 enum Reason { |
| 31 UNKNOWN_REASON, | 31 UNKNOWN_REASON, |
| 32 SUCCESS, | 32 SUCCESS, |
| 33 DECLINE, | 33 DECLINE, |
| 34 CANCEL, | 34 CANCEL, |
| 35 EXPIRED, | 35 EXPIRED, |
| 36 GENERAL_ERROR, | 36 GENERAL_ERROR, |
| 37 FAILED_APPLICATION, | 37 FAILED_APPLICATION, |
| 38 INCOMPATIBLE_PARAMETERS, | 38 INCOMPATIBLE_PARAMETERS, |
| 39 SECURITY_ERROR, |
| 39 }; | 40 }; |
| 40 | 41 |
| 41 | 42 |
| 42 JingleMessage(); | 43 JingleMessage(); |
| 43 JingleMessage(const std::string& to_value, | 44 JingleMessage(const std::string& to_value, |
| 44 ActionType action_value, | 45 ActionType action_value, |
| 45 const std::string& sid_value); | 46 const std::string& sid_value); |
| 46 ~JingleMessage(); | 47 ~JingleMessage(); |
| 47 | 48 |
| 48 // Caller keeps ownership of |stanza|. | 49 // Caller keeps ownership of |stanza|. |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 std::unique_ptr<buzz::XmlElement> ToXml() const; | 135 std::unique_ptr<buzz::XmlElement> ToXml() const; |
| 135 | 136 |
| 136 std::list<IceCredentials> ice_credentials; | 137 std::list<IceCredentials> ice_credentials; |
| 137 std::list<NamedCandidate> candidates; | 138 std::list<NamedCandidate> candidates; |
| 138 }; | 139 }; |
| 139 | 140 |
| 140 } // protocol | 141 } // protocol |
| 141 } // remoting | 142 } // remoting |
| 142 | 143 |
| 143 #endif // REMOTING_PROTOCOL_JINGLE_MESSAGES_H_ | 144 #endif // REMOTING_PROTOCOL_JINGLE_MESSAGES_H_ |
| OLD | NEW |