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

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

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 #include "remoting/protocol/negotiating_authenticator_base.h" 5 #include "remoting/protocol/negotiating_authenticator_base.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <sstream> 8 #include <sstream>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 result->AddAttr(kMethodAttributeQName, current_method_.ToString()); 96 result->AddAttr(kMethodAttributeQName, current_method_.ToString());
97 return result.Pass(); 97 return result.Pass();
98 } 98 }
99 99
100 void NegotiatingAuthenticatorBase::AddMethod( 100 void NegotiatingAuthenticatorBase::AddMethod(
101 const AuthenticationMethod& method) { 101 const AuthenticationMethod& method) {
102 DCHECK(method.is_valid()); 102 DCHECK(method.is_valid());
103 methods_.push_back(method); 103 methods_.push_back(method);
104 } 104 }
105 105
106 const std::string& NegotiatingAuthenticatorBase::GetAuthKey() const {
107 DCHECK_EQ(state(), ACCEPTED);
108 return current_authenticator_->GetAuthKey();
109 }
110
106 scoped_ptr<ChannelAuthenticator> 111 scoped_ptr<ChannelAuthenticator>
107 NegotiatingAuthenticatorBase::CreateChannelAuthenticator() const { 112 NegotiatingAuthenticatorBase::CreateChannelAuthenticator() const {
108 DCHECK_EQ(state(), ACCEPTED); 113 DCHECK_EQ(state(), ACCEPTED);
109 return current_authenticator_->CreateChannelAuthenticator(); 114 return current_authenticator_->CreateChannelAuthenticator();
110 } 115 }
111 116
112 } // namespace protocol 117 } // namespace protocol
113 } // namespace remoting 118 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/protocol/negotiating_authenticator_base.h ('k') | remoting/protocol/pairing_authenticator_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698