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

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

Issue 14793021: PairingAuthenticator implementation and plumbing. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rmsousa's 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_NEGOTIATING_AUTHENTICATOR_BASE_H_ 5 #ifndef REMOTING_PROTOCOL_NEGOTIATING_AUTHENTICATOR_BASE_H_
6 #define REMOTING_PROTOCOL_NEGOTIATING_AUTHENTICATOR_BASE_H_ 6 #define REMOTING_PROTOCOL_NEGOTIATING_AUTHENTICATOR_BASE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 64
65 // Authenticator interface. 65 // Authenticator interface.
66 virtual State state() const OVERRIDE; 66 virtual State state() const OVERRIDE;
67 virtual RejectionReason rejection_reason() const OVERRIDE; 67 virtual RejectionReason rejection_reason() const OVERRIDE;
68 virtual scoped_ptr<ChannelAuthenticator> 68 virtual scoped_ptr<ChannelAuthenticator>
69 CreateChannelAuthenticator() const OVERRIDE; 69 CreateChannelAuthenticator() const OVERRIDE;
70 70
71 // Calls |current_authenticator_| to process |message|, passing the supplied 71 // Calls |current_authenticator_| to process |message|, passing the supplied
72 // |resume_callback|. 72 // |resume_callback|.
73 void ProcessMessageInternal(const buzz::XmlElement* message, 73 void ProcessMessageInternal(const buzz::XmlElement* message,
74 const base::Closure& resume_callback); 74 const base::Closure& resume_callback);
Wez 2013/05/18 20:08:36 nit: This indentation looks broken.
Jamie 2013/05/21 01:24:34 Done.
75 75
76 const AuthenticationMethod& current_method() const { return current_method_; }
77
76 protected: 78 protected:
77 static const buzz::StaticQName kMethodAttributeQName; 79 static const buzz::StaticQName kMethodAttributeQName;
78 static const buzz::StaticQName kSupportedMethodsAttributeQName; 80 static const buzz::StaticQName kSupportedMethodsAttributeQName;
79 static const char kSupportedMethodsSeparator; 81 static const char kSupportedMethodsSeparator;
80 82
81 explicit NegotiatingAuthenticatorBase(Authenticator::State initial_state); 83 explicit NegotiatingAuthenticatorBase(Authenticator::State initial_state);
82 84
83 void AddMethod(const AuthenticationMethod& method); 85 void AddMethod(const AuthenticationMethod& method);
84 86
85 // Updates |state_| to reflect the current underlying authenticator state. 87 // Updates |state_| to reflect the current underlying authenticator state.
(...skipping 11 matching lines...) Expand all
97 RejectionReason rejection_reason_; 99 RejectionReason rejection_reason_;
98 100
99 private: 101 private:
100 DISALLOW_COPY_AND_ASSIGN(NegotiatingAuthenticatorBase); 102 DISALLOW_COPY_AND_ASSIGN(NegotiatingAuthenticatorBase);
101 }; 103 };
102 104
103 } // namespace protocol 105 } // namespace protocol
104 } // namespace remoting 106 } // namespace remoting
105 107
106 #endif // REMOTING_PROTOCOL_NEGOTIATING_AUTHENTICATOR_BASE_H_ 108 #endif // REMOTING_PROTOCOL_NEGOTIATING_AUTHENTICATOR_BASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698