Index: chrome/common/p2p_sockets.h |
diff --git a/chrome/common/p2p_sockets.h b/chrome/common/p2p_sockets.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..6d9557efe4bb7de2a86a2c61b767afc158614ecd |
--- /dev/null |
+++ b/chrome/common/p2p_sockets.h |
@@ -0,0 +1,22 @@ |
+// Copyright (c) 2011 The Chromium Authors. All rights reserved. |
jam
2011/03/01 19:35:54
this should go into content\common
Sergey Ulanov
2011/03/01 22:34:17
Done.
|
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef CHROME_COMMON_P2P_SOCKETS_H_ |
+#define CHROME_COMMON_P2P_SOCKETS_H_ |
+ |
+#include "net/base/net_util.h" |
+ |
+struct P2PSocketAddress { |
jam
2011/03/01 19:35:54
nit: please comment at least this header on what i
Sergey Ulanov
2011/03/01 22:34:17
Done.
|
+ P2PSocketAddress() : port(0) { } |
+ net::IPAddressNumber address; |
+ int port; |
+}; |
+ |
+enum P2PSocketType { |
+ P2P_SOCKET_UDP, |
+ P2P_SOCKET_TCP_SERVER, |
+ P2P_SOCKET_TCP_CLIENT, |
+}; |
+ |
+#endif // CHROME_COMMON_P2P_SOCKETS_H_ |