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

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

Issue 8774031: Multi-step authentication support in JingleSession. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 9 years 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/task.h" 9 #include "base/task.h"
10 #include "net/base/completion_callback.h" 10 #include "net/base/completion_callback.h"
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 void CloseInternal(int result, Error error); 67 void CloseInternal(int result, Error error);
68 68
69 bool HasSession(cricket::Session* cricket_session); 69 bool HasSession(cricket::Session* cricket_session);
70 cricket::Session* ReleaseSession(); 70 cricket::Session* ReleaseSession();
71 71
72 // Initialize the session configuration from a received connection response 72 // Initialize the session configuration from a received connection response
73 // stanza. 73 // stanza.
74 bool InitializeConfigFromDescription( 74 bool InitializeConfigFromDescription(
75 const cricket::SessionDescription* description); 75 const cricket::SessionDescription* description);
76 76
77 // Used for Session.SignalState sigslot. 77 // Handlers for |cricket_session_| signals.
78 void OnSessionState(cricket::BaseSession* session, 78 void OnSessionState(cricket::BaseSession* session,
79 cricket::BaseSession::State state); 79 cricket::BaseSession::State state);
80 // Used for Session.SignalError sigslot.
81 void OnSessionError(cricket::BaseSession* session, 80 void OnSessionError(cricket::BaseSession* session,
82 cricket::BaseSession::Error error); 81 cricket::BaseSession::Error error);
82 void OnSessionInfoMessage(cricket::Session* session,
83 const buzz::XmlElement* message);
83 84
84 void OnInitiate(); 85 void OnInitiate();
85 void OnAccept(); 86 void OnAccept();
86 void OnTerminate(); 87 void OnTerminate();
87 88
88 // Notifies upper layer about incoming connection and 89 // Notifies upper layer about incoming connection and
89 // accepts/rejects connection. 90 // accepts/rejects connection.
90 void AcceptConnection(); 91 void AcceptConnection();
91 92
93 void ProcessAuthenticationStep();
94
92 void AddChannelConnector(const std::string& name, 95 void AddChannelConnector(const std::string& name,
93 JingleChannelConnector* connector); 96 JingleChannelConnector* connector);
94 97
95 // Called by JingleChannelConnector when it has finished connecting 98 // Called by JingleChannelConnector when it has finished connecting
96 // the channel, to remove itself from the table of pending connectors. The 99 // the channel, to remove itself from the table of pending connectors. The
97 // connector assumes responsibility for destroying itself after this call. 100 // connector assumes responsibility for destroying itself after this call.
98 void OnChannelConnectorFinished(const std::string& name, 101 void OnChannelConnectorFinished(const std::string& name,
99 JingleChannelConnector* connector); 102 JingleChannelConnector* connector);
100 103
101 const cricket::ContentInfo* GetContentInfo() const; 104 const cricket::ContentInfo* GetContentInfo() const;
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 ScopedRunnableMethodFactory<JingleSession> task_factory_; 141 ScopedRunnableMethodFactory<JingleSession> task_factory_;
139 142
140 DISALLOW_COPY_AND_ASSIGN(JingleSession); 143 DISALLOW_COPY_AND_ASSIGN(JingleSession);
141 }; 144 };
142 145
143 } // namespace protocol 146 } // namespace protocol
144 147
145 } // namespace remoting 148 } // namespace remoting
146 149
147 #endif // REMOTING_PROTOCOL_JINGLE_SESSION_H_ 150 #endif // REMOTING_PROTOCOL_JINGLE_SESSION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698