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

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

Issue 2443903004: Add xmllite and xmpp sources to third_party/ (Closed)
Patch Set: Explicitly use webrtc_overrides/webrtc/base/logging.h Created 3 years, 11 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_client_authenticator.h" 5 #include "remoting/protocol/third_party_client_authenticator.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/base64.h" 9 #include "base/base64.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
11 #include "base/callback.h" 11 #include "base/callback.h"
12 #include "base/logging.h" 12 #include "base/logging.h"
13 #include "remoting/base/constants.h" 13 #include "remoting/base/constants.h"
14 #include "remoting/base/rsa_key_pair.h" 14 #include "remoting/base/rsa_key_pair.h"
15 #include "remoting/protocol/channel_authenticator.h" 15 #include "remoting/protocol/channel_authenticator.h"
16 #include "third_party/webrtc/libjingle/xmllite/xmlelement.h" 16 #include "third_party/libjingle_xmpp/xmllite/xmlelement.h"
17 17
18 namespace remoting { 18 namespace remoting {
19 namespace protocol { 19 namespace protocol {
20 20
21 ThirdPartyClientAuthenticator::ThirdPartyClientAuthenticator( 21 ThirdPartyClientAuthenticator::ThirdPartyClientAuthenticator(
22 const CreateBaseAuthenticatorCallback& create_base_authenticator_callback, 22 const CreateBaseAuthenticatorCallback& create_base_authenticator_callback,
23 const FetchThirdPartyTokenCallback& fetch_token_callback) 23 const FetchThirdPartyTokenCallback& fetch_token_callback)
24 : ThirdPartyAuthenticatorBase(WAITING_MESSAGE), 24 : ThirdPartyAuthenticatorBase(WAITING_MESSAGE),
25 create_base_authenticator_callback_(create_base_authenticator_callback), 25 create_base_authenticator_callback_(create_base_authenticator_callback),
26 fetch_token_callback_(std::move(fetch_token_callback)), 26 fetch_token_callback_(std::move(fetch_token_callback)),
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 } else { 73 } else {
74 token_state_ = MESSAGE_READY; 74 token_state_ = MESSAGE_READY;
75 underlying_ = 75 underlying_ =
76 create_base_authenticator_callback_.Run(shared_secret, MESSAGE_READY); 76 create_base_authenticator_callback_.Run(shared_secret, MESSAGE_READY);
77 } 77 }
78 resume_callback.Run(); 78 resume_callback.Run();
79 } 79 }
80 80
81 } // namespace protocol 81 } // namespace protocol
82 } // namespace remoting 82 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/protocol/third_party_authenticator_unittest.cc ('k') | remoting/protocol/third_party_host_authenticator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698