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

Side by Side Diff: remoting/protocol/pseudotcp_channel_factory.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_PROTOCOL_PSEUDOTCP_CHANNEL_FACTORY_H_ 5 #ifndef REMOTING_PROTOCOL_PSEUDOTCP_CHANNEL_FACTORY_H_
6 #define REMOTING_PROTOCOL_PSEUDOTCP_CHANNEL_FACTORY_H_ 6 #define REMOTING_PROTOCOL_PSEUDOTCP_CHANNEL_FACTORY_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 17 matching lines...) Expand all
28 // StreamChannelFactory interface. 28 // StreamChannelFactory interface.
29 void CreateChannel(const std::string& name, 29 void CreateChannel(const std::string& name,
30 const ChannelCreatedCallback& callback) override; 30 const ChannelCreatedCallback& callback) override;
31 void CancelChannelCreation(const std::string& name) override; 31 void CancelChannelCreation(const std::string& name) override;
32 32
33 private: 33 private:
34 typedef std::map<std::string, P2PStreamSocket*> PendingSocketsMap; 34 typedef std::map<std::string, P2PStreamSocket*> PendingSocketsMap;
35 35
36 void OnDatagramChannelCreated(const std::string& name, 36 void OnDatagramChannelCreated(const std::string& name,
37 const ChannelCreatedCallback& callback, 37 const ChannelCreatedCallback& callback,
38 scoped_ptr<P2PDatagramSocket> socket); 38 std::unique_ptr<P2PDatagramSocket> socket);
39 void OnPseudoTcpConnected(const std::string& name, 39 void OnPseudoTcpConnected(const std::string& name,
40 const ChannelCreatedCallback& callback, 40 const ChannelCreatedCallback& callback,
41 int result); 41 int result);
42 42
43 DatagramChannelFactory* datagram_channel_factory_; 43 DatagramChannelFactory* datagram_channel_factory_;
44 44
45 PendingSocketsMap pending_sockets_; 45 PendingSocketsMap pending_sockets_;
46 46
47 DISALLOW_COPY_AND_ASSIGN(PseudoTcpChannelFactory); 47 DISALLOW_COPY_AND_ASSIGN(PseudoTcpChannelFactory);
48 }; 48 };
49 49
50 } // namespace protocol 50 } // namespace protocol
51 } // namespace remoting 51 } // namespace remoting
52 52
53 #endif // REMOTING_PROTOCOL_PSEUDOTCP_CHANNEL_FACTORY_H_ 53 #endif // REMOTING_PROTOCOL_PSEUDOTCP_CHANNEL_FACTORY_H_
OLDNEW
« no previous file with comments | « remoting/protocol/pseudotcp_adapter_unittest.cc ('k') | remoting/protocol/pseudotcp_channel_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698