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

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

Issue 1277093006: Enable QUIC support in chromoting (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@quic_adapters
Patch Set: Created 5 years, 4 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
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_V2_AUTHENTICATOR_H_ 5 #ifndef REMOTING_PROTOCOL_V2_AUTHENTICATOR_H_
6 #define REMOTING_PROTOCOL_V2_AUTHENTICATOR_H_ 6 #define REMOTING_PROTOCOL_V2_AUTHENTICATOR_H_
7 7
8 #include <string> 8 #include <string>
9 #include <queue> 9 #include <queue>
10 10
(...skipping 25 matching lines...) Expand all
36 36
37 ~V2Authenticator() override; 37 ~V2Authenticator() override;
38 38
39 // Authenticator interface. 39 // Authenticator interface.
40 State state() const override; 40 State state() const override;
41 bool started() const override; 41 bool started() const override;
42 RejectionReason rejection_reason() const override; 42 RejectionReason rejection_reason() const override;
43 void ProcessMessage(const buzz::XmlElement* message, 43 void ProcessMessage(const buzz::XmlElement* message,
44 const base::Closure& resume_callback) override; 44 const base::Closure& resume_callback) override;
45 scoped_ptr<buzz::XmlElement> GetNextMessage() override; 45 scoped_ptr<buzz::XmlElement> GetNextMessage() override;
46 const std::string& GetAuthKey() const override;
46 scoped_ptr<ChannelAuthenticator> CreateChannelAuthenticator() const override; 47 scoped_ptr<ChannelAuthenticator> CreateChannelAuthenticator() const override;
47 48
48 private: 49 private:
49 FRIEND_TEST_ALL_PREFIXES(V2AuthenticatorTest, InvalidSecret); 50 FRIEND_TEST_ALL_PREFIXES(V2AuthenticatorTest, InvalidSecret);
50 51
51 V2Authenticator(crypto::P224EncryptedKeyExchange::PeerType type, 52 V2Authenticator(crypto::P224EncryptedKeyExchange::PeerType type,
52 const std::string& shared_secret, 53 const std::string& shared_secret,
53 State initial_state); 54 State initial_state);
54 55
55 virtual void ProcessMessageInternal(const buzz::XmlElement* message); 56 virtual void ProcessMessageInternal(const buzz::XmlElement* message);
(...skipping 16 matching lines...) Expand all
72 std::queue<std::string> pending_messages_; 73 std::queue<std::string> pending_messages_;
73 std::string auth_key_; 74 std::string auth_key_;
74 75
75 DISALLOW_COPY_AND_ASSIGN(V2Authenticator); 76 DISALLOW_COPY_AND_ASSIGN(V2Authenticator);
76 }; 77 };
77 78
78 } // namespace protocol 79 } // namespace protocol
79 } // namespace remoting 80 } // namespace remoting
80 81
81 #endif // REMOTING_PROTOCOL_V2_AUTHENTICATOR_H_ 82 #endif // REMOTING_PROTOCOL_V2_AUTHENTICATOR_H_
OLDNEW
« no previous file with comments | « remoting/protocol/third_party_authenticator_base.cc ('k') | remoting/protocol/v2_authenticator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698