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

Unified Diff: remoting/protocol/fake_authenticator.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/protocol/datagram_channel_factory.h ('k') | remoting/protocol/fake_authenticator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/fake_authenticator.h
diff --git a/remoting/protocol/fake_authenticator.h b/remoting/protocol/fake_authenticator.h
index 4928d913b9bbdeb758adce1305f27fc98aec361e..b17630c3398f59e72516b359102d2f1a03ae380e 100644
--- a/remoting/protocol/fake_authenticator.h
+++ b/remoting/protocol/fake_authenticator.h
@@ -20,7 +20,7 @@ class FakeChannelAuthenticator : public ChannelAuthenticator {
~FakeChannelAuthenticator() override;
// ChannelAuthenticator interface.
- void SecureAndAuthenticate(scoped_ptr<P2PStreamSocket> socket,
+ void SecureAndAuthenticate(std::unique_ptr<P2PStreamSocket> socket,
const DoneCallback& done_callback) override;
private:
@@ -32,7 +32,7 @@ class FakeChannelAuthenticator : public ChannelAuthenticator {
const int result_;
const bool async_;
- scoped_ptr<P2PStreamSocket> socket_;
+ std::unique_ptr<P2PStreamSocket> socket_;
DoneCallback done_callback_;
bool did_read_bytes_ = false;
@@ -74,9 +74,10 @@ class FakeAuthenticator : public Authenticator {
RejectionReason rejection_reason() const override;
void ProcessMessage(const buzz::XmlElement* message,
const base::Closure& resume_callback) override;
- scoped_ptr<buzz::XmlElement> GetNextMessage() override;
+ std::unique_ptr<buzz::XmlElement> GetNextMessage() override;
const std::string& GetAuthKey() const override;
- scoped_ptr<ChannelAuthenticator> CreateChannelAuthenticator() const override;
+ std::unique_ptr<ChannelAuthenticator> CreateChannelAuthenticator()
+ const override;
protected:
const Type type_;
@@ -103,7 +104,7 @@ class FakeHostAuthenticatorFactory : public AuthenticatorFactory {
~FakeHostAuthenticatorFactory() override;
// AuthenticatorFactory interface.
- scoped_ptr<Authenticator> CreateAuthenticator(
+ std::unique_ptr<Authenticator> CreateAuthenticator(
const std::string& local_jid,
const std::string& remote_jid) override;
« no previous file with comments | « remoting/protocol/datagram_channel_factory.h ('k') | remoting/protocol/fake_authenticator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698