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

Side by Side Diff: remoting/protocol/jingle_messages.h

Issue 9447087: Revert 123635 - Implement timeouts for IQ requests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 10 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « remoting/jingle_glue/jingle_info_request.cc ('k') | remoting/protocol/jingle_messages.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 <string> 9 #include <string>
10 10
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 }; 45 };
46 46
47 JingleMessage(); 47 JingleMessage();
48 JingleMessage(const std::string& to_value, 48 JingleMessage(const std::string& to_value,
49 ActionType action_value, 49 ActionType action_value,
50 const std::string& sid_value); 50 const std::string& sid_value);
51 ~JingleMessage(); 51 ~JingleMessage();
52 52
53 // Caller keeps ownership of |stanza|. 53 // Caller keeps ownership of |stanza|.
54 static bool IsJingleMessage(const buzz::XmlElement* stanza); 54 static bool IsJingleMessage(const buzz::XmlElement* stanza);
55 static std::string GetActionName(ActionType action);
56 55
57 // Caller keeps ownership of |stanza|. |error| is set to debug error 56 // Caller keeps ownership of |stanza|. |error| is set to debug error
58 // message when parsing fails. 57 // message when parsing fails.
59 bool ParseXml(const buzz::XmlElement* stanza, std::string* error); 58 bool ParseXml(const buzz::XmlElement* stanza, std::string* error);
60 59
61 scoped_ptr<buzz::XmlElement> ToXml() const; 60 scoped_ptr<buzz::XmlElement> ToXml();
62 61
63 std::string from; 62 std::string from;
64 std::string to; 63 std::string to;
65 ActionType action; 64 ActionType action;
66 std::string sid; 65 std::string sid;
67 66
68 scoped_ptr<ContentDescription> description; 67 scoped_ptr<ContentDescription> description;
69 std::list<cricket::Candidate> candidates; 68 std::list<cricket::Candidate> candidates;
70 69
71 // Content of session-info messages. 70 // Content of session-info messages.
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 103
105 ReplyType type; 104 ReplyType type;
106 ErrorType error_type; 105 ErrorType error_type;
107 std::string text; 106 std::string text;
108 }; 107 };
109 108
110 } // protocol 109 } // protocol
111 } // remoting 110 } // remoting
112 111
113 #endif // REMOTING_PROTOCOL_JINGLE_MESSAGES_H_ 112 #endif // REMOTING_PROTOCOL_JINGLE_MESSAGES_H_
OLDNEW
« no previous file with comments | « remoting/jingle_glue/jingle_info_request.cc ('k') | remoting/protocol/jingle_messages.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698