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

Side by Side Diff: remoting/protocol/third_party_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 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 #include "remoting/protocol/third_party_authenticator_base.h" 5 #include "remoting/protocol/third_party_authenticator_base.h"
6 6
7 #include "base/base64.h" 7 #include "base/base64.h"
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 message = CreateEmptyAuthenticatorMessage(); 79 message = CreateEmptyAuthenticatorMessage();
80 } 80 }
81 81
82 if (token_state_ == MESSAGE_READY) { 82 if (token_state_ == MESSAGE_READY) {
83 AddTokenElements(message.get()); 83 AddTokenElements(message.get());
84 started_ = true; 84 started_ = true;
85 } 85 }
86 return message.Pass(); 86 return message.Pass();
87 } 87 }
88 88
89 const std::string& ThirdPartyAuthenticatorBase::GetAuthKey() const {
90 DCHECK_EQ(state(), ACCEPTED);
91
92 return underlying_->GetAuthKey();
93 }
94
89 scoped_ptr<ChannelAuthenticator> 95 scoped_ptr<ChannelAuthenticator>
90 ThirdPartyAuthenticatorBase::CreateChannelAuthenticator() const { 96 ThirdPartyAuthenticatorBase::CreateChannelAuthenticator() const {
91 DCHECK_EQ(state(), ACCEPTED); 97 DCHECK_EQ(state(), ACCEPTED);
92 98
93 return underlying_->CreateChannelAuthenticator(); 99 return underlying_->CreateChannelAuthenticator();
94 } 100 }
95 101
96 } // namespace protocol 102 } // namespace protocol
97 } // namespace remoting 103 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/protocol/third_party_authenticator_base.h ('k') | remoting/protocol/v2_authenticator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698