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

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

Issue 9836062: Implement exponential backoff for failed Me2Me authentication attempts (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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
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 17 matching lines...) Expand all
28 enum ActionType { 28 enum ActionType {
29 UNKNOWN_ACTION, 29 UNKNOWN_ACTION,
30 SESSION_INITIATE, 30 SESSION_INITIATE,
31 SESSION_ACCEPT, 31 SESSION_ACCEPT,
32 SESSION_TERMINATE, 32 SESSION_TERMINATE,
33 SESSION_INFO, 33 SESSION_INFO,
34 TRANSPORT_INFO, 34 TRANSPORT_INFO,
35 }; 35 };
36 36
37 enum Reason { 37 enum Reason {
38 // Currently only termination reasons that can be sent by the host
39 // are understood. All others are converted to UNKNOWN_REASON.
40 UNKNOWN_REASON, 38 UNKNOWN_REASON,
41 SUCCESS, 39 SUCCESS,
42 DECLINE, 40 DECLINE,
41 CANCEL,
43 GENERAL_ERROR, 42 GENERAL_ERROR,
44 INCOMPATIBLE_PARAMETERS, 43 INCOMPATIBLE_PARAMETERS,
45 }; 44 };
46 45
47 JingleMessage(); 46 JingleMessage();
48 JingleMessage(const std::string& to_value, 47 JingleMessage(const std::string& to_value,
49 ActionType action_value, 48 ActionType action_value,
50 const std::string& sid_value); 49 const std::string& sid_value);
51 ~JingleMessage(); 50 ~JingleMessage();
52 51
(...skipping 51 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

Powered by Google App Engine
This is Rietveld 408576698