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

Side by Side Diff: remoting/host/pam_authorization_factory_posix.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 (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/host/pam_authorization_factory_posix.h" 5 #include "remoting/host/pam_authorization_factory_posix.h"
6 6
7 #include <security/pam_appl.h> 7 #include <security/pam_appl.h>
8 8
9 #include <utility> 9 #include <utility>
10 10
11 #include "base/bind.h" 11 #include "base/bind.h"
12 #include "base/callback.h" 12 #include "base/callback.h"
13 #include "base/environment.h" 13 #include "base/environment.h"
14 #include "base/memory/ptr_util.h" 14 #include "base/memory/ptr_util.h"
15 #include "remoting/base/logging.h" 15 #include "remoting/base/logging.h"
16 #include "remoting/host/username.h" 16 #include "remoting/host/username.h"
17 #include "remoting/protocol/channel_authenticator.h" 17 #include "remoting/protocol/channel_authenticator.h"
18 #include "third_party/webrtc/libjingle/xmllite/xmlelement.h" 18 #include "third_party/libjingle_xmpp/xmllite/xmlelement.h"
19 19
20 namespace remoting { 20 namespace remoting {
21 21
22 namespace { 22 namespace {
23 class PamAuthorizer : public protocol::Authenticator { 23 class PamAuthorizer : public protocol::Authenticator {
24 public: 24 public:
25 PamAuthorizer(std::unique_ptr<protocol::Authenticator> underlying); 25 PamAuthorizer(std::unique_ptr<protocol::Authenticator> underlying);
26 ~PamAuthorizer() override; 26 ~PamAuthorizer() override;
27 27
28 // protocol::Authenticator interface. 28 // protocol::Authenticator interface.
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 170
171 std::unique_ptr<protocol::Authenticator> 171 std::unique_ptr<protocol::Authenticator>
172 PamAuthorizationFactory::CreateAuthenticator(const std::string& local_jid, 172 PamAuthorizationFactory::CreateAuthenticator(const std::string& local_jid,
173 const std::string& remote_jid) { 173 const std::string& remote_jid) {
174 std::unique_ptr<protocol::Authenticator> authenticator( 174 std::unique_ptr<protocol::Authenticator> authenticator(
175 underlying_->CreateAuthenticator(local_jid, remote_jid)); 175 underlying_->CreateAuthenticator(local_jid, remote_jid));
176 return base::MakeUnique<PamAuthorizer>(std::move(authenticator)); 176 return base::MakeUnique<PamAuthorizer>(std::move(authenticator));
177 } 177 }
178 178
179 } // namespace remoting 179 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/host/host_status_logger_unittest.cc ('k') | remoting/host/register_support_host_request.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698