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

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

Issue 8647001: Add implementation for current IT2Me auth. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef REMOTING_PROTOCOL_SIMPLE_CLIENT_AUTHENTICATOR_H_
6 #define REMOTING_PROTOCOL_SIMPLE_CLIENT_AUTHENTICATOR_H_
7
8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h"
10 #include "remoting/protocol/authenticator.h"
11
12 namespace remoting {
13 namespace protocol {
14
15 class SimpleClientAuthenticator : public Authenticator {
Wez 2011/11/22 22:58:05 More descriptive name?
Wez 2011/11/22 22:58:05 Simple is not a very descriptive name. :(
Sergey Ulanov 2011/11/23 02:02:25 Done.
Sergey Ulanov 2011/11/23 02:02:25 Done.
16 public:
17 explicit SimpleClientAuthenticator(const std::string& local_jid,
18 const std::string& shared_secret);
19 virtual ~SimpleClientAuthenticator();
20
21 // Authenticator implementation.
Wez 2011/11/22 22:58:05 nit: implementation -> interface?
Sergey Ulanov 2011/11/23 02:02:25 Done.
22 virtual State state() const OVERRIDE;
23 virtual void ProcessMessage(const buzz::XmlElement* message) OVERRIDE;
24 virtual buzz::XmlElement* GetNextMessage() OVERRIDE;
25 virtual ChannelAuthenticator* CreateChannelAuthenticator() const OVERRIDE;
26
27 private:
28 std::string local_jid_;
29 std::string shared_secret_;
30 std::string remote_cert_;
31 State state_;
32
33 DISALLOW_COPY_AND_ASSIGN(SimpleClientAuthenticator);
34 };
35
36 } // namespace protocol
37 } // namespace remoting
38
39 #endif // REMOTING_PROTOCOL_SIMPLE_CLIENT_AUTHENTICATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698