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

Unified Diff: remoting/protocol/pseudotcp_channel_factory.h

Issue 1197853003: Add P2PDatagramSocket and P2PStreamSocket interfaces. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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
Index: remoting/protocol/pseudotcp_channel_factory.h
diff --git a/remoting/protocol/pseudotcp_channel_factory.h b/remoting/protocol/pseudotcp_channel_factory.h
index 884594026e12f5dc51977c44ae7329135571c15f..2d2dd89c14bd6ab86c30c29ccce2fe70cbe413be 100644
--- a/remoting/protocol/pseudotcp_channel_factory.h
+++ b/remoting/protocol/pseudotcp_channel_factory.h
@@ -14,6 +14,7 @@ namespace remoting {
namespace protocol {
class DatagramChannelFactory;
+class P2PDatagramSocket;
// StreamChannelFactory that creates PseudoTCP-based stream channels that run on
// top of datagram channels created using specified |datagram_channel_factory|.
@@ -30,11 +31,11 @@ class PseudoTcpChannelFactory : public StreamChannelFactory {
void CancelChannelCreation(const std::string& name) override;
private:
- typedef std::map<std::string, net::StreamSocket*> PendingSocketsMap;
+ typedef std::map<std::string, P2PStreamSocket*> PendingSocketsMap;
void OnDatagramChannelCreated(const std::string& name,
const ChannelCreatedCallback& callback,
- scoped_ptr<net::Socket> socket);
+ scoped_ptr<P2PDatagramSocket> socket);
void OnPseudoTcpConnected(const std::string& name,
const ChannelCreatedCallback& callback,
int result);

Powered by Google App Engine
This is Rietveld 408576698