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

Side by Side Diff: remoting/protocol/pairing_authenticator_base.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_PAIRING_AUTHENTICATOR_BASE_H_ 5 #ifndef REMOTING_PROTOCOL_PAIRING_AUTHENTICATOR_BASE_H_
6 #define REMOTING_PROTOCOL_PAIRING_AUTHENTICATOR_BASE_H_ 6 #define REMOTING_PROTOCOL_PAIRING_AUTHENTICATOR_BASE_H_
7 7
8 #include "base/memory/weak_ptr.h" 8 #include "base/memory/weak_ptr.h"
9 #include "remoting/protocol/authenticator.h" 9 #include "remoting/protocol/authenticator.h"
10 #include "third_party/webrtc/libjingle/xmllite/xmlelement.h" 10 #include "third_party/webrtc/libjingle/xmllite/xmlelement.h"
(...skipping 30 matching lines...) Expand all
41 PairingAuthenticatorBase(); 41 PairingAuthenticatorBase();
42 ~PairingAuthenticatorBase() override; 42 ~PairingAuthenticatorBase() override;
43 43
44 // Authenticator interface. 44 // Authenticator interface.
45 State state() const override; 45 State state() const override;
46 bool started() const override; 46 bool started() const override;
47 RejectionReason rejection_reason() const override; 47 RejectionReason rejection_reason() const override;
48 void ProcessMessage(const buzz::XmlElement* message, 48 void ProcessMessage(const buzz::XmlElement* message,
49 const base::Closure& resume_callback) override; 49 const base::Closure& resume_callback) override;
50 scoped_ptr<buzz::XmlElement> GetNextMessage() override; 50 scoped_ptr<buzz::XmlElement> GetNextMessage() override;
51 const std::string& GetAuthKey() const override;
51 scoped_ptr<ChannelAuthenticator> CreateChannelAuthenticator() const override; 52 scoped_ptr<ChannelAuthenticator> CreateChannelAuthenticator() const override;
52 53
53 protected: 54 protected:
54 typedef base::Callback<void(scoped_ptr<Authenticator> authenticator)> 55 typedef base::Callback<void(scoped_ptr<Authenticator> authenticator)>
55 SetAuthenticatorCallback; 56 SetAuthenticatorCallback;
56 57
57 static const buzz::StaticQName kPairingInfoTag; 58 static const buzz::StaticQName kPairingInfoTag;
58 static const buzz::StaticQName kClientIdAttribute; 59 static const buzz::StaticQName kClientIdAttribute;
59 60
60 // Create a V2 authenticator in the specified state, prompting the user for 61 // Create a V2 authenticator in the specified state, prompting the user for
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 98
98 base::WeakPtrFactory<PairingAuthenticatorBase> weak_factory_; 99 base::WeakPtrFactory<PairingAuthenticatorBase> weak_factory_;
99 100
100 DISALLOW_COPY_AND_ASSIGN(PairingAuthenticatorBase); 101 DISALLOW_COPY_AND_ASSIGN(PairingAuthenticatorBase);
101 }; 102 };
102 103
103 } // namespace protocol 104 } // namespace protocol
104 } // namespace remoting 105 } // namespace remoting
105 106
106 #endif // REMOTING_PROTOCOL_PAIRING_AUTHENTICATOR_H_ 107 #endif // REMOTING_PROTOCOL_PAIRING_AUTHENTICATOR_H_
OLDNEW
« no previous file with comments | « remoting/protocol/negotiating_authenticator_base.cc ('k') | remoting/protocol/pairing_authenticator_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698