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

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

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
« no previous file with comments | « remoting/protocol/rejecting_authenticator.h ('k') | remoting/protocol/secure_channel_factory.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/rejecting_authenticator.h" 5 #include "remoting/protocol/rejecting_authenticator.h"
6 6
7 #include "base/callback.h" 7 #include "base/callback.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "remoting/protocol/channel_authenticator.h" 9 #include "remoting/protocol/channel_authenticator.h"
10 #include "third_party/webrtc/libjingle/xmllite/xmlelement.h" 10 #include "third_party/webrtc/libjingle/xmllite/xmlelement.h"
(...skipping 21 matching lines...) Expand all
32 } 32 }
33 33
34 void RejectingAuthenticator::ProcessMessage( 34 void RejectingAuthenticator::ProcessMessage(
35 const buzz::XmlElement* message, 35 const buzz::XmlElement* message,
36 const base::Closure& resume_callback) { 36 const base::Closure& resume_callback) {
37 DCHECK_EQ(state_, WAITING_MESSAGE); 37 DCHECK_EQ(state_, WAITING_MESSAGE);
38 state_ = REJECTED; 38 state_ = REJECTED;
39 resume_callback.Run(); 39 resume_callback.Run();
40 } 40 }
41 41
42 scoped_ptr<buzz::XmlElement> RejectingAuthenticator::GetNextMessage() { 42 std::unique_ptr<buzz::XmlElement> RejectingAuthenticator::GetNextMessage() {
43 NOTREACHED(); 43 NOTREACHED();
44 return nullptr; 44 return nullptr;
45 } 45 }
46 46
47 const std::string& RejectingAuthenticator::GetAuthKey() const { 47 const std::string& RejectingAuthenticator::GetAuthKey() const {
48 NOTREACHED(); 48 NOTREACHED();
49 return auth_key_; 49 return auth_key_;
50 }; 50 };
51 51
52 scoped_ptr<ChannelAuthenticator> 52 std::unique_ptr<ChannelAuthenticator>
53 RejectingAuthenticator::CreateChannelAuthenticator() const { 53 RejectingAuthenticator::CreateChannelAuthenticator() const {
54 NOTREACHED(); 54 NOTREACHED();
55 return nullptr; 55 return nullptr;
56 } 56 }
57 57
58 } // namespace protocol 58 } // namespace protocol
59 } // namespace remoting 59 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/protocol/rejecting_authenticator.h ('k') | remoting/protocol/secure_channel_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698