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

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

Issue 14793021: PairingAuthenticator implementation and plumbing. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed clang errors. Created 7 years, 7 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_AUTHENTICATOR_H_ 5 #ifndef REMOTING_PROTOCOL_AUTHENTICATOR_H_
6 #define REMOTING_PROTOCOL_AUTHENTICATOR_H_ 6 #define REMOTING_PROTOCOL_AUTHENTICATOR_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 12
13 namespace buzz { 13 namespace buzz {
14 class XmlElement; 14 class XmlElement;
15 } // namespace buzz 15 } // namespace buzz
16 16
17 namespace remoting { 17 namespace remoting {
18 namespace protocol { 18 namespace protocol {
19 19
20 class ChannelAuthenticator; 20 class ChannelAuthenticator;
21 21
22 typedef base::Callback<void(const std::string& secret)> SecretFetchedCallback;
23 typedef base::Callback<void(
24 const SecretFetchedCallback& secret_fetched_callback)> FetchSecretCallback;
25
22 // Authenticator is an abstract interface for authentication protocol 26 // Authenticator is an abstract interface for authentication protocol
23 // implementations. Different implementations of this interface may be 27 // implementations. Different implementations of this interface may be
24 // used on each side of the connection depending of type of the auth 28 // used on each side of the connection depending of type of the auth
25 // protocol. Client and host will repeatedly call their Authenticators 29 // protocol. Client and host will repeatedly call their Authenticators
26 // and deliver the messages they generate, until successful 30 // and deliver the messages they generate, until successful
27 // authentication is reported. 31 // authentication is reported.
28 // 32 //
29 // Authenticator may exchange multiple messages before session is 33 // Authenticator may exchange multiple messages before session is
30 // authenticated. Each message sent/received by an Authenticator is 34 // authenticated. Each message sent/received by an Authenticator is
31 // delivered either in a session description inside session-initiate 35 // delivered either in a session description inside session-initiate
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 virtual scoped_ptr<Authenticator> CreateAuthenticator( 126 virtual scoped_ptr<Authenticator> CreateAuthenticator(
123 const std::string& local_jid, 127 const std::string& local_jid,
124 const std::string& remote_jid, 128 const std::string& remote_jid,
125 const buzz::XmlElement* first_message) = 0; 129 const buzz::XmlElement* first_message) = 0;
126 }; 130 };
127 131
128 } // namespace protocol 132 } // namespace protocol
129 } // namespace remoting 133 } // namespace remoting
130 134
131 #endif // REMOTING_PROTOCOL_AUTHENTICATOR_H_ 135 #endif // REMOTING_PROTOCOL_AUTHENTICATOR_H_
OLDNEW
« no previous file with comments | « remoting/protocol/authentication_method.cc ('k') | remoting/protocol/it2me_host_authenticator_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698