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

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

Issue 15685008: Show a 'remember me' checkbox in the web-app when connecting to a host that supports pairing. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Reviewer comments. 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; 22 typedef base::Callback<void(const std::string& secret)> SecretFetchedCallback;
23 typedef base::Callback<void( 23 typedef base::Callback<void(
24 bool pairing_supported,
24 const SecretFetchedCallback& secret_fetched_callback)> FetchSecretCallback; 25 const SecretFetchedCallback& secret_fetched_callback)> FetchSecretCallback;
25 26
26 // Authenticator is an abstract interface for authentication protocol 27 // Authenticator is an abstract interface for authentication protocol
27 // implementations. Different implementations of this interface may be 28 // implementations. Different implementations of this interface may be
28 // used on each side of the connection depending of type of the auth 29 // used on each side of the connection depending of type of the auth
29 // protocol. Client and host will repeatedly call their Authenticators 30 // protocol. Client and host will repeatedly call their Authenticators
30 // and deliver the messages they generate, until successful 31 // and deliver the messages they generate, until successful
31 // authentication is reported. 32 // authentication is reported.
32 // 33 //
33 // Authenticator may exchange multiple messages before session is 34 // Authenticator may exchange multiple messages before session is
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 virtual scoped_ptr<Authenticator> CreateAuthenticator( 127 virtual scoped_ptr<Authenticator> CreateAuthenticator(
127 const std::string& local_jid, 128 const std::string& local_jid,
128 const std::string& remote_jid, 129 const std::string& remote_jid,
129 const buzz::XmlElement* first_message) = 0; 130 const buzz::XmlElement* first_message) = 0;
130 }; 131 };
131 132
132 } // namespace protocol 133 } // namespace protocol
133 } // namespace remoting 134 } // namespace remoting
134 135
135 #endif // REMOTING_PROTOCOL_AUTHENTICATOR_H_ 136 #endif // REMOTING_PROTOCOL_AUTHENTICATOR_H_
OLDNEW
« no previous file with comments | « remoting/client/plugin/chromoting_instance.cc ('k') | remoting/protocol/negotiating_authenticator_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698