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_SESSION_H_ | 5 #ifndef REMOTING_PROTOCOL_JINGLE_SESSION_H_ |
6 #define REMOTING_PROTOCOL_JINGLE_SESSION_H_ | 6 #define REMOTING_PROTOCOL_JINGLE_SESSION_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <map> | 9 #include <map> |
10 #include <set> | 10 #include <set> |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 const ReplyCallback& reply_callback); | 119 const ReplyCallback& reply_callback); |
120 void OnSessionInfo(const JingleMessage& message, | 120 void OnSessionInfo(const JingleMessage& message, |
121 const ReplyCallback& reply_callback); | 121 const ReplyCallback& reply_callback); |
122 void OnTerminate(const JingleMessage& message, | 122 void OnTerminate(const JingleMessage& message, |
123 const ReplyCallback& reply_callback); | 123 const ReplyCallback& reply_callback); |
124 void ProcessTransportInfo(const JingleMessage& message); | 124 void ProcessTransportInfo(const JingleMessage& message); |
125 | 125 |
126 // Called from OnAccept() to initialize session config. | 126 // Called from OnAccept() to initialize session config. |
127 bool InitializeConfigFromDescription(const ContentDescription* description); | 127 bool InitializeConfigFromDescription(const ContentDescription* description); |
128 | 128 |
| 129 // Called after the initial incoming authenticator message is processed. |
| 130 void ContinueAcceptIncomingConnection(); |
| 131 // Called after subsequent authenticator messages are processed. |
129 void ProcessAuthenticationStep(); | 132 void ProcessAuthenticationStep(); |
130 | 133 |
131 // Terminates the session and sends session-terminate if it is | 134 // Terminates the session and sends session-terminate if it is |
132 // necessary. |error| specifies the error code in case when the | 135 // necessary. |error| specifies the error code in case when the |
133 // session is being closed due to an error. | 136 // session is being closed due to an error. |
134 void CloseInternal(ErrorCode error); | 137 void CloseInternal(ErrorCode error); |
135 | 138 |
136 // Sets |state_| to |new_state| and calls state change callback. | 139 // Sets |state_| to |new_state| and calls state change callback. |
137 void SetState(State new_state); | 140 void SetState(State new_state); |
138 | 141 |
(...skipping 23 matching lines...) Expand all Loading... |
162 base::OneShotTimer<JingleSession> transport_infos_timer_; | 165 base::OneShotTimer<JingleSession> transport_infos_timer_; |
163 std::list<JingleMessage::NamedCandidate> pending_candidates_; | 166 std::list<JingleMessage::NamedCandidate> pending_candidates_; |
164 | 167 |
165 DISALLOW_COPY_AND_ASSIGN(JingleSession); | 168 DISALLOW_COPY_AND_ASSIGN(JingleSession); |
166 }; | 169 }; |
167 | 170 |
168 } // namespace protocol | 171 } // namespace protocol |
169 } // namespace remoting | 172 } // namespace remoting |
170 | 173 |
171 #endif // REMOTING_PROTOCOL_JINGLE_SESSION_H_ | 174 #endif // REMOTING_PROTOCOL_JINGLE_SESSION_H_ |
OLD | NEW |