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

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

Issue 165293004: Refactor TokenValidatorImpl into a base class + implementation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 10 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
« no previous file with comments | « remoting/protocol/third_party_host_authenticator.h ('k') | remoting/protocol/token_validator.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_host_authenticator.h" 5 #include "remoting/protocol/third_party_host_authenticator.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"
11 #include "remoting/base/constants.h" 11 #include "remoting/base/constants.h"
12 #include "remoting/base/rsa_key_pair.h" 12 #include "remoting/base/rsa_key_pair.h"
13 #include "remoting/protocol/token_validator.h"
13 #include "remoting/protocol/v2_authenticator.h" 14 #include "remoting/protocol/v2_authenticator.h"
14 #include "third_party/libjingle/source/talk/xmllite/xmlelement.h" 15 #include "third_party/libjingle/source/talk/xmllite/xmlelement.h"
15 16
16 namespace remoting { 17 namespace remoting {
17 namespace protocol { 18 namespace protocol {
18 19
19 ThirdPartyHostAuthenticator::ThirdPartyHostAuthenticator( 20 ThirdPartyHostAuthenticator::ThirdPartyHostAuthenticator(
20 const std::string& local_cert, 21 const std::string& local_cert,
21 scoped_refptr<RsaKeyPair> key_pair, 22 scoped_refptr<RsaKeyPair> key_pair,
22 scoped_ptr<TokenValidator> token_validator) 23 scoped_ptr<TokenValidator> token_validator)
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 86
86 // The other side already started the SPAKE authentication. 87 // The other side already started the SPAKE authentication.
87 token_state_ = ACCEPTED; 88 token_state_ = ACCEPTED;
88 underlying_ = V2Authenticator::CreateForHost( 89 underlying_ = V2Authenticator::CreateForHost(
89 local_cert_, key_pair_, shared_secret, WAITING_MESSAGE); 90 local_cert_, key_pair_, shared_secret, WAITING_MESSAGE);
90 underlying_->ProcessMessage(message, resume_callback); 91 underlying_->ProcessMessage(message, resume_callback);
91 } 92 }
92 93
93 } // namespace protocol 94 } // namespace protocol
94 } // namespace remoting 95 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/protocol/third_party_host_authenticator.h ('k') | remoting/protocol/token_validator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698