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

Side by Side Diff: remoting/host/pam_authorization_factory_posix.h

Issue 1864213002: Convert //remoting to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Mac IWYU Created 4 years, 8 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 #ifndef REMOTING_HOST_PAM_AUTHORIZATION_FACTORY_POSIX_H_ 5 #ifndef REMOTING_HOST_PAM_AUTHORIZATION_FACTORY_POSIX_H_
6 #define REMOTING_HOST_PAM_AUTHORIZATION_FACTORY_POSIX_H_ 6 #define REMOTING_HOST_PAM_AUTHORIZATION_FACTORY_POSIX_H_
7 7
8 #include <memory>
9
8 #include "remoting/protocol/authenticator.h" 10 #include "remoting/protocol/authenticator.h"
9 11
10 #include "base/memory/scoped_ptr.h"
11 12
12 // PamAuthorizationFactory abuses the AuthenticatorFactory interface to apply 13 // PamAuthorizationFactory abuses the AuthenticatorFactory interface to apply
13 // PAM-based authorization on top of some underlying authentication scheme. 14 // PAM-based authorization on top of some underlying authentication scheme.
14 15
15 namespace remoting { 16 namespace remoting {
16 17
17 class PamAuthorizationFactory : public protocol::AuthenticatorFactory { 18 class PamAuthorizationFactory : public protocol::AuthenticatorFactory {
18 public: 19 public:
19 PamAuthorizationFactory( 20 PamAuthorizationFactory(
20 scoped_ptr<protocol::AuthenticatorFactory> underlying); 21 std::unique_ptr<protocol::AuthenticatorFactory> underlying);
21 ~PamAuthorizationFactory() override; 22 ~PamAuthorizationFactory() override;
22 23
23 scoped_ptr<protocol::Authenticator> CreateAuthenticator( 24 std::unique_ptr<protocol::Authenticator> CreateAuthenticator(
24 const std::string& local_jid, 25 const std::string& local_jid,
25 const std::string& remote_jid) override; 26 const std::string& remote_jid) override;
26 27
27 private: 28 private:
28 scoped_ptr<protocol::AuthenticatorFactory> underlying_; 29 std::unique_ptr<protocol::AuthenticatorFactory> underlying_;
29 }; 30 };
30 31
31 } // namespace remoting 32 } // namespace remoting
32 33
33 #endif 34 #endif
OLDNEW
« no previous file with comments | « remoting/host/pairing_registry_delegate_win_unittest.cc ('k') | remoting/host/pam_authorization_factory_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698