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

Unified Diff: remoting/protocol/p2p_socket.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/p2p_socket.h
diff --git a/remoting/protocol/p2p_socket.h b/remoting/protocol/p2p_socket.h
new file mode 100644
index 0000000000000000000000000000000000000000..67f12103e19e012cc1ce9a16d7805cd5ddfc8b6f
--- /dev/null
+++ b/remoting/protocol/p2p_socket.h
@@ -0,0 +1,22 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef REMOTING_PROTOCOL_P2P_SOCKET_H_
+#define REMOTING_PROTOCOL_P2P_SOCKET_H_
+
+#include "net/socket/socket.h"
+
+namespace remoting {
+namespace protocol {
+
+// Peer-to-peer socket with stream semantics.
+class P2PStreamSocket : public net::Socket {};
Wez 2015/06/22 15:49:07 As noted before, is there any value in deriving fr
Sergey Ulanov 2015/07/10 00:49:54 No. Rewrote these so they don't depend on net and
+
+// Peer-to-peer socket with datagram semantics.
+class P2PDatagramSocket : public net::Socket {};
+
+} // namespace protocol
+} // namespace remoting
+
+#endif // REMOTING_PROTOCOL_P2P_SOCKET_H_

Powered by Google App Engine
This is Rietveld 408576698