| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CONTENT_BROWSER_RENDERER_HOST_P2P_SOCKET_HOST_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_P2P_SOCKET_HOST_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_P2P_SOCKET_HOST_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_P2P_SOCKET_HOST_H_ |
| 7 | 7 |
| 8 #include "content/common/content_export.h" | 8 #include "content/common/content_export.h" |
| 9 #include "content/common/p2p_sockets.h" | 9 #include "content/common/p2p_sockets.h" |
| 10 | 10 |
| 11 #include "ipc/ipc_message.h" | |
| 12 #include "net/base/ip_endpoint.h" | 11 #include "net/base/ip_endpoint.h" |
| 13 | 12 |
| 13 namespace IPC { |
| 14 class Sender; |
| 15 } |
| 16 |
| 14 namespace content { | 17 namespace content { |
| 15 | 18 |
| 16 // Base class for P2P sockets. | 19 // Base class for P2P sockets. |
| 17 class CONTENT_EXPORT P2PSocketHost { | 20 class CONTENT_EXPORT P2PSocketHost { |
| 18 public: | 21 public: |
| 19 // Creates P2PSocketHost of the specific type. | 22 // Creates P2PSocketHost of the specific type. |
| 20 static P2PSocketHost* Create(IPC::Sender* message_sender, | 23 static P2PSocketHost* Create(IPC::Sender* message_sender, |
| 21 int id, P2PSocketType type); | 24 int id, P2PSocketType type); |
| 22 | 25 |
| 23 virtual ~P2PSocketHost(); | 26 virtual ~P2PSocketHost(); |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 IPC::Sender* message_sender_; | 82 IPC::Sender* message_sender_; |
| 80 int id_; | 83 int id_; |
| 81 State state_; | 84 State state_; |
| 82 | 85 |
| 83 DISALLOW_COPY_AND_ASSIGN(P2PSocketHost); | 86 DISALLOW_COPY_AND_ASSIGN(P2PSocketHost); |
| 84 }; | 87 }; |
| 85 | 88 |
| 86 } // namespace content | 89 } // namespace content |
| 87 | 90 |
| 88 #endif // CONTENT_BROWSER_RENDERER_HOST_P2P_SOCKET_HOST_H_ | 91 #endif // CONTENT_BROWSER_RENDERER_HOST_P2P_SOCKET_HOST_H_ |
| OLD | NEW |